.erb-booking-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Progress Steps */
.erb-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    padding: 0 15%;
}

.erb-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.erb-step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.erb-step-number {
    width: 50px;
    height: 50px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 20px;
    color: #666;
}

.erb-step.active .erb-step-number {
    background: #01689b;
    color: white;
}

.erb-step-title {
    font-size: 14px;
    color: #666;
}

/* Form Layout */
.erb-section {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.erb-section-header {
    font-size: 24px;
    font-weight: 500;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.erb-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Restore two column layout */
    gap: 24px;
}

@media (max-width: 768px) {
    .erb-form-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    .erb-form-group input,
    .erb-form-group select,
    .erb-form-group textarea {
        padding: 12px;
        font-size: 16px; /* Better for mobile touch */
    }

    .erb-phone-input {
        gap: 8px;
    }

    .erb-phone-row {
        flex-direction: column;
    }
}

.erb-form-group {
    position: relative;
    margin-bottom: 24px;
}

.erb-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
}

.erb-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #666;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    line-height: 1;
    margin-left: 5px;
    transition: background-color 0.2s;
}

.erb-info-icon:hover {
    background: #01689b;
}

/* Reset and explicit form field styles */
.erb-form-group input[type="text"],
.erb-form-group input[type="email"],
.erb-form-group input[type="tel"],
.erb-form-group input[type="datetime-local"],
.erb-form-group select,
.erb-form-group textarea {
    width: 100%;
    height: 42px;
    padding: 5px 16px;
    font-size: 15px;
    line-height: 30px;
    color: #333333;
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.2s ease;
    margin: 0;
    box-sizing: border-box;
}

/* Placeholder styles */
.erb-form-group input::placeholder,
.erb-form-group textarea::placeholder {
    color: #9E9E9E;
    opacity: 1;
    font-size: 15px;
    line-height: 30px;
}

/* Focus states */
.erb-form-group input:focus,
.erb-form-group select:focus,
.erb-form-group textarea:focus {
    outline: none;
    border-color: #01689b;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    background-color: #FFFFFF;
}

/* Textarea specific styles */
.erb-form-group textarea {
    height: auto;
    min-height: 120px;
    padding: 12px 16px;
    line-height: 1.5;
    resize: vertical;
}

/* Select specific styles */
.erb-form-group select {
    padding: 5px 35px 5px 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

/* Phone input styles */
.erb-phone-input {
    position: relative;
    width: 100%;
}

.erb-phone-row {
    display: flex;
    gap: 12px;
}

#phone_code {
    flex: 1;
}

#custom_phone_code {
    flex: 1;
}

/* Radio button styles - properly hide input while keeping accessibility */
.erb-radio-button input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Radio label styles */
.erb-radio-button {
    flex: 1;
    position: relative;
}

.erb-radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 5px 24px;
    background: #FFFFFF;
    border: 2px solid #E0E0E0;
    border-radius: 24px;
    color: #666666;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.erb-radio-button input[type="radio"]:checked + .erb-radio-label {
    background: #01689b;
    border-color: #01689b;
    color: #FFFFFF;
}

.erb-radio-button:hover .erb-radio-label {
    border-color: #01689b;
    color: #01689b;
}

.erb-radio-button input[type="radio"]:checked:hover + .erb-radio-label {
    background: #01689b;
    color: #FFFFFF;
}

/* Responsive styles */
@media (max-width: 768px) {
    .erb-phone-row {
        flex-direction: column;
    }

    .erb-form-group input[type="text"],
    .erb-form-group input[type="email"],
    .erb-form-group input[type="tel"],
    .erb-form-group input[type="datetime-local"],
    .erb-form-group select,
    .erb-phone-input input,
    .erb-phone-input select {
        height: 42px;
        padding: 5px 16px;
        line-height: 30px;
        font-size: 16px;
    }

    .erb-radio-label {
        height: 42px;
        padding: 5px 20px;
    }
}

/* Label styles */
.erb-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    text-transform: uppercase;
}

/* Error message inside input field */
.erb-form-group {
    position: relative;
}

.field-error {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #dc3545;
    font-size: 12px;
    background: #fff;
    padding: 0 8px;
    border-radius: 4px;
    z-index: 2;
    display: none;
    white-space: nowrap;
}

