﻿/* ========================================
   SHARED CSS VARIABLES AND BASE STYLES
   Used by pages: ContactUs, Logon.
   ======================================== */

:root {
    /* ===== COLORS ===== */
    --color-primary: #1E40AF;
    --color-secondary: #0EA5E9;
    --color-surface: #F5F7FB;
    --color-text-default: #111827;
    --color-text-muted: #6B7280;
    --color-text-light: #FFFFFF;
    --color-border: #D1D5DB;
    --color-danger: #DC2626;
    --color-overlay-light: rgba(255, 255, 255, 0.95);
    --color-overlay-dark: rgba(0, 0, 0, 0.5);
    
    /* CreateAccount Page Colors */
    --color-ca-primary: #1890FF;
    --color-ca-primary-hover: #40A9FF;
    --color-ca-primary-active: #096DD9;
    --color-ca-error: #FF4D4F;
    --color-ca-error-bg: #FFF1F0;
    --color-ca-error-border: #FFCCC7;
    --color-ca-error-text: #CF1322;
    --color-ca-success: #52C41A;
    --color-ca-success-bg: #F6FFED;
    --color-ca-success-border: #B7EB8F;
    --color-ca-success-text: #389E0D;
    --color-ca-info-bg: #E6F7FF;
    --color-ca-info-border: #91D5FF;
    --color-ca-info-text: #0050B3;
    --color-ca-bg: #FFFFFF;
    --color-ca-bg-alt: #F7F7F7;
    --color-ca-border: #D9D9D9;
    --color-ca-border-focus: #40A9FF;
    --color-ca-text: rgba(0, 0, 0, 0.85);
    --color-ca-text-secondary: rgba(0, 0, 0, 0.65);
    --color-ca-text-placeholder: rgba(0, 0, 0, 0.25);
    --color-ca-text-disabled: rgba(0, 0, 0, 0.25);
    --color-ca-disabled-bg: #F5F5F5;
    --color-ca-title: #141414;
    --color-ca-faq-title: #1F1F1F;
    --color-ca-divider: rgba(0, 0, 0, 0.06);
    --color-ca-footer-text: #434343;
    --color-ca-shadow-button: 0px 2px 0px rgba(0, 0, 0, 0.043);
    --color-ca-focus-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);

    /* Input Dimensions */
    --input-height: 32px;
    --input-height-lg: 40px;
    --input-border-radius: 2px;

    /* ===== SPACING ===== */
    --spacing-1: 0.25rem;   /* 4px */
    --spacing-2: 0.5rem;    /* 8px */
    --spacing-3: 0.75rem;   /* 12px */
    --spacing-4: 1rem;      /* 16px */
    --spacing-5: 1.25rem;   /* 20px */
    --spacing-6: 1.5rem;    /* 24px */
    --spacing-7: 1.75rem;   /* 28px */
    --spacing-8: 2rem;      /* 32px */
    --spacing-9: 2.25rem;   /* 36px */
    --spacing-10: 2.5rem;   /* 40px */
    --spacing-11: 2.75rem;  /* 44px */
    --spacing-12: 3rem;     /* 48px */
    --spacing-13: 3.25rem;  /* 52px */
    --spacing-14: 3.5rem;   /* 56px */
    --spacing-15: 3.75rem;  /* 60px */
    --spacing-16: 4rem;     /* 64px */
    --spacing-17: 4.25rem;  /* 68px */
    --spacing-18: 4.5rem;   /* 72px */
    --spacing-19: 4.75rem;  /* 76px */
    --spacing-20: 5rem;     /* 80px */
    --spacing-21: 5.25rem;  /* 84px */
    --spacing-22: 5.5rem;   /* 88px */
    --spacing-23: 5.75rem;  /* 92px */
    --spacing-24: 6rem;     /* 96px */
    --spacing-25: 6.25rem;  /* 100px */
    
    /* ===== TYPOGRAPHY ===== */
    --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    
    /* Font Sizes */
    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.875rem;    /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-lg: 1.125rem;    /* 18px */
    --text-xl: 1.25rem;     /* 20px */
    --text-2xl: 1.5rem;     /* 24px */
    --text-3xl: 1.875rem;   /* 30px */
    --text-4xl: 2rem;       /* 32px */
    
    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;
    --line-height-sm: 22px;  /* 14px * 1.571 */
    --line-height-md: 24px;  /* 16px * 1.5 */
    --line-height-lg: 28px;  /* 20px * 1.4 */

    /* ===== BORDERS ===== */
    --radius-sm: 4px;
    --radius-base: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    
    /* ===== SHADOWS ===== */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-base: 0 4px 4px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0px 3px 6px -4px rgba(0, 0, 0, 0.12), 0px 6px 16px rgba(0, 0, 0, 0.08), 0px 9px 28px 8px rgba(0, 0, 0, 0.05);
    --shadow-button: 0 4px 12px rgba(14, 165, 233, 0.3);
    --shadow-focus: 0 0 0 3px rgba(14, 165, 233, 0.1);
    
    /* ===== TRANSITIONS ===== */
    --transition-base: 0.2s ease;
    
    /* ===== OPACITY ===== */
    --opacity-divider: 0.6;
    
    /* ===== LAYOUT ===== */
    --split-side-width: 410px;
    --nav-height: 70px;
}

