html {
    scroll-behavior: smooth;
}

body {
    background-color: #0A0A0A;
}

.trust-section,
.process-section,
#why-us,
footer {
    position: relative;
    z-index: 10;
}

#navbar {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

#navbar.navbar-shrink {
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.35), rgba(10, 10, 10, 0.25));
    backdrop-filter: blur(50px) saturate(180%);
    -webkit-backdrop-filter: blur(50px) saturate(180%);
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.nav-inner {
    height: 80px;
    transition: height 0.3s ease;
}

#navbar.navbar-shrink .nav-inner {
    height: 66px;
}

.hero-subtext {
    font-size: clamp(1.25rem, 2.1vw, 2.5rem);
    line-height: 1.2;
}

#collapsed-input {
    min-height: 68px;
    border-color: rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.95), rgba(14, 14, 14, 0.92));
}

#collapsed-input:hover {
    border-color: rgba(198, 169, 106, 0.5);
}

.hero-preview-input::placeholder {
    color: #8B8B8B;
    opacity: 1;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.5;
    cursor: pointer;
}

/* Flatpickr Dark Gold Theme - Compact */
.flatpickr-calendar {
    background: rgba(18, 18, 18, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(198, 169, 106, 0.1) !important;
    font-family: 'Inter', sans-serif !important;
    padding: 12px !important;
    width: 280px !important;
    z-index: 99999 !important;
}

.flatpickr-calendar.open {
    animation: calendarIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes calendarIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.flatpickr-months {
    padding: 0 0 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.flatpickr-months .flatpickr-month {
    background: transparent !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
}

.flatpickr-current-month {
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: #F5F5F5 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    width: auto !important;
    left: 0 !important;
    position: relative !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: transparent !important;
    color: #F5F5F5 !important;
    font-weight: 500 !important;
    appearance: none;
    -webkit-appearance: none;
}

.flatpickr-current-month .flatpickr-monthDropdown-months option {
    background: #121212 !important;
    color: #F5F5F5 !important;
}

.flatpickr-current-month input.cur-year {
    color: #F5F5F5 !important;
    font-weight: 500 !important;
    width: 55px !important;
    padding: 0 !important;
}

.numInputWrapper {
    width: 55px !important;
}

.numInputWrapper span {
    display: none !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    fill: #F5F5F5 !important;
    color: #F5F5F5 !important;
    padding: 8px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    top: 0 !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    fill: #C6A96A !important;
    color: #C6A96A !important;
    background: rgba(198, 169, 106, 0.1) !important;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    width: 12px !important;
    height: 12px !important;
}

span.flatpickr-weekday {
    color: rgba(198, 169, 106, 0.6) !important;
    font-size: 0.7rem !important;
    font-weight: 400 !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.flatpickr-days {
    width: 100% !important;
}

.flatpickr-day {
    color: #F5F5F5 !important;
    border-radius: 50% !important;
    font-size: 0.8rem !important;
    font-weight: 300 !important;
    border: none !important;
    height: 32px !important;
    line-height: 32px !important;
    max-width: 32px !important;
    flex-basis: 32px !important;
    margin: 2px !important;
    transition: all 0.2s ease !important;
}

.flatpickr-day:hover {
    background: rgba(198, 169, 106, 0.15) !important;
    border: none !important;
    color: #C6A96A !important;
}

.flatpickr-day.today {
    border: 1px solid rgba(198, 169, 106, 0.4) !important;
    background: transparent !important;
    color: #C6A96A !important;
}

.flatpickr-day.today:hover {
    background: rgba(198, 169, 106, 0.15) !important;
}

.flatpickr-day.selected {
    background: #C6A96A !important;
    color: #0A0A0A !important;
    font-weight: 500 !important;
    box-shadow: 0 0 10px rgba(198, 169, 106, 0.3) !important;
    border: none !important;
}

.flatpickr-day.selected:hover {
    background: #d4bc82 !important;
    color: #0A0A0A !important;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: rgba(139, 139, 139, 0.25) !important;
}

.flatpickr-day.flatpickr-disabled:hover {
    background: transparent !important;
    color: rgba(139, 139, 139, 0.25) !important;
}

.numInputWrapper:hover {
    background: transparent !important;
}

.numInputWrapper span:hover {
    background: rgba(198, 169, 106, 0.15) !important;
}

.numInputWrapper span::after {
    border-bottom-color: #8B8B8B !important;
    border-top-color: #8B8B8B !important;
}

.numInputWrapper span:hover::after {
    border-bottom-color: #C6A96A !important;
    border-top-color: #C6A96A !important;
}

.flatpickr-innerContainer {
    border-bottom: none !important;
}

.flatpickr-rContainer {
    width: 100% !important;
}

.dayContainer {
    width: 100% !important;
    min-width: 252px !important;
    max-width: 280px !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0A0A0A;
}

::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C6A96A;
}

@keyframes pulse-slow {
    0% {
        opacity: 0.32;
        transform: translateX(-50%) scale(0.92);
    }
    100% {
        opacity: 0.86;
        transform: translateX(-50%) scale(1.08);
    }
}

.bg-glow {
    animation: pulse-slow 8s infinite alternate ease-in-out;
}

@keyframes gold-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(198, 169, 106, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(198, 169, 106, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(198, 169, 106, 0);
    }
}

.animate-pulse-glow {
    animation: gold-pulse 2s infinite;
}

.form-modal {
    transform-origin: top center;
}

/* Mobile expanded form - full screen modal (outside media query so it always applies when class is present) */
#expanded-form.mobile-modal {
    position: fixed !important;
    top: 76px !important;
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    height: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px !important;
    padding: 20px !important;
    z-index: 100 !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: rgba(18, 18, 18, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background-color: #C6A96A;
    border-radius: 9999px;
    opacity: 0.2;
    pointer-events: none;
}

.hero-particles .particle {
    opacity: 0.3;
}

.trust-card,
.feature-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(14, 14, 14, 0.96);
}

.trust-card h3,
.feature-card h3 {
    color: #F5F5F5;
}

.trust-card p,
.feature-card p {
    color: #8B8B8B;
}

.trust-section,
.process-section,
#why-us {
    position: relative;
}

.trust-section::before,
.process-section::before,
#why-us::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

@media (max-width: 767px) {
    .hero-subtext {
        font-size: 1rem;
        line-height: 1.5;
    }

    #collapsed-input {
        border-radius: 16px;
        padding: 12px 14px;
        min-height: 56px;
        gap: 8px;
    }

    #collapsed-input .hero-preview-input {
        font-size: 14px;
        min-width: 0;
    }

    #navbar .nav-inner {
        height: 72px;
    }

    /* Mobile expanded form max-height */
    #expanded-form {
        max-height: calc(100vh - 100px);
        max-height: calc(100dvh - 100px);
    }

    /* Hero section mobile adjustments */
    #submit {
        padding-top: 110px;
        padding-bottom: 60px;
    }

    h1 {
        font-size: 2.25rem !important;
        line-height: 1.15 !important;
        margin-bottom: 1.5rem !important;
    }

    /* Trust cards mobile */
    .trust-card {
        padding: 28px 20px;
    }

    /* Seamless Process section mobile */
    #seamless-process {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .process-section h2 {
        font-size: 1.875rem !important;
        margin-bottom: 2.5rem !important;
    }

    .process-section .step-card {
        padding-bottom: 0;
        margin-bottom: 2rem;
    }

    .process-section .step-card:last-child {
        margin-bottom: 0;
    }

    /* Why us section mobile */
    #why-us {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    #why-us h2 {
        font-size: 1.875rem !important;
    }

    #why-us .grid {
        gap: 0;
        border-radius: 16px;
    }

    .feature-card {
        padding: 36px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .feature-card:last-child {
        border-bottom: none;
    }

    /* Trust banner above footer - compact horizontal row */
    footer > .border-b .max-w-6xl {
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        gap: 0 !important;
    }

    footer > .border-b .max-w-6xl > div {
        flex: 1;
        justify-content: center;
        gap: 4px !important;
    }

    footer > .border-b .max-w-6xl > div:nth-child(2) {
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        padding: 0 6px;
    }

    footer > .border-b .max-w-6xl > div .text-xs {
        font-size: 0.5rem;
        letter-spacing: 0.03em;
        white-space: nowrap;
    }

    footer > .border-b .max-w-6xl > div iconify-icon {
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    /* Footer mobile */
    footer .grid {
        gap: 24px 16px;
    }

    footer h4 {
        text-align: left;
    }

    footer .space-y-3 {
        text-align: left;
    }
}

/* Country code select styling */
#countryCode {
    scrollbar-width: thin;
    scrollbar-color: #C6A96A #1a1a1a;
}