/* Show error state */
.erb-field-error {
    border-color: #DC3545 !important;
    padding-right: 120px !important; /* Make space for error message */
}

/* Error state for textarea */
textarea.erb-field-error + .field-error {
    top: 20px;
    transform: none;
}

/* Phone input error positioning */
.erb-phone-input .field-error {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

/* Make sure error doesn't overflow on mobile */
@media (max-width: 768px) {
    .field-error {
        font-size: 11px;
        padding: 0 4px;
    }
    
    .erb-field-error {
        padding-right: 90px !important;
    }
}

/* Form grid layout */
.erb-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Restore two column layout */
    gap: 24px;
}

@media (max-width: 768px) {
    .erb-form-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 24px;
    }
}

/* Summary Section */
.erb-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.erb-summary-item {
    text-align: center;
}

.erb-summary-label {
    font-size: 14px;
    color: #333333;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.erb-summary-value {
    font-size: 24px;
    color: #333;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.erb-summary-icon {
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
}

.distance-icon {
    background-image: url('../images/distance-icon.svg');
}

.time-icon {
    background-image: url('../images/time-icon.svg');
}

.erb-next-button {
    background: #01689b;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    transition: background-color 0.2s;
}

.erb-next-button:hover {
    background: #01689b;
}

.erb-button-arrow {
    font-size: 20px;
}

/* Map Column */
.erb-map-column {
    background: #f5f5f5;
    border-radius: 8px;
    min-height: 600px;
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
}

/* Custom animations and transitions */
.booking-section {
    transition: opacity 0.3s ease;
}

.booking-section:not(.active) {
    display: none;
}

/* Any other custom styles that Tailwind doesn't provide */

.erb-button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.erb-prev-button {
    background: #f5f5f5;
    color: #666;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.erb-prev-button:hover {
    background: #eee;
    transform: translateY(-1px);
}

.erb-submit-button {
    background: #01689b;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.erb-submit-button:hover {
    background: #01689b;
    transform: translateY(-1px);
}

/* Vehicle Selection Styles */
.erb-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force 3 columns */
    gap: 24px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .erb-vehicles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .erb-vehicles-grid {
        grid-template-columns: 1fr;
    }
}

.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px 1px 1px 1px);
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.erb-vehicle-card {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    display: block; /* Ensure the label acts as a block */
}

.erb-vehicle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.erb-vehicle-card input[type="radio"]:checked + .erb-vehicle-content {
    border-color: #01689b;
    background-color: #f8fff8;
}

.erb-vehicle-content {
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
    background: #fafafa;
    display: flex;
    flex-direction: column;
}

.erb-vehicle-card:hover .erb-vehicle-content {
    border-color: #01689b;
    background: white;
}

.erb-vehicle-card input[type="radio"]:checked ~ .erb-vehicle-content {
    border-color: #01689b;
    background: white;
    box-shadow: 0 2px 12px rgba(76, 175, 80, 0.15);
}

.erb-vehicle-card input[type="radio"]:checked ~ .erb-vehicle-content h3 {
    color: #01689b;
}

.erb-vehicle-image {
    width: 100%;
    height: 150px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.erb-vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    background: #eee;
}

.erb-vehicle-info {
    text-align: center;
}

.erb-vehicle-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px;
    transition: color 0.3s;
}

.erb-vehicle-specs {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 8px;
}