/* ===== GLOBAL BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    background: #F5F7FB;
}

/* ===== NAVIGATION (SHARED COMPONENT) ===== */
.top-nav {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 0 100px 0 0; /* Default - can be overridden inline */
    gap: 32px;
    height: 70px;
    z-index: 100;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

.nav-link {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    color: #6B7280;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #0EA5E9;
}

.nav-link.active {
    color: #0EA5E9;
    font-weight: 600;
}

/* ===== RESPONSIVE NAVIGATION ===== */
@media (max-width: 992px) {
    .top-nav {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 16px 20px !important;
        gap: 24px;
        height: auto;
        width: 100% !important;
        left: 0 !important;
    }
    
    .nav-link {
        font-size: 14px;
        text-align: center;
        padding: 8px 0;
        width: auto;
    }
}

/* ===== FORM COMPONENTS (SHARED) ===== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
    width: 100%;
}

.form-control {
    width: 100%;
    height: 40px;
    padding: var(--spacing-3) var(--spacing-4);
    background: var(--color-text-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-base);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    color: var(--color-text-default);
    transition: all var(--transition-base);
    font-family: var(--font-family-base);
}

.form-control::placeholder {
    color: #9CA3AF;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-focus);
}

.form-control:hover {
    border-color: #9CA3AF;
}

/* Textarea variant */
textarea.form-control {
    height: auto;
    min-height: 120px;
    resize: vertical;
}

/* ===== RESPONSIVE NAVIGATION ===== */
@media (max-width: 1200px) {
    .top-nav {
        padding: 0 var(--spacing-13);
        gap: var(--spacing-5);
    }
}

@media (max-width: 992px) {
    .top-nav {
        padding: 0 var(--spacing-5) !important;
        gap: var(--spacing-4);
    }
}

@media (max-width: 768px) {
    .top-nav {
        padding: 0 var(--spacing-5) !important;
        gap: var(--spacing-3);
        flex-wrap: wrap;
        height: auto;
        padding-top: var(--spacing-5) !important;
        padding-bottom: var(--spacing-3) !important;
    }
    
    .nav-link {
        font-size: var(--text-xs);
    }
}

@media (max-width: 480px) {
    .top-nav {
        justify-content: center;
        gap: var(--spacing-12);
    }
    
    .nav-link {
        font-size: var(--text-xs);
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Prevent iOS auto-zoom on input focus (requires >= 16px) */
@media screen and (max-width: 767px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}
