/* ============================================================
   contact.css — urbox.ai Contact Page
   ============================================================ */

/* ── Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --primary: #2B8EF0;
    --primary-dark: #1565C0;
    --primary-light: #60B4F8;
    --primary-subtle: #EFF6FF;
    --midnight: #0D1B2A;
    --slate: #1E293B;
    --muted: #64748B;
    --border: #E2E8F0;
    --border-2: #CBD5E1;
    --bg: #F8FAFC;
    --white: #FFFFFF;
    --success: #10B981;
    --danger: #EF4444;
    --radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .07), 0 1px 2px rgba(0, 0, 0, .05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .09);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, .12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--slate);
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.6;
}

/* ── Headings ──────────────────────────────────────────────── */
h1,
h2,
h3 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
}

/* ════════════════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════════════════ */
#contact-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    height: 68px;
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo-circle {
    width: 36px;
    height: 36px;
    background: var(--primary-subtle);
    border: 1px solid rgba(43, 142, 240, 0.18);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-wordmark {
    font-size: 17px;
    font-weight: 700;
    color: var(--midnight);
    letter-spacing: -0.3px;
    font-family: 'DM Sans', sans-serif;
}

.nav-wordmark span {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-ghost {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--slate);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.btn-ghost:hover {
    background: var(--border);
    color: var(--midnight);
}

.btn-primary {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 9px;
    padding: 9px 18px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 3px 12px rgba(43, 142, 240, 0.28);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(43, 142, 240, 0.38);
}

@media (max-width: 560px) {
    .btn-ghost {
        display: none;
    }

    .btn-primary {
        font-size: 13px;
        padding: 8px 14px;
    }
}

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.contact-hero {
    position: relative;
    text-align: center;
    padding: 96px 5% 80px;
    overflow: hidden;
}

.contact-hero-glow {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 0;
}

.contact-hero-glow-1 {
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(43, 142, 240, 0.12) 0%, transparent 70%);
}

.contact-hero-glow-2 {
    bottom: 0;
    right: -5%;
    width: 400px;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.07) 0%, transparent 70%);
}

.contact-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    animation: fadeUp 0.7s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--primary-subtle);
    border: 1px solid rgba(43, 142, 240, 0.22);
    border-radius: 100px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-dark);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.4);
    }
}

.contact-hero h1 {
    font-size: clamp(36px, 6vw, 68px);
    color: var(--midnight);
    line-height: 1.08;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.contact-hero h1 em {
    font-style: italic;
    color: var(--primary);
}

.contact-hero-sub {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--muted);
    line-height: 1.65;
    max-width: 520px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .contact-hero {
        padding: 72px 5% 56px;
    }
}

/* ════════════════════════════════════════════════════════════
   MAIN SECTION & GRID
   ════════════════════════════════════════════════════════════ */
.contact-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 5% 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 880px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Info Cards ─────────────────────────────────────────────── */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}

.info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.info-card-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-subtle);
    border: 1px solid rgba(43, 142, 240, 0.18);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.info-card-body h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--midnight);
    margin-bottom: 4px;
}

.info-card-body p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 6px;
}

.info-card-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.info-card-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ── Form Wrap ──────────────────────────────────────────────── */
.contact-form-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px;
    box-shadow: var(--shadow-md);
    position: relative;
}

/* ── Form ───────────────────────────────────────────────────── */
.contact-form h2 {
    font-size: 26px;
    color: var(--midnight);
    margin-bottom: 6px;
}

.form-intro {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 24px 20px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate);
    margin-bottom: 6px;
}

.required {
    color: var(--danger);
    font-size: 12px;
}

.form-optional {
    color: var(--muted);
    font-weight: 400;
    font-size: 12px;
}

.form-input {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--slate);
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 9px;
    padding: 11px 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(43, 142, 240, 0.12);
    background: var(--white);
}

.form-input::placeholder {
    color: #94A3B8;
}

.form-input.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Select */
.select-wrap {
    position: relative;
}

.form-select {
    appearance: none;
    cursor: pointer;
    padding-right: 36px;
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--muted);
}

/* Field error */
.field-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
    min-height: 16px;
    display: block;
}

/* Form footer */
.form-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.btn-submit {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 10px;
    padding: 13px 26px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(43, 142, 240, 0.32);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    white-space: nowrap;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(43, 142, 240, 0.42);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-privacy {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    max-width: 260px;
}

/* Spinner */
.spinner {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}

/* Error banner */
.form-error-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-top: 14px;
}

/* ── Success State ──────────────────────────────────────────── */
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    gap: 12px;
}

.form-success.active {
    display: flex;
    animation: fadeUp 0.5s ease both;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #DCFCE7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.form-success h2 {
    font-size: 26px;
    color: var(--midnight);
}

.form-success p {
    font-size: 15px;
    color: var(--muted);
    max-width: 320px;
}

.btn-send-another {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-subtle);
    border: 1px solid rgba(43, 142, 240, 0.24);
    border-radius: 9px;
    padding: 10px 20px;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}

.btn-send-another:hover {
    background: #DBEAFE;
}

/* ════════════════════════════════════════════════════════════
   FAQ STRIP
   ════════════════════════════════════════════════════════════ */
.contact-faq {
    background: var(--midnight);
    padding: 80px 5%;
}

.contact-faq-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.contact-faq h2 {
    font-size: clamp(26px, 3.5vw, 40px);
    color: white;
    margin-bottom: 40px;
    text-align: center;
}

.faq-strip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.faq-strip-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 24px;
    transition: background 0.2s, transform 0.2s;
}

.faq-strip-item:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
}

.faq-strip-item h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.faq-strip-item p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.contact-footer {
    background: var(--midnight);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 24px 5%;
}

.contact-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.contact-footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-footer-links a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-footer-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}