#countryCode option {
    background: #1a1a1a;
    color: #8B8B8B;
    padding: 8px;
}

#countryCode option:checked {
    background: rgba(198, 169, 106, 0.2);
    color: #F5F5F5;
}

/* Flatpickr positioning fix */
.flatpickr-calendar.static {
    position: absolute !important;
}

.flatpickr-calendar.static.open {
    z-index: 99999 !important;
}

/* Beacon animation for status dot - matches WhatsApp button style */
@keyframes beacon-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(198, 169, 106, 0.5);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(198, 169, 106, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(198, 169, 106, 0);
    }
}

.beacon-dot {
    animation: beacon-glow 2s infinite;
    background: #C6A96A;
}

/* Cross icon for disabled state */
@keyframes pulse-cross {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.status-cross {
    animation: pulse-cross 1.5s ease-in-out infinite;
    color: #ef4444;
}

/* Shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease;
}

/* Animated gradient button */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-gradient-btn {
    background: linear-gradient(90deg, #B8976A, #C6A96A, #A8895A, #B8976A, #A8895A);
    background-size: 300% 100%;
    animation: gradient-shift 4s ease infinite;
}

.animated-gradient-btn:hover {
    background: linear-gradient(90deg, #C6A96A, #B8976A, #A8895A, #C6A96A, #B8976A);
    background-size: 300% 100%;
    animation: gradient-shift 2s ease infinite;
    box-shadow: 0 0 25px rgba(198, 169, 106, 0.3);
}

/* Toast notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@keyframes toast-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toast-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    color: #F5F5F5;
    font-size: 14px;
    font-weight: 400;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: toast-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 360px;
}

.toast.toast-out {
    animation: toast-out 0.3s ease forwards;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-success .toast-icon {
    color: #22c55e;
}

/* File preview cards */
.file-preview-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(198, 169, 106, 0.1);
    border: 1px solid rgba(198, 169, 106, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: #F5F5F5;
    max-width: 140px;
}

.file-preview-card .file-icon {
    font-size: 18px;
    color: #C6A96A;
    flex-shrink: 0;
}

.file-preview-card .file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.file-preview-card .file-remove {
    color: #8B8B8B;
    cursor: pointer;
    transition: color 0.2s;
    flex-shrink: 0;
}

.file-preview-card .file-remove:hover {
    color: #ef4444;
}

/* Disabled input state */
#collapsed-input.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.08);
}

#collapsed-input.disabled:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

#collapsed-input.disabled .hero-preview-input {
    cursor: not-allowed;
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */

/* Mobile Nav Drawer */
#mobile-nav-drawer {
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

#mobile-nav-drawer.open {
    transform: translateX(0);
}

#mobile-nav-overlay.open {
    visibility: visible;
    opacity: 1;
}

