/* Spinner Modal */
.spinner-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 99;
}

.spinner-grow {
    width: 4rem;
    height: 4rem;
    animation: spinner-grow 0.75s linear infinite;
}

@keyframes spinner-grow {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Choices.js Custom Styles */
.choices {
    margin-bottom: 0;
    position: relative;
}

.choices__inner {
    /* Match form-input styling */
    width: 100%;
    padding: 1.25rem 1.5rem; /* py-5 px-6 */
    font-size: 1rem; /* text-base */
    font-weight: 500;
    color: #111827; /* text-gray-900 */
    background-color: #ffffff; /* bg-white */
    border: 2px solid #e5e7eb; /* border-2 border-gray-200 */
    border-radius: 1rem; /* rounded-2xl */
    transition: all 0.3s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    letter-spacing: -0.01em;
    min-height: auto;
    display: flex;
    align-items: center;
}

.choices__inner:hover {
    border-color: #d1d5db; /* border-gray-300 */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.choices.is-focused .choices__inner {
    outline: none;
    border-color: #f97316; /* border-orange-500 */
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2); /* ring-4 ring-orange-500 ring-opacity-20 */
    transform: translateY(-1px);
}

.choices.is-focused .choices__inner {
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15), 0 0 0 4px rgba(249, 115, 22, 0.2);
}

/* Dropdown arrow styling */
.choices[data-type*="select-one"] .choices__inner {
    padding-right: 3rem;
    padding-bottom: 1.25rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f97316' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-position: right 1.5rem center;
    background-size: 18px 14px;
    background-repeat: no-repeat;
}

/* Hide the default arrow */
.choices[data-type*="select-one"]:after {
    display: none;
}

/* Placeholder text styling */
.choices__placeholder {
    color: #9ca3af; /* text-gray-400 */
    opacity: 1;
    font-weight: 400;
}

/* Selected item styling */
.choices__item--selectable {
    font-weight: 500;
    color: #111827;
}

/* Dropdown list styling */
.choices__list--dropdown {
    background-color: #ffffff;
    border: 2px solid #f97316; /* orange-500 border to match focus */
    border-top: none;
    border-radius: 0 0 1rem 1rem; /* rounded bottom corners */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    margin-top: -2px;
    max-height: 200px;
    overflow-y: auto;
}

.choices__list--dropdown .choices__item {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #374151; /* text-gray-700 */
    border-bottom: 1px solid #f3f4f6;
}

.choices__list--dropdown .choices__item--highlighted {
    background-color: #fff7ed; /* orange-50 */
    color: #ea580c; /* orange-600 */
}

.choices__list--dropdown .choices__item:last-child {
    border-bottom: none;
}

/* Invalid state styling */
.choices.is-invalid .choices__inner {
    border-color: #ef4444; /* border-red-500 */
    background-color: #fef2f2; /* bg-red-50 */
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.choices.is-invalid.is-focused .choices__inner {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
}

/* Search input styling within dropdown */
.choices__input {
    background-color: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: #111827;
    padding: 0;
}

.choices__input:focus {
    outline: none;
}

/* Loading state */
.choices.is-loading .choices__inner {
    opacity: 0.7;
}

/* Disabled state */
.choices.is-disabled .choices__inner {
    background-color: #f9fafb; /* bg-gray-50 */
    color: #9ca3af; /* text-gray-400 */
    cursor: not-allowed;
    opacity: 0.6;
}

/* Utility Classes */
.fs-7 {
    font-size: 12px;
}

.text-outline-orange {
    -webkit-text-stroke: 1px #FD7825;
    color: transparent;
}

.giant-title {
    font-size: 4rem;
}

.giant-subtitle {
    font-size: 2.8rem;
}

.car-info-top {
    margin-top: 67px;
    background-color: #ffffff;
}

.orange-card-bg {
    background-color: #FDFAF7;
}

.orange-separator {
    background-color: #ffe1cb;
    height: 3px;
    width: 100%;
}

.card-bg {
    background-color: #F7F6F5;
}

.orange-badge {
    background-color: #FD7825 !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 500;
}
.form-control {
    padding: .75rem .75rem;
    font-weight: 500;
}
.form-control::placeholder {
    color: #9f9f9f;
    font-weight: normal;
}
.form-label {
    text-transform: uppercase;
    font-size: .8rem;
    color: #9f9f9f;
}