﻿/* ============================================
   E-MAZADE - CONTACT PAGE MODERN STYLES
   ============================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --primary-soft: #dbeafe;
    --primary-subtle: #eff6ff;
    --surface: #ffffff;
    --surface-secondary: #f8fafc;
    --surface-glass: rgba(255,255,255,0.75);
    --background: #f1f5f9;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --success: #10b981;
    --danger: #ef4444;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 32px;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 4px 10px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 12px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
    --shadow-primary: 0 18px 40px rgba(37, 99, 235, 0.22);
    --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--background);
}

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.contact-main {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
}

    .contact-main::before {
        content: "";
        position: absolute;
        width: 480px;
        height: 480px;
        border-radius: 50%;
        background: rgba(37,99,235,0.08);
        filter: blur(100px);
        top: -120px;
        left: -120px;
        pointer-events: none;
    }

.contact-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5rem;
    align-items: center;
}

/* ============================================
   HERO
   ============================================ */

.contact-hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 5rem 0 4rem;
    overflow: hidden;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1600px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #34d399;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-lead {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -150px;
    left: -100px;
}

.shape-2 {
    width: 350px;
    height: 350px;
    background: #8b5cf6;
    bottom: -100px;
    right: -100px;
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid #bbf7d0;
}

    .alert-success::before {
        content: '\f00c';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
    }

/* ============================================
   QUICK CONTACT BAR
   ============================================ */

.quick-contact {
    padding: 3rem 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.quick-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: end;
}

.form-input {
    width: 100%;
    height: 52px;
    padding: 0 1.25rem;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--background);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition);
}

    .form-input::placeholder {
        color: var(--text-muted);
    }

    .form-input:hover {
        border-color: #cbd5e1;
    }

    .form-input:focus {
        border-color: var(--primary-light);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
        background: var(--surface);
    }

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 52px;
    padding: 0 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    white-space: nowrap;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
    }

/* ============================================
   MAIN CONTACT SECTION
   ============================================ */

.contact-main {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

/* Form Side */
.contact-form-wrap {
    max-width: 520px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-lead {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    position: relative;
}

    .form-group label {
        display: block;
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--text);
        margin-bottom: 0.5rem;
    }

.form-textarea {
    width: 100%;
    min-height: 140px;
    padding: 1rem 1.25rem;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--background);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    resize: vertical;
    transition: all var(--transition);
}

    .form-textarea::placeholder {
        color: var(--text-muted);
    }

    .form-textarea:hover {
        border-color: #cbd5e1;
    }

    .form-textarea:focus {
        border-color: var(--primary-light);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
        background: var(--surface);
    }

/* Visual Side */
/* ============================================
   CONTACT VISUAL: INTERACTIVE HUB
   ============================================ */
.contact-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem 0;
}

.support-hub-wrapper {
    width: 100%;
    max-width: 500px;
    position: relative;
}

/* Trust Indicator (Pulsing Dot) */
.support-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: var(--surface);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981; /* Success Green */
    border-radius: 50%;
    display: inline-block;
}

.status-dot.pulsing {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-text {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Header */
.hub-header {
    margin-bottom: 1.5rem;
}

.hub-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.hub-header p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* Routing Grid */
.routing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.route-input {
    display: none; /* Hides the standard radio button circle */
}

.route-card {
    cursor: pointer;
    display: block;
    margin: 0;
}

.route-content {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: 100%;
    transition: all var(--transition);
    position: relative;
}

.route-content:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Magic CSS: When the hidden radio is checked, style the card! */
.route-input:checked + .route-content {
    border-color: var(--primary);
    background: var(--primary-subtle);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* Adds a checkmark to the selected card */
.route-input:checked + .route-content::before {
    content: '\f058'; 
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    color: var(--primary);
    font-size: 1.125rem;
}

/* Card Icons & Text */
.route-icon {
    width: 44px;
    height: 44px;
    background: var(--background);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    transition: all var(--transition);
}

.route-input:checked + .route-content .route-icon {
    background: white;
    color: var(--primary);
}

.route-content h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.375rem;
}

.route-content p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 639px) {
    .routing-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================
   FOOTER
   ============================================ */

.contact-footer {
    background: var(--text);
    color: var(--text-muted);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.875rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (min-width: 768px) {
    .contact-hero {
        padding: 7rem 0 5rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .form-row {
        grid-template-columns: 1fr 1fr auto;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .brand-showcase {
        width: 380px;
        height: 380px;
    }
}

@media (min-width: 1024px) {
    .contact-main {
        padding: 5rem 0;
    }

    .contact-grid {
        gap: 6rem;
    }

    .brand-showcase {
        width: 420px;
        height: 420px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }

    .brand-showcase {
        width: 280px;
        height: 280px;
    }

    .info-card {
        display: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* RTL Support */
[dir="rtl"] .info-card.email {
    right: auto;
    left: -20px;
}

[dir="rtl"] .info-card.phone {
    left: auto;
    right: -20px;
}
