/**
 * Phishing Simulator Styles
 * Modern, professional design for lead generation
 */

/* ========================================
   CSS Variables & Reset
   Stokesley Computer Consultants Branding
======================================== */
:root {
    --primary-color: #00B3B3;       /* Teal - main brand color */
    --primary-dark: #009999;        /* Darker teal */
    --secondary-color: #0D1B2A;     /* Dark navy */
    --accent-color: #cb5b1e;        /* Orange - CTAs */
    --accent-dark: #a84a18;         /* Darker orange */
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --light-color: #E5E5E5;         /* Light gray */
    --dark-color: #0D1B2A;          /* Dark navy */
    --text-color: #333333;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.2s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f7fa;
    min-height: 100vh;
}

/* ========================================
   Layout
======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header
======================================== */
.header {
    background: white;
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    text-decoration: none;
}

.shield-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.logo-img {
    height: 60px;
    width: auto;
}

@media (max-width: 600px) {
    .logo-img {
        height: 45px;
    }
}

/* ========================================
   Main Content
======================================== */
.main-content {
    padding: 40px 20px 60px;
}

/* Hero Section */
.hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Demo Section */
.demo-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 60px;
}

@media (max-width: 900px) {
    .demo-section {
        grid-template-columns: 1fr;
    }
}

/* Form Container */
.form-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-container h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.form-container > p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Form Elements */
.phishing-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--dark-color);
}

.form-group .required {
    color: var(--danger-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group small {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.alert svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* Info Cards */
.info-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.info-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Stats Section */
.stats-section {
    text-align: center;
    padding: 60px 20px;
    background: white;
    margin: 0 -20px;
}

.stats-section h2 {
    font-size: 1.75rem;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 180px;
}

/* ========================================
   Results Page Styles
======================================== */
.results-page .main-content {
    max-width: 900px;
    margin: 0 auto;
}

.result-banner {
    text-align: center;
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.result-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.result-icon svg {
    width: 48px;
    height: 48px;
}

.result-failed {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid #fecaca;
}

.result-failed .result-icon {
    background: var(--danger-color);
}

.result-failed .result-icon svg {
    color: white;
}

.result-failed h1 {
    color: #b91c1c;
}

.result-success {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #bbf7d0;
}

.result-success .result-icon {
    background: var(--success-color);
}

.result-success .result-icon svg {
    color: white;
}

.result-success h1 {
    color: #15803d;
}

.result-banner h1 {
    font-size: 1.75rem;
    margin-bottom: 15px;
}

.result-banner p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* Education Section */
.education-section {
    margin-bottom: 40px;
}

.education-section h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--dark-color);
}

.red-flags-card,
.tips-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.red-flags-card h3,
.tips-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.red-flags-card h3 svg,
.tips-card h3 svg {
    width: 24px;
    height: 24px;
    color: var(--warning-color);
}

.tips-card h3 svg {
    color: var(--primary-color);
}

.red-flags-list,
.tips-list {
    list-style: none;
}

.red-flags-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.red-flags-list li:last-child {
    border-bottom: none;
}

.red-flags-list li svg {
    width: 20px;
    height: 20px;
    color: var(--danger-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.tips-list li {
    padding: 10px 0 10px 25px;
    position: relative;
}

.tips-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Stats Comparison */
.stats-comparison {
    text-align: center;
    margin-bottom: 40px;
}

.stats-comparison h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

.comparison-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.comparison-stat {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
}

.comparison-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    margin-bottom: 40px;
}

.cta-card {
    background: linear-gradient(135deg, var(--secondary-color), #1a3a5c);
    border-radius: var(--radius-lg);
    padding: 50px;
    color: white;
    text-align: center;
}

.cta-card h2 {
    font-size: 1.75rem;
    margin-bottom: 15px;
}

.cta-card > p {
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 500px;
    margin: 0 auto 30px;
    text-align: left;
}

@media (max-width: 600px) {
    .cta-features {
        grid-template-columns: 1fr;
    }
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cta-feature svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-card .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-card .btn-primary:hover {
    background: #f0f0f0;
}

.cta-card .btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
}

.cta-card .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Try Again */
.try-again {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: var(--radius-lg);
}

.try-again p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

/* ========================================
   Confirmation Page
======================================== */
.confirmation-section {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 0;
}

.confirmation-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.confirmation-icon svg {
    width: 50px;
    height: 50px;
    color: white;
}

.confirmation-section h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.confirmation-message {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.instruction-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    text-align: left;
    margin-bottom: 25px;
}

.instruction-card h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.instruction-list {
    list-style: none;
}

.instruction-list li {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.instruction-list li:last-child {
    border-bottom: none;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content strong {
    display: block;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.reminder-box {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: left;
    margin-bottom: 30px;
}

.reminder-box svg {
    width: 24px;
    height: 24px;
    color: #ea580c;
    flex-shrink: 0;
}

.reminder-box strong {
    display: block;
    color: #ea580c;
    margin-bottom: 5px;
}

.reminder-box p {
    margin: 0;
    color: #9a3412;
    font-size: 0.9rem;
}

.reminder-box a {
    color: #ea580c;
}

.view-results-link p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* ========================================
   Error/Expired Page
======================================== */
.error-section {
    text-align: center;
    max-width: 500px;
    margin: 60px auto;
    padding: 40px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.error-icon {
    width: 80px;
    height: 80px;
    background: var(--warning-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.error-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.error-section h1 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.error-section p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Footer
======================================== */
.footer {
    background: var(--secondary-color);
    padding: 30px 20px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content p {
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* ========================================
   Utilities
======================================== */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-20 {
    margin-top: 20px;
}

/* Responsive font sizes */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .form-container {
        padding: 25px;
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
    
    .cta-card {
        padding: 30px 20px;
    }
}