.erb-vehicle-spec {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.erb-vehicle-spec-icon {
    width: 18px;
    height: 18px;
    fill: #01689b;
}

.erb-vehicle-spec span {
    white-space: nowrap;
}

.erb-vehicle-desc {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.erb-vehicle-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    color: #555;
    font-size: 14px;
}

.erb-vehicle-price {
    font-size: 18px;
    font-weight: 600;
    color: #01689b;
    margin-bottom: 15px;
}

.erb-select-vehicle {
    width: 100%;
    background: #01689b;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: 500;
}

.erb-select-vehicle:hover {
    background: #01689b;
}

/* Contact Form Improvements */
.erb-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.erb-form-group textarea:focus {
    outline: none;
    border-color: #01689b;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

/* Phone input styles */
.erb-phone-input input,
.erb-phone-input select {
    text-align: left;
}

/* Textarea alignment */
.erb-form-group textarea {
    min-height: 100px;
    resize: vertical;
    text-align: left;
}

/* Update form column styles */
.erb-form-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Right column specific styles */
.erb-route-summary {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.erb-route-summary h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

/* Map container styles */
.erb-map-container {
    background: #f5f5f5;
    border-radius: 12px;
    height: 400px;
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* Update the loading state styles */
.erb-map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    z-index: 1;
}

.erb-map-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #01689b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
    z-index: 2;
}

.erb-map-container.loading::before,
.erb-map-container.loading::after {
    display: block;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .erb-form-grid {
        grid-template-columns: 1fr;
    }
    
    .erb-map-container {
        height: 250px;
    }
    
    .erb-route-summary {
        order: 2;
    }
}

/* First form group in each column shouldn't have top margin */
.erb-form-column > .erb-form-group:first-child {
    margin-top: 0;
}

/* Section error message */
.erb-error {
    color: #dc3545;
    font-size: 14px;
    padding: 12px 16px;
    background-color: #fff5f5;
    border-radius: 8px;
    border: 1px solid #ffebeb;
    margin-bottom: 16px;
}

/* Phone input styling */
.iti {
    width: 100%;
    display: block;
}

/* Style the phone input to match other fields */
.iti .iti__tel-input {
    width: 100%;
    height: 42px;
    padding: 5px 16px 5px 95px !important;
    font-size: 15px;
    line-height: 30px;
    color: #333333;
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    box-shadow: none;
    transition: all 0.2s ease;
    margin: 0;
    box-sizing: border-box;
}

/* Style the flag container */
.iti__flag-container {
    z-index: 3;
    height: 40px;
    margin: 1px;
}

/* Flag dropdown button styling */
.iti__selected-flag {
    height: 40px !important;
    padding: 0 12px !important;
    background-color: #FFFFFF !important;
    border-radius: 7px 0 0 7px;
    border-right: 1px solid #E0E0E0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    min-width: 85px;
}

/* Selected dial code */
.iti__selected-dial-code {
    color: #333333;
    font-size: 15px;
    line-height: 30px;
    margin-left: 6px;
}

/* Country list styling */
.iti__country-list {
    margin-top: 1px !important;
    border-radius: 0 0 8px 8px;
    border: 1px solid #E0E0E0;
    background-color: #FFFFFF;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-height: 220px;
}

/* Country list items */
.iti__country {
    padding: 8px 12px !important;
    display: flex;
    align-items: center;
}

.iti__country-name {
    margin-left: 8px;
    font-size: 14px;
}

/* Focus and hover states */
.iti__tel-input:focus {
    outline: none;
    border-color: #01689b;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.iti__country.iti__highlight {
    background-color: #f5f5f5;
}

/* Error state */
.iti__tel-input.erb-field-error {
    border-color: #DC3545;
    padding-right: 120px !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .iti .iti__tel-input {
        font-size: 16px;
        padding: 5px 16px 5px 90px !important;
    }
    
    .iti__selected-flag {
        padding: 0 10px !important;
        min-width: 80px;
    }
    
    .iti__selected-dial-code {
        font-size: 14px;
    }
} 

#phone{
    padding-left: 100px;
}

/* Contact form layout */
.erb-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Name fields container */
.erb-name-fields {
    display: flex;
    gap: 20px;
    width: 100%;
    margin-bottom: 20px;
}

.erb-name-fields .erb-form-group {
    flex: 1;
    min-width: 0;
    margin: 0;
}

/* Form groups */
.erb-form-group {
    width: 100%;
    margin: 0 0 20px 0; /* Add bottom margin for spacing */
}

/* Remove margin from last form group */
.erb-form-group:last-child {
    margin-bottom: 0;
}

/* Input styling */
.erb-form-group input[type="text"],
.erb-form-group input[type="email"],
.erb-form-group input[type="tel"] {
    width: 100%;
    height: 42px;
    padding: 5px 16px;
    font-size: 15px;
    line-height: 30px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .erb-contact-form {
        gap: 16px;
    }

    .erb-name-fields {
        gap: 12px;
        margin-bottom: 16px;
    }

    .erb-form-column {
        gap: 16px;
    }

    .erb-form-group {
        margin-bottom: 16px;
    }
}

html .iti.iti--allow-dropdown{
    margin: 0px !important;
}

html .iti.iti--allow-dropdown input{
    padding-left: 100px !important;
}