/* Hamburger Animation */
#mobile-menu-toggle.open .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

#mobile-menu-toggle.open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#mobile-menu-toggle.open .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile nav link stagger animation */
.mobile-nav-link {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s, background-color 0.2s;
}

#mobile-nav-drawer.open .mobile-nav-link {
    opacity: 1;
    transform: translateX(0);
}

#mobile-nav-drawer.open li:nth-child(1) .mobile-nav-link { transition-delay: 0.1s; }
#mobile-nav-drawer.open li:nth-child(2) .mobile-nav-link { transition-delay: 0.15s; }
#mobile-nav-drawer.open li:nth-child(3) .mobile-nav-link { transition-delay: 0.2s; }
#mobile-nav-drawer.open li:nth-child(4) .mobile-nav-link { transition-delay: 0.25s; }

/* ============================================
   MOBILE ENHANCEMENTS
   ============================================ */

@media (max-width: 767px) {
    /* Touch target enhancements */
    #expanded-form input,
    #expanded-form textarea,
    #expanded-form select {
        min-height: 48px;
        padding: 14px 16px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    #close-form-btn {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #file-dropzone {
        min-height: 100px;
        padding: 24px;
    }

    #collapsed-input button {
        min-width: 44px;
        min-height: 44px;
    }

    #submit-btn {
        min-height: 52px;
        font-size: 15px;
    }

    footer .w-9.h-9 {
        width: 44px;
        height: 44px;
    }

    #countryCode {
        min-width: 100px;
        min-height: 48px;
    }

    /* Toast positioning - top on mobile */
    .toast-container {
        top: 88px;
        left: 16px;
        right: 16px;
        bottom: auto;
    }

    .toast {
        max-width: 100%;
        width: 100%;
        animation: toast-in-mobile 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .toast.toast-out {
        animation: toast-out-mobile 0.3s ease forwards;
    }

    /* Accessible focus states */
    input:focus,
    textarea:focus,
    select:focus,
    button:focus-visible {
        outline: 2px solid rgba(198, 169, 106, 0.5);
        outline-offset: 2px;
    }

    /* Flatpickr full width on mobile */
    .flatpickr-calendar {
        width: 240px !important;
        max-width: calc(100vw - 48px) !important;
        font-size: 0.75rem !important;
    }

    .flatpickr-day {
        height: 28px !important;
        line-height: 28px !important;
        max-width: 28px !important;
        flex-basis: 28px !important;
        font-size: 0.7rem !important;
        margin: 1px !important;
    }

    .dayContainer {
        min-width: 210px !important;
        max-width: 240px !important;
    }
}

/* Toast animations for mobile (from top) */
@keyframes toast-in-mobile {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toast-out-mobile {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

/* Safe area support for notched phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    @media (max-width: 767px) {
        a[data-whatsapp-link].fixed {
            bottom: calc(16px + env(safe-area-inset-bottom)) !important;
        }
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Particle GPU acceleration */
.particle {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .particle {
        animation: none !important;
        opacity: 0.15 !important;
    }

    .bg-glow {
        animation: none !important;
    }

    .animate-pulse-glow {
        animation: none !important;
    }

    .beacon-dot {
        animation: none !important;
    }

    #mobile-nav-drawer,
    #mobile-nav-overlay,
    .mobile-nav-link,
    .hamburger-line {
        transition: none !important;
    }

    .toast {
        animation: none !important;
    }
}
