/* ============================================
   AVAST SUPPORT - Modern Design System
   Based on Gen Digital Design Language
   ============================================ */

:root {
    /* Brand Colors */
    --primary-blue: #0070f3;
    --primary-blue-dark: #0055c2;
    --primary-blue-light: #3395ff;
    --orange-avast: #ff7800;
    --orange-hover: #e66a00;
    
    /* Neutral Colors */
    --footer-bg: #001b2b;
    --footer-bg-light: #002840;
    --text-main: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #666666;
    --text-light: #8a8a8a;
    
    /* UI Colors */
    --border-grey: #d1d8dd;
    --border-light: #e8ecf0;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-hover: #f0f4f8;
    
    /* Status Colors */
    --success: #00a67e;
    --error: #d93025;
    --warning: #f9a825;
    --info: #0070f3;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 50px;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 20px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* ============================================
   BASE STYLES
   ============================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-white);
    min-height: 100vh;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-blue-dark);
}

img {
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
}

/* ============================================
   HEADER
   ============================================ */

.main-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-md);
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 36px;
    width: auto;
    transition: transform var(--transition-fast);
}

.logo-img:hover {
    transform: scale(1.02);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.main-nav a:hover {
    background: var(--bg-hover);
    color: var(--primary-blue);
}

.main-nav a i {
    font-size: 0.85rem;
}

.nav-highlight {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: white !important;
    box-shadow: var(--shadow-sm);
}

.nav-highlight:hover {
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
    box-shadow: var(--shadow-md);
}

.mobile-menu-btn {
    display: none;
    background: none;
    font-size: 1.5rem;
    color: var(--text-main);
    padding: 8px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
}

/* ============================================
   STEPPER
   ============================================ */

.stepper {
    margin-bottom: var(--spacing-xl);
}

.step-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    color: var(--text-muted);
    transition: all var(--transition-base);
}

.step-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--border-grey);
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
    transition: all var(--transition-base);
}

.step-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

.step-line {
    width: 60px;
    height: 2px;
    background: var(--border-light);
    margin: 0 4px;
    margin-bottom: 28px;
    transition: all var(--transition-base);
}

/* Active/Completed States */
.step.active .step-icon {
    border-color: var(--orange-avast);
    color: var(--orange-avast);
    background: rgba(255, 120, 0, 0.08);
}

.step.completed .step-icon {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.step-line.active {
    background: var(--orange-avast);
}

/* ============================================
   SECTION BLOCKS
   ============================================ */

.section-block {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: var(--spacing-md);
}

.section-title i {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

/* ============================================
   GRID BUTTONS
   ============================================ */

.grid-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-sm);
}

.btn-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-light);
    background: var(--bg-white);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-toggle i {
    font-size: 1.3rem;
    color: var(--primary-blue);
}

.btn-toggle span {
    text-align: center;
}

.btn-toggle:hover {
    border-color: var(--primary-blue-light);
    background: var(--bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-toggle.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    border-color: var(--primary-blue);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-toggle.active i {
    color: white;
}

/* Product Toggle */
.product-toggle {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.product-btn {
    flex-direction: row;
    padding: var(--spacing-md) var(--spacing-lg);
}

/* ============================================
   DROPDOWN / SELECT
   ============================================ */

.dropdown-container {
    margin-bottom: var(--spacing-md);
}

.select-wrapper {
    position: relative;
}

.custom-select {
    width: 100%;
    padding: 14px 45px 14px 16px;
    border: 2px solid var(--border-grey);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-main);
    background: var(--bg-white);
    appearance: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.custom-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.15);
}

.select-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 0.8rem;
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-section {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.form-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-lg);
    margin-top: -10px;
}

.user-details-form {
    margin-top: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-label i {
    color: var(--primary-blue);
    font-size: 0.85rem;
}

.optional {
    color: var(--text-muted);
    font-weight: 400;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-grey);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-main);
    background: var(--bg-white);
    transition: all var(--transition-fast);
}

input:hover,
select:hover,
textarea:hover {
    border-color: var(--text-muted);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.12);
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-light);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Error States */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--error);
}

.error-message {
    display: none;
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 6px;
    padding-left: 4px;
}

.form-group.error .error-message {
    display: block;
}

/* Help Text */
.help-text {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 6px;
    padding-left: 4px;
}

/* Intl Tel Input Override */
.iti {
    width: 100%;
}

.iti__flag {
    background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/img/flags.png");
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.checkbox-label:hover {
    background: var(--bg-hover);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.checkbox-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkbox-text a {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    margin-top: var(--spacing-lg);
    text-align: center;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--orange-avast) 0%, var(--orange-hover) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(255, 120, 0, 0.3);
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--orange-hover) 0%, #cc5e00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 120, 0, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-info {
    margin-top: var(--spacing-md);
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.submit-info i {
    color: var(--success);
}

/* ============================================
   HELP INFO
   ============================================ */

.help-info {
    margin-top: var(--spacing-lg);
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, #fff8e6 0%, #fff3d6 100%);
    border-radius: var(--radius-lg);
    border: 1px solid #ffe8a8;
}

.info-card i {
    font-size: 1.5rem;
    color: var(--warning);
}

.info-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.info-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================
   TRUST SECTION
   ============================================ */

.trust-section {
    padding: var(--spacing-lg) var(--spacing-md);
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.trust-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: var(--spacing-md);
}

.trust-item i {
    font-size: 1.8rem;
    color: var(--primary-blue);
}

.trust-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */

.main-footer {
    background: var(--footer-bg);
    color: #fff;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
}

.footer-column h4 i {
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.footer-column a:hover {
    color: white;
    padding-left: 4px;
}

.footer-middle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg) 0;
}

.social-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.social-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.social-icons a:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.language-selector:hover {
    background: rgba(255, 255, 255, 0.15);
}

.language-selector span {
    font-size: 0.9rem;
}

.footer-bottom {
    padding-top: var(--spacing-md);
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.legal-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color var(--transition-fast);
}

.legal-links a:hover {
    color: white;
    text-decoration: underline;
}

.copyright-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.gen-logo {
    height: 20px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 32px;
        --spacing-lg: 24px;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .grid-buttons {
        grid-template-columns: 1fr;
    }
    
    .product-toggle {
        grid-template-columns: 1fr;
    }
    
    .step-wrapper {
        gap: var(--spacing-xs);
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .step-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .step-line {
        width: 30px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .footer-middle {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .social-section {
        flex-direction: column;
    }
    
    .trust-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-block {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .btn-submit {
        width: 100%;
        padding: 14px 24px;
    }
    
    .trust-container {
        grid-template-columns: 1fr;
    }
    
    .trust-item {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-block {
    animation: fadeIn 0.4s ease forwards;
}

.section-block:nth-child(1) { animation-delay: 0.1s; }
.section-block:nth-child(2) { animation-delay: 0.2s; }
.section-block:nth-child(3) { animation-delay: 0.3s; }
.section-block:nth-child(4) { animation-delay: 0.4s; }

/* Focus Visible for Accessibility */
:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .main-header,
    .main-footer,
    .hero-section,
    .trust-section,
    .help-info {
        display: none;
    }
    
    .container {
        max-width: 100%;
    }
}
