#msform .action-button {
    width: 100% !important;
    margin: 0px !important;
}

#msform .action-button-secondary {
    width: 100% !important;
    margin: 0px !important;
    margin-bottom: 10px !important;
    margin-top: 10px !important;
}

/* --- Form Container --- */
.cab-booking-form-container {
    width: 100%;
    max-width: 750px;
    margin: 50px auto;
    text-align: center;
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* --- Map Container --- */
#map {
    height: 400px;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background-color: #e5e7eb;
}

/* --- Autocomplete --- */
.autocomplete-container {
    position: relative;
    margin-bottom: 15px;
    display: flex;
    /* Used for remove button alignment */
    align-items: center;
    gap: 10px;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    text-align: left;
}

.autocomplete-item:hover {
    background-color: #f1f5f9;
}

/* --- Fieldsets & Transitions --- */
#msform fieldset {
    background: white;
    border: 0 none;
    border-radius: 0px;
    padding: 20px 10px;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    position: relative;
    display: none;
}

#msform fieldset.active-step {
    display: block;
}

/* --- Form Inputs --- */
#msform input {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    color: #333;
    background-color: #f9fafb;
}

#msform input.invalid {
    border-color: #e74c3c;
}

/* --- Form Titles --- */
.fs-title {
    font-size: 26px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
}

.fs-subtitle {
    font-weight: 400;
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 30px;
}

/* --- Progress Bar --- */
#progressbar {
    margin-bottom: 40px;
    overflow: hidden;
    counter-reset: step;
    display: flex;
    justify-content: space-between;
    padding-left: 0;
}

#progressbar li {
    list-style-type: none;
    color: #9ca3af;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 500;
    width: 33.33%;
    position: relative;
    text-align: center;
}

#progressbar li:before {
    content: counter(step);
    counter-increment: step;
    width: 36px;
    height: 36px;
    line-height: 36px;
    display: block;
    font-size: 16px;
    color: #4b5563;
    background: #e5e7eb;
    border-radius: 50%;
    margin: 0 auto 10px auto;
}

#progressbar li:after {
    content: '';
    width: 100%;
    height: 3px;
    background: #e5e7eb;
    position: absolute;
    left: -50%;
    top: 16px;
    z-index: -1;
}

#progressbar li:first-child:after {
    content: none;
}

#progressbar li.active {
    color: #007bff;
    font-weight: 600;
}

#progressbar li.active:before {
    background: #007bff;
    color: white;
}

#progressbar li.active:after {
    background: #007bff;
}

/* --- Action Buttons --- */
#msform .action-button,
#msform .action-button-secondary {
    width: 120px;
    font-weight: 600;
    border: 0 none;
    border-radius: 8px;
    cursor: pointer;
    padding: 14px;
    margin: 10px 5px;
    font-size: 14px;
    text-transform: uppercase;
}

#msform .action-button {
    background: #007bff;
    color: white;
}

#msform .action-button-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

#add-via-btn {
    width: auto;
    display: block;
    margin: 0 auto 20px auto;
    padding: 10px 20px;
}

.remove-via-btn {
    padding: 8px 12px;
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 15px;
    /* Aligns with input margin */
}

/* --- Vehicle Selection --- */
.vehicle-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.vehicle-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
}

.vehicle-card.selected {
    border-color: #007bff;
}

.rate-options {
    margin-top: 15px;
}

.rate-options label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
}

.rate-options label.selected-option {
    background-color: #eaf2ff;
}

.rate-options input[type="radio"] {
    display: none;
}

.rate-options .fare-amount {
    font-weight: 600;
    color: #007bff;
    margin-left: 5px;
}

/* --- Summary & Messages --- */
#booking-summary {
    text-align: left;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

#booking-summary p {
    margin: 0 0 10px 0;
}

#form-message {
    display: none;
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}