:root {
    --interaction-pink: #e5417c;
    --interaction-pink-light: #fff6f9;
    --interaction-blue: #016bcd;
    --grey-outline: #f0f0f0;
    --grey-light-bg: #f8f9fa;
    --grey-light-text: #667085;
    --dark-text: #0f2d49;
    --desktop-overview-bg: #f0f7ff;
    --outline-blue: #dbe8f6;
    --blue-light-bg: #f8fbff;
    --error-red: #e80e00;
    --success-green: #34905e;
    --secondary-grey: #667085;
    --warning-bg-color: #EFBFBF;

    /* Vehicle radio button variables */
    --vehicle-btn-padding-mobile: 16px 12px;
    --vehicle-btn-padding-desktop: 24px 32px;
    --vehicle-btn-gap-mobile: 12px;
    --vehicle-btn-gap-desktop: 24px;
    --vehicle-btn-radius-mobile: 12px;
    --vehicle-btn-radius-desktop: 16px;

    /* Vehicle font sizes */
    --vehicle-title-size-mobile: 16px;
    --vehicle-title-size-desktop: 20px;
    --vehicle-title-weight: 700;
    --vehicle-title-line-height-mobile: 16px;
    --vehicle-title-line-height-desktop: 24px;
    --vehicle-price-size-mobile: 14px;
    --vehicle-price-size-desktop: 20px;
    /* Reduced from 26px to make pricing section more compact */
    --vehicle-price-prefix-size-mobile: 12px;
    --vehicle-price-prefix-size-desktop: 13px;
    /* Reduced from 15px to make pricing section more compact */
    --vehicle-dimensions-size-mobile: 12px;
    --vehicle-dimensions-size-desktop: 12px;

    /* Vehicle icon dimensions */
    --vehicle-icon-width-mobile: 65px;
    --vehicle-icon-height-mobile: 34px;
    --vehicle-icon-width-desktop: 80px;
    --vehicle-icon-height-desktop: 40px;
    --vehicle-icon-parcel-width-mobile: 39px;
    --vehicle-icon-parcel-height-mobile: 44px;
    --vehicle-icon-parcel-width-desktop: 70px;
    --vehicle-icon-parcel-height-desktop: 80px;

    /* Vehicle item icon dimensions */
    --vehicle-item-icon-size-mobile: 32px;
    --vehicle-item-icon-size-desktop: 40px;
    /* Reduced from 48px to fit more icons */
    --vehicle-item-icon-img-size-mobile: 20px;
    --vehicle-item-icon-img-size-desktop: 20px;
    /* Reduced from 24px to fit more icons */
    --vehicle-item-icon-wrapper-width-mobile: 50px;
    --vehicle-item-icon-wrapper-width-desktop: 70px;
    /* Reduced from 80px to fit more icons */
    --vehicle-item-icon-wrapper-width-compact: 62px;
    /* Compact width for intermediate screen sizes (960px-1599px) */
    --vehicle-item-icon-wrapper-width-extra-compact: 60px;
    /* Extra compact width for very constrained screens */
    --vehicle-item-icon-wrapper-width-ultra-compact: 58px;
    /* Ultra compact width for 1280px range where icons get cut off */

    /* Vehicle badge styles */
    --vehicle-badge-padding-inline: 2px 4px;
    --vehicle-badge-padding-full: 8px 20px;
    --vehicle-badge-radius-inline: 12px;
    --vehicle-badge-radius-full: 24px;
    --vehicle-badge-font-size-inline: 9px;
    --vehicle-badge-font-size-full: 14px;
    --vehicle-badge-line-height-inline: 11px;
    --vehicle-badge-line-height-full: 18px;
    --vehicle-badge-min-height-inline: 15px;

    /* Vehicle warning text */
    --vehicle-warning-text-padding: 4px 12px;
    --vehicle-warning-text-width: 160px;
    --vehicle-warning-text-font-size: 9px;
    --vehicle-warning-text-placeholder-height-mobile: 20px;
    --vehicle-warning-text-placeholder-height-desktop: 15px;

    /* Common gaps */
    --vehicle-gap-2px: 2px;
    --vehicle-gap-xs: 4px;
    --vehicle-gap-6px: 6px;
    --vehicle-gap-sm: 8px;
    --vehicle-gap-10px: 10px;
    --vehicle-gap-md: 12px;
    --vehicle-gap-lg: 16px;
    --vehicle-gap-xl: 24px;
    --vehicle-gap-xxl: 32px;

    /* Responsive Breakpoint System
     *
     * Breakpoints are defined here for documentation and consistency.
     * Note: CSS custom properties cannot be used directly in @media queries,
     * so these values are referenced in comments throughout the codebase.
     *
     * Breakpoint Strategy (overlapping - best practice for gap-free responsiveness):
     * - Mobile-first: Base styles target mobile, desktop styles override
     * - Main breakpoint at 960px for desktop styles
     * - Mobile: max-width 1257px (--breakpoint-mobile-max)
     * - Desktop: min-width 960px (--breakpoint-desktop-min)
     * - Granular desktop breakpoints for optimal icon display:
     *   * 960px - 1256px: Small desktop/large tablet (compact icons)
     *   * 1257px - 1399px: Medium desktop (compact icons, handles scaled displays like 2880x1800@200%)
     *   * 1400px - 1599px: Large desktop (standard icons)
     *   * 1600px - 1919px: Very large desktop (standard icons)
     *   * 1920px+: Ultrawide/4K (standard icons)
     *
     * Usage in media queries:
     *   @media screen and (min-width: 960px) { ... }  // Desktop base
     *   @media screen and (max-width: 1257px) { ... }  // Mobile/Tablet
     *   @media screen and (min-width: 960px) and (max-width: 1256px) { ... }  // Small desktop
     *   @media screen and (min-width: 1257px) and (max-width: 1399px) { ... }  // Medium desktop
     *
     * Icon sizing strategy:
     * - Extra compact (60px wrapper, 2px gap): 960px - 1256px (small desktop)
     * - Ultra compact (58px wrapper, 2px gap): 1257px - 1319px (critical range including 1280px)
     * - Compact (62px wrapper, 2px gap): 1320px - 1599px (medium/large desktop, handles scaled displays)
     * - Standard (70px wrapper, 4px gap): 1600px+ (very large desktop)
     */
    --breakpoint-mobile-max: 1257px;
    --breakpoint-desktop-min: 960px;

    /* Legacy alias for backward compatibility */
    --breakpoint-desktop: 1257px;
}

