/* montserrat-600 - latin */
@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    src: url('/fonts/montserrat-v31-latin-600.woff2') format('woff2');
}

/* open-sans-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/open-sans-v44-latin-regular.woff2') format('woff2');
}

body {
    font-family: 'Open-Sans', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-toggle.active .faq-icon {
    transform: rotate(180deg);
}

/* Keep the reCAPTCHA badge above page UI, but below the mobile menu drawer. */
.grecaptcha-badge,
.grecaptcha-badge iframe {
    z-index: 2147483500 !important;
}

/* reCAPTCHA injects its own max-layer styles; fade it only while the drawer is open. */
.grecaptcha-badge {
    transition: opacity 0.25s ease !important;
}

body.mobile-menu-open .grecaptcha-badge,
body.mobile-menu-open .grecaptcha-badge iframe {
    opacity: 0 !important;
    pointer-events: none !important;
}

body.mobile-menu-open {
    overflow: hidden;
}

#mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 2147483600;
    pointer-events: none;
}

#mobile-menu-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(24rem, 88vw);
    background: #1f2937;
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.35);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 2147483610;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

#mobile-menu {
    max-width: 100vw;
}

@media (max-width: 767px) {
    #mobile-menu {
        width: 100vw;
    }
}

#mobile-menu.is-open {
    transform: translateX(0);
}

#mobile-menu > div:first-child {
    position: sticky;
    top: 0;
    background: #1f2937;
    z-index: 1;
}

#mobile-menu .mobile-menu-item {
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#mobile-menu.is-open .mobile-menu-item {
    opacity: 1;
    transform: translateX(0);
}

#mobile-menu.is-open.is-opening .mobile-menu-item:nth-child(1) {
    transition-delay: 0.05s;
}

#mobile-menu.is-open.is-opening .mobile-menu-item:nth-child(2) {
    transition-delay: 0.09s;
}

#mobile-menu.is-open.is-opening .mobile-menu-item:nth-child(3) {
    transition-delay: 0.13s;
}

#mobile-menu.is-open.is-opening .mobile-menu-item:nth-child(4) {
    transition-delay: 0.17s;
}

#mobile-menu.is-open.is-opening .mobile-menu-item:nth-child(5) {
    transition-delay: 0.21s;
}

#mobile-menu.is-open.is-opening .mobile-menu-item:nth-child(6) {
    transition-delay: 0.25s;
}

#mobile-menu.is-open.is-opening .mobile-menu-item.mobile-menu-cta {
    transition-delay: 0.25s;
}

#mobile-menu.is-open .mobile-menu-item.mobile-menu-cta:hover {
    transition-delay: 0s;
    transition-duration: 150ms;
    opacity: 0.9;
}

.mobile-contact-icon {
    transition: transform 0.2s ease;
}

.mobile-contact-icon.is-open {
    transform: rotate(180deg);
}

#back-to-top-btn {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid #9ca3af;
    border-radius: 9999px;
    background: #1f2937;
    color: #f1f5f9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    z-index: 45;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    #back-to-top-btn:hover {
        background: #ba8437;
    }
}

#back-to-top-btn:active {
    background: #ba8437;
}

.detailed-time-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.75rem;
    background-image:
        linear-gradient(45deg, transparent 50%, #4b5563 50%),
        linear-gradient(135deg, #4b5563 50%, transparent 50%);
    background-repeat: no-repeat;
    background-position:
        calc(100% - 1.1rem) calc(50% + 0.02rem),
        calc(100% - 0.82rem) calc(50% + 0.02rem);
    background-size: 0.32rem 0.32rem, 0.32rem 0.32rem;
}

.form-disclaimer-bg {
    background-color: #f8fafc;
}

#back-to-top-btn.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (min-width: 768px) {
    #back-to-top-btn {
        bottom: 1.5rem;
        left: 1.5rem;
    }
}
