:root {
    --primary: #ff4f4f;
    --primary-dark: #e04646;
    --text: #333333;
    --light-bg: #f9f9f9;
    --border: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light-bg);
}

/* Booking Header */
.booking-header {
    text-align: center;
    padding: 1rem 1.5rem;
    background-color: white;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.booking-header h1 {
    margin: 0;
    font-size: 1.5rem;
    
    color: var(--primary);
}

/* Booking Steps */




/* Mobile Responsiveness */
@media (max-width: 768px) {
    .booking-steps {
        padding: 0 15px;
    }
    
    .booking-steps::before {
        left: calc(40px / 2);
        right: calc(40px / 2);
    }
    .booking-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50px;
    right: 50px;
    }
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .booking-steps {
        padding: 0 10px;
    }
    
    .booking-steps::before {
        left: calc(40px / 1);
        right: calc(36px / 2);
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-width: 2px;
    }
    
    .step-label {
        font-size: 12px;
        white-space: nowrap;
    }
}

/* Animation Enhancements */
@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.step.active .step-number {
    animation: bounce 0.6s ease;
}

.step.completed .step-number::after {
    content: '✓';
    position: absolute;
    font-size: 18px;
    color: white;
    opacity: 0;
    transform: scale(0.5);
    animation: checkIn 0.4s 0.2s ease-out forwards;
}

@keyframes checkIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Form Container */
.booking-form-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

#step2-form {
    animation: fadeIn 0.5s ease;
}

.form-title {
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.8rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0rem;
    color: rgb(17, 17, 17);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
    appearance: none;
    position: relative;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 79, 79, 0.2);
}

/* Select dropdown styling */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '⌄';
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: var(--gray);
    pointer-events: none;
    font-size: 1.2rem;
}

/* Form navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
}

/* Base button styles - applies to all buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-weight: 500;
}

/* Submit/Next button styles */
.btn-next, 
.btn-submit {
    background-color: var(--primary);
    color: white;
    width: 100%;
    text-align: center;
}

/* Back button styles */
.btn-back {
    background-color: transparent;
    color: #555;
    border: 1px solid #ddd;
    width: 100%;
    text-align: center;
}

/* Desktop styles */
@media (min-width: 768px) {
    .form-navigation {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .btn-next,
    .btn-submit,
    .btn-back {
        width: auto;
        min-width: 150px;
    }
    
    .btn-back {
        order: -1;
        margin-right: auto;
    }
    
    .btn-submit,
    .btn-next {
        order: 1;
        margin-left: auto;
    }
}

.btn-next:hover, .btn-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-back:hover {
    background-color: #d0d0d0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ========== CUSTOM DROPDOWN STYLES ========== */
.custom-select-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
    width: 100%;
}

.custom-select-selected {
    padding: .8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    color: #666;
    font-size: 1rem;
}

.custom-select-selected.has-value {
    color: #333;
}

.custom-select-selected::after {
    content: '⌄';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: #666;
}

.custom-select-wrapper.active .custom-select-selected::after {
    transform: translateY(-50%) rotate(180deg);
}

.custom-select-wrapper.active .custom-select-selected {
    border-color: #FF4F4F;
    box-shadow: 0 0 0 3px rgba(255, 79, 79, 0.2);
}

.custom-select-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10;
    margin-top: 5px;
}

.custom-select-option {
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.custom-select-option:hover {
    background-color: rgba(255, 79, 79, 0.1);
    color: #FF4F4F;
}

.custom-select-option:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.custom-select-option:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.custom-select-wrapper.loading .custom-select-selected {
    color: transparent;
}

.loading-dots {
    display: flex;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.loading-dots span {
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background-color: #FF4F4F;
    border-radius: 50%;
    display: inline-block;
    animation: loading-dots 1s infinite ease-in-out;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loading-dots {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.error .custom-select-selected {
    border-color: #FF4F4F !important;
}

.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* ========== LICENSE PLATE STYLES ========== */
.license-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    min-height: 80px;
    width: 100%;
}


.license-plate-input input {
    height: 100%;
    min-height: 60px;
    padding: 1rem;
    box-sizing: border-box;
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.license-state-input .custom-select-selected {
    height: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.license-state-input {
    width: 100% !important;
}

.license-state-input .custom-select-wrapper {
    height: 100%;
    margin-bottom: 0;
    width: 100%;
}

.license-state-input .custom-select-selected {
    height: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: left;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
}

.or-divider {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    color: #666;
}

.or-line {
    flex: 1;
    height: 1px;
    background-color: #ff0000;
}

.or-text {
    padding: 0 1rem;
    font-size: 0.9rem;
    color: red;
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.85rem;
}

@media (max-width: 767px) {
    .license-row {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .license-plate-input {
        width: 58%;
    }

    
    .license-plate-input input,
    .license-state-input .custom-select-selected {
        min-height: 60px;
        height: 100%;
    }
}