* {
    scrollbar-width: none !important;
    outline: none !important;
}

*::-webkit-scrollbar {
    display: none !important;
    width: 0px !important;
    height: 0px !important;
}

body {
    overflow: hidden;
}

#content {
    font-family: 'Heebo Regular', sans-serif !important;
    color: var(--dark-text) !important;
    min-width: 0 !important;
    min-height: 0 !important;
}

#content a {
    color: var(--interaction-blue) !important;
}

#content .title-bar-title {
    font-family: 'Gilroy-Bold', sans-serif !important;
}

#content .step-label {
    font-family: 'Gilroy-SemiBold', sans-serif !important;
}

#content .step-label-bold {
    font-family: 'Gilroy-Bold', sans-serif !important;
}

#content .order-form-content-title {
    font-family: 'Gilroy-Bold', sans-serif !important;
}

#content .order-form-radio-btn-select-wrapper {
    font-family: 'Gilroy-SemiBold', sans-serif !important;
}

input,
textarea {
    font-family: 'Heebo Regular', sans-serif !important;
    color: var(--dark-text) !important;
}

input::placeholder,
textarea::placeholder {
    font-family: 'Heebo Regular', sans-serif !important;
    color: var(--grey-light-text) !important;
    font-style: italic;
}

#content-root,
.main-content {
    background-color: var(--blue-light-bg) !important;
}

.py-12 {
    padding-top: 3em !important;
    padding-bottom: 0px !important;
}

.fade-in {
    opacity: 1;
    animation-name: fadeInOpacity;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 0.3s;
}


