/* BOXMAR Desktop — Forms (Quote Form, CTA) */

/* ============================================
   QUOTE / CONTACT FORMS
   ============================================ */
.quote-form-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(200, 146, 42, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    backdrop-filter: blur(16px);
    max-width: 750px;
    margin: 0 auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.form-steps {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    position: relative;
}

.form-steps::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: rgba(200, 146, 42, 0.15);
    z-index: 0;
}

.form-step {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.88rem;
    font-weight: 600;
    transition: color var(--t-base);
    position: relative;
    z-index: 1;
}

.form-step.active {
    color: var(--gold-400);
}

.form-step.completed {
    color: var(--gold-500);
}

.form-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.12);
    transition: all var(--t-base);
}

.form-step.active .form-step-num {
    background: var(--grad-gold);
    border-color: var(--gold-400);
    color: var(--navy-900);
    box-shadow: var(--shadow-gold);
}

.form-step.completed .form-step-num {
    background: var(--grad-gold);
    border-color: var(--gold-500);
    color: var(--navy-900);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-xs);
    display: block;
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid rgba(168, 184, 200, 0.15);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--white);
    transition: all var(--t-fast);
    background: rgba(255, 255, 255, 0.05);
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(200, 146, 42, 0.15);
    background: rgba(200, 146, 42, 0.04);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.section--dark select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(200,146,42,0.7)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 44px;
    cursor: pointer;
}

.section--dark select.form-control option {
    background: var(--navy-900);
    color: var(--white);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.form-panel {
    display: none;
}

.form-panel.active {
    display: block;
}

.form-nav {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-xl);
}

/* Light-background form variant */
.form-control-light {
    background: var(--white);
    border: 2px solid var(--silver-200);
    color: var(--gray-800);
}

.form-control-light:focus {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(200, 146, 42, 0.12);
}


/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: var(--grad-cta);
    padding: var(--space-4xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(200, 146, 42, 0.15);
    border-bottom: 1px solid rgba(200, 146, 42, 0.15);
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(200, 146, 42, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 50%, rgba(58, 135, 200, 0.06) 0%, transparent 55%);
    pointer-events: none;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: var(--space-2xl);
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

.cta-phone {
    font-family: var(--font-accent);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-400);
    display: block;
    margin-top: var(--space-lg);
    position: relative;
    z-index: 1;
}


/* ============================================
   PERFORMANCE OPTIMIZATIONS
   will-change hints, content-visibility,
   reduced motion support.
   ============================================ */

/* GPU acceleration for animated elements */
.hero-orb,
.hv-ring,
.hv-sphere,
.hv-orbit,
.hv-pulse,
.camel-ring,
.hero-float-card,
.nav-logo-img,
.btn {
    will-change: transform;
}

.hero-title-creative .gradient-text {
    will-change: background-position;
}

/* Content visibility for off-screen sections */
.section,
.trust-bar-v2,
.testimonials-v2,
.stats-section-v2,
.mv-section-v2,
.cta-section-v2,
.footer-v2 {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* Reduce animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-orb,
    .hv-ring,
    .hv-orbit,
    .hv-pulse,
    .camel-ring,
    .grid-bg {
        animation: none !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Reduce animation complexity on mobile for performance */

/* Font display is handled via Google Fonts &display=swap parameter */

/* Smooth scrolling only when not reduced motion */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazy loading placeholder */
img[loading="lazy"] {
    background: rgba(10, 22, 40, 0.3);
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--gold-400);
    outline-offset: 3px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--gold-400);
    outline-offset: 3px;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: var(--space-md);
    background: var(--grad-gold);
    color: var(--navy-900);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-sm);
    font-weight: 700;
    z-index: 9999;
    transition: top var(--t-fast);
}

.skip-to-content:focus {
    top: var(--space-md);
}

/* Print styles */
@media print {

    .top-bar,
    .navbar,
    .mobile-menu,
    .whatsapp-float,
    .scroll-top,
    .chatbox,
    .chatbox-trigger,
    .inquiry-float,
    .hero-scroll-indicator {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .section--dark {
        background: white;
        color: black;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}


/* ============================================
   MOBILE PERFORMANCE — ≤768px
   Disable decorative-only animations that
   consume GPU/battery with no UX benefit.
   ============================================ */


/* ============================================
   PHONE PERFORMANCE — ≤576px
   Further reduce visual complexity
   ============================================ */
