/* Modal styles for confirmation */
.overlay-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-content .close {
    color: #28a745;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #28a745;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
}

.modal-content .close:hover {
    background-color: #28a745;
    color: white;
}

.modal-content .headline {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.modal-content .revise {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.modal-content .revise li {
    padding: 5px 0;
    font-size: 14px;
}

.modal-content .revise li i {
    margin-right: 10px;
    color: #28a745;
    width: 20px;
    text-align: center;
}

.modal-content .accepted-payment {
    margin: 10px 0;
}

.modal-content .accepted-payment i {
    font-size: 24px;
    margin: 0 5px;
    color: #666;
}

.modal-content .price-wrapper {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.modal-content .price-wrapper .old-price,
.modal-content .price-wrapper .new-price {
    font-size: 50px;
    line-height: 1;
    font-weight: 700;
}

.modal-content .price-wrapper .new-price {
    color: #c21f54;
    margin-left: auto;
}

.modal-content .price-wrapper p {
    margin: 0 5px 0 0;
    display: inline-block;
}

.modal-content .final-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.modal-content .final-price .info {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.modal-content .final-price .new-price {
    font-size: 50px;
    line-height: 1;
    font-weight: 700;
    color: #c21f54;
    margin-left: auto;
}

.modal-content #confirmBooking {
    padding: 20px 35px;
    background-color: #73c12d;
    font-size: 20px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.modal-content #confirmBooking:hover {
    opacity: 0.8;
}

.modal-content #confirmBooking.disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.accept-terms-error {
    display: none;
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

.small-checkbox label {
    font-size: 14px !important;
}

/* Ready to book section styling */
#step7 .revise {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

#step7 .revise li {
    padding: 5px 0;
    font-size: 14px;
}

#step7 .revise li i {
    margin-right: 10px;
    color: #28a745;
    width: 20px;
    text-align: center;
}

#step7 .accepted-payment {
    margin: 20px 0;
    text-align: center;
}

#step7 .accepted-payment i {
    font-size: 24px;
    margin: 0 5px;
    color: #666;
}

#step7 .price-wrapper {
    margin-top: 20px;
}

#step7 .final-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

#step7 .final-price .info {
    font-size: 14px;
    color: #666;
    margin: 0;
}

#step7 .final-price .new-price {
    font-size: 50px;
    line-height: 1;
    font-weight: 700;
    color: #c21f54;
    margin: 0 20px;
}

#step7 .green-button {
    padding: 20px 35px;
    background-color: #73c12d;
    font-size: 20px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

#step7 .green-button:hover {
    opacity: 0.8;
}

.change-booking {
    display: inline-block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.change-booking:hover {
    text-decoration: underline;
}

/* Pickup and dropoff color indicators */
.pickup-color {
    color: #28a745;
}

.dropoff-color {
    color: #dc3545;
}

.pickup-color-return {
    color: #28a745;
}

.dropoff-color-return {
    color: #dc3545;
}

/* Price display styling for map section (MTAP_STEP4) */
.pricing-continue .price-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-continue .new-price,
#step2-total {
    font-size: 36px;
    font-weight: 700;
    color: #c21f54;
    margin: 0;
    line-height: 1;
}

.pricing-continue .info {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Vehicle price display */
.vehicle-price {
    font-size: 24px;
    font-weight: 700;
    color: #c21f54;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.vehicle-price.success {
    color: #28a745;
}

.vehicle-price.error {
    color: #dc3545;
    font-size: 14px;
}