@keyframes fadeInOpacity {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.order-form-layout {
    display: flex;
    flex-direction: row;
    gap: 32px;
    height: 100%;
}


.order-form-step {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
}

.field-error {
    border: 1.5px solid var(--error-red) !important;
}

.field-error-message {
    color: var(--error-red) !important;
    font-size: 12px;
    line-height: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Desktop breakpoint: 1257px (--breakpoint-desktop-min) */
@media only screen and (min-width: 1257px) {
    .desktop-order-form-overview {
        display: flex;
        height: fit-content;
        position: sticky;
        top: 120px;
    }

    .mobile-order-form-overview {
        display: none;
    }

    .order-form-step-content {
        gap: 18px;
        border-radius: 12px;
        padding: 24px;
    }

    .order-form-left-column-wrapper {
        display: flex;
        flex-direction: column;
        width: 79%;
        height: 100%;
    }

    .order-form-left-column {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        height: 100px;
        flex: 1 1 auto;
        overflow-y: auto;
        padding-top: 20px;
    }

    .order-form-left-column-layout {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .order-form-step-layout {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .navbar {
        position: relative;
        display: flex;
        flex-direction: column;
        height: calc(100% + 80px);
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .py-12 {
        padding-top: 0px !important;
        padding-bottom: 0px !important;
    }

    .order-form-step-layout-desktop-gap-placeholder {
        height: 24px;
    }
}

/* Mobile/Tablet breakpoint: max-width 1257px (--breakpoint-mobile-max) */
@media only screen and (max-width: 1257px) {

    html,
    body {
        -webkit-text-size-adjust: none;
        touch-action: manipulation;
        position: fixed;
        width: 100%;
    }

    .navbar {
        position: absolute;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        height: calc(100% - 200px);
    }

    .desktop-order-form-overview {
        display: none;
    }

    .mobile-order-form-overview {
        display: flex;
        justify-content: center;
        width: 100%;
        position: sticky;
        bottom: 8px;
    }

    .order-form-left-column-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
    }

    .order-form-left-column {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        height: 100%;
    }

    .order-form-left-column-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: var(--white);
        height: 100%;
    }

    .order-form-step-content {
        gap: 24px;
        padding: 0px 16px 24px 16px;
    }

    .py-12 {
        padding-top: 18px !important;
        padding-bottom: 0px !important;
    }

    .px-12 {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    .order-form-step-layout {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100px;
        overflow-y: auto;
        flex: 1 1 auto;
        scrollbar-width: none;
        justify-content: space-between;
    }

    .mobile-form {
        display: flex;
        flex-direction: column;
        /* the gap is 60px on the design, but on the design that 60px is calculated according to the relative
        position of the stepper (it's shifted up about 2/3 of its height). since we don't use relative position
        calculate the gap starting from the stepper's bottom 1/3. 74px is the height of the stepper.
         */
        gap: calc(60px - 0.3 * 74px);
    }

    .scrollable {
        overflow-y: hidden;
        height: 100% !important;
    }

    .mobile-stepper-background {
        display: flex;
        justify-content: center;
        /* on the design a relative position is used for the stepper, making it looked shifted */
        /* here we simply making a 2 color background for it, separated at the bottom 1/3 */
        background: linear-gradient(180deg, var(--blue-light-bg) 70%, var(--white) 70%);
        height: fit-content;
        width: 100%;
    }

    .hide-stepper {
        display: none;
    }

    .order-form-step-layout-desktop-gap-placeholder {
        display: none;
    }

}

.order-form-content-title {
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
}

.order-form-content-title-md {
    font-size: 18px;
    font-weight: 700;
    line-height: 27px;
}


.order-form-input-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.order-form-highlighted-number {
    padding: 4px 8px 4px 8px;
    gap: 10px;
    border-radius: 4px;
    background-color: var(--interaction-pink-light);

    font-size: 14px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
    color: var(--interaction-pink);
}


.order-form-link {
    cursor: pointer !important;
    color: var(--interaction-blue) !important;
    text-decoration: underline !important;
}

.error-placeholder {
    display: none;
}

.input-field-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.font-weight-700 {
    font-weight: 700;
}

.interaction-pink {
    color: var(--interaction-pink) !important;
}

/*
 * Print Styles (Best Practice)
 * Ensure content is readable when printed
 */
@media print {
    .order-form-vehicle-radio-btn {
        break-inside: avoid;
        /* Prevent cards from splitting across pages */
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .mobile-order-form-overview,
    .desktop-order-form-overview {
        display: none !important;
    }
}

/*
 * Reduced Motion (Accessibility)
 * Respect user's motion preferences
 */
@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;
    }
}

/*
 * High Contrast Mode Support (Accessibility)
 */
@media (prefers-contrast: high) {
    .order-form-vehicle-radio-btn {
        border: 2px solid currentColor;
    }

    .order-form-radio-btn:focus-visible {
        outline-width: 3px;
    }
}
