/**
 * BC Booking - Enhanced Booking Form Styles
 *
 * @author    BC Website Consulting
 * @copyright 2026
 * @license   Academic Free License 3.0 (AFL-3.0)
 */

/* ==================== BASE FORM STYLES ==================== */
.bcbooking-main-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background: #262626;
    border-radius: 10px;
}

.bcbooking-main-form h3 {
    color: white !important;
    font-size: 1.6rem;
    font-weight: 600;
}

.bcbooking-main-form .section-title {
    color: #555;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bcbooking-main-form .section-title i {
    font-size: 18px;
    color: #dd3333;
}

.bcbooking-main-form label {
    font-weight: 500;
    color: #b5b5b5;
    margin-bottom: 0.6rem;
}

.bcbooking-main-form .text-danger {
    color: #dc3545;
}

/* ==================== FORM CONTROLS ==================== */
.bcbooking-main-form .form-control {
    height: 45px;
    border-radius: 5px;
    border: 1px solid #3a3a3a;
    padding: 10px 15px;
    background: #1f1f1f;
    color: #fff;
    transition: all 0.3s ease;
}

.bcbooking-main-form .form-control:focus {
    border-color: #ff3b3b;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(255, 59, 59, 0.25);
}

.bcbooking-main-form .form-control::placeholder {
    color: #666;
}

/* ==================== SERVICE SELECTION PAGE ==================== */
.service-selection-page {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-selection-page h3 {
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.service-selection {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 800px;
}

.service-option {
    flex: 0 0 auto;
    width: 280px;
    background: #1f1f1f;
    border-radius: 20px;
    padding: 0;
    border: 2px solid #2c2c2c;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.service-option input[type="radio"] {
    display: none;
}

.service-option label {
    display: block;
    padding: 40px 30px;
    cursor: pointer;
    text-align: center;
}

.service-option:hover {
    transform: translateY(-8px);
    border-color: #ff3b3b;
    box-shadow: 0 0 0 2px #ff3b3b, 0 15px 40px rgba(255, 59, 59, 0.3);
}

.service-option:has(input[type="radio"]:checked) {
    border-color: #ff3b3b;
    background: #2a2a2a;
    box-shadow: 0 0 0 2px #ff3b3b, 0 15px 40px rgba(255, 59, 59, 0.3);
}

.service-icon {
    margin-bottom: 30px;
}

.service-icon i {
    font-size: 40px;
    color: #ff3b3b;
}

.service-name {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.75rem;
    color: #b8b8b8;
    line-height: 1.5;
    font-weight: 400;
}

/* ==================== TRIP TYPE SELECTION (TAXI) ==================== */
.trip-selection {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.trip-option {
    flex: 0 0 auto;
    width: 180px;
    background: #1f1f1f;
    border-radius: 14px;
    padding: 0;
    border: 2px solid #2c2c2c;
    transition: all 0.25s ease;
    cursor: pointer;
}

.trip-option input[type="radio"] {
    display: none;
}

.trip-option label {
    display: block;
    padding: 30px 20px;
    cursor: pointer;
    text-align: center;
}

.trip-option:hover {
    transform: translateY(-3px);
    border-color: #ff3b3b;
    box-shadow: 0 0 0 1px #ff3b3b, 0 10px 30px rgba(255, 59, 59, 0.25);
}

.trip-option:has(input[type="radio"]:checked) {
    border-color: #ff3b3b;
    background: #2a2a2a;
    box-shadow: 0 0 0 1px #ff3b3b, 0 10px 30px rgba(255, 59, 59, 0.25);
}

.trip-icon {
    font-size: 48px;
    color: #ff3b3b;
    margin-bottom: 15px;
}

.trip-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

/* ==================== CATEGORY SELECTION (RENT) ==================== */
.category-selection {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-option {
    flex: 0 0 auto;
    width: 180px;
    background: #1f1f1f;
    border-radius: 14px;
    padding: 0;
    border: 2px solid #2c2c2c;
    transition: all 0.25s ease;
    cursor: pointer;
}

.category-option input[type="radio"] {
    display: none;
}

.category-option label {
    display: block;
    padding: 30px 20px;
    cursor: pointer;
    text-align: center;
}

.category-option:hover {
    transform: translateY(-3px);
    border-color: #ff3b3b;
    box-shadow: 0 0 0 1px #ff3b3b, 0 10px 30px rgba(255, 59, 59, 0.25);
}

.category-option:has(input[type="radio"]:checked) {
    border-color: #ff3b3b;
    background: #2a2a2a;
    box-shadow: 0 0 0 1px #ff3b3b, 0 10px 30px rgba(255, 59, 59, 0.25);
}

.category-icon {
    margin-bottom: 15px;
}

.category-icon i {
    font-size: 48px;
    color: #ff3b3b;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

/* ==================== VEHICLE SELECTION ==================== */
.car-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px 0;
}

.car-option {
    flex: 0 0 auto;
    width: 200px;
    display: block;
    background: #1f1f1f;
    border-radius: 14px;
    padding: 10px 0;
    text-align: center;
    border: 1px solid #2c2c2c;
    transition: all 0.25s ease;
}

.car-option input[type="radio"] {
    display: none;
}

.car-option label {
    display: block;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.car-option:hover {
    transform: translateY(-3px);
    border-color: #ff3b3b;
    box-shadow: 0 0 0 1px #ff3b3b, 0 10px 30px rgba(255, 59, 59, 0.25);
}

.car-option:has(input[type="radio"]:checked),
.car-option.is-selected {
    border: 1px solid #ff3b3b;
    box-shadow: 0 0 0 1px #ff3b3b, 0 10px 30px rgba(255, 59, 59, 0.25);
}

.car-image {
    margin-bottom: 15px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.car-image img {
    max-width: 100%;
    height: auto;
    max-height: 140px;
}

.car-name {
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    font-size: 16px;
}

.car-price {
    color: #dd3333;
    font-size: 14px;
    font-weight: 600;
}

/* ==================== PRICE SUMMARY / TOTAL COST ==================== */
.total-cost-section {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.total-cost-section h5 {
    color: #232323;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 600;
}

.total-cost-breakdown {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
}

.total-cost-breakdown .cost-row {
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.total-cost-breakdown .cost-row:last-child {
    border-bottom: none;
}

.total-cost-breakdown .cost-label {
    color: #232323;
    font-size: 1rem;
    margin: 0;
}

.total-cost-breakdown .cost-value {
    color: #fff;
    font-weight: 600;
}

.total-cost-breakdown .cost-total {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.total-cost-breakdown .cost-total p {
    color: white !important;
    font-weight: 700;
    font-size: 1rem;
}

.total-cost-breakdown .cost-total span {
    color: white;
    font-weight: 700;
    font-size: 2rem;
}

/* ==================== BUTTONS ==================== */
/* Back Button */
.btn-back {
    background: transparent;
    color: #999;
    border: 2px solid #3a3a3a;
    padding: 10px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    cursor: pointer;
}

.btn-back:hover {
    background: #3a3a3a;
    color: #fff;
    border-color: #ff3b3b;
    transform: translateX(-3px);
}

.btn-back i {
    font-size: 20px;
}

/* Submit Button */
.form-footer .btn {
    padding: 12px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.form-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 59, 59, 0.3);
}

.form-footer .btn i {
    font-size: 20px;
}

/* ==================== ALERT MESSAGES ==================== */
.alert {
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

/* ==================== UTILITY CLASSES ==================== */
.hidden {
    display: none !important;
}

.text-muted {
    color: #999 !important;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 767px) {
    .bcbooking-main-form {
        padding: 20px;
    }

    .service-selection-page h3 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .service-option {
        width: 100%;
        max-width: 280px;
    }

    .car-option {
        width: 160px;
    }

    .car-image {
        min-height: 80px;
    }

    .car-image img {
        max-height: 100px;
    }

    .total-cost-breakdown .cost-total span {
        font-size: 1.5rem;
    }
    .bcbooking-main-form .form-group > div {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .bcbooking-main-form h3 {
        font-size: 1.4rem;
    }

    .car-option {
        width: 140px;
    }

    .car-selection {
        gap: 15px;
    }

    .service-selection {
        gap: 20px;
    }

    .trip-selection,
    .category-selection {
        gap: 15px;
    }

    .trip-option,
    .category-option {
        width: 140px;
    }
}


/* ==================== KIDS AGES SECTION ==================== */
#kids-ages-section {
    background: #1f1f1f;
    border: 2px solid #2c2c2c;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    animation: slideDown 0.4s ease;
}

#kids-ages-section .section-title {
    color: #fff;
    margin-bottom: 10px;
}

#kids-ages-section .text-muted {
    color: #999 !important;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

#kids-ages-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

#kids-ages-container .col-md-3 {
    flex: 0 0 calc(25% - 12px);
    max-width: calc(25% - 12px);
}

#kids-ages-container label {
    display: block;
    font-weight: 500;
    color: #b5b5b5;
    margin-bottom: 8px;
    font-size: 0.75rem;
    text-align: left;
}

#kids-ages-container input[type="number"] {
    width: 100%;
    height: 45px;
    border-radius: 5px;
    border: 1px solid #3a3a3a;
    padding: 10px 15px;
    background: #262626;
    color: #fff;
    transition: all 0.3s ease;
    font-size: 16px;
}

#kids-ages-container input[type="number"]:focus {
    border-color: #ff3b3b;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(255, 59, 59, 0.25);
    background: #2a2a2a;
}

#kids-ages-container input[type="number"]::placeholder {
    color: #666;
}

/* Remove spinners for number input in WebKit browsers */
#kids-ages-container input[type="number"]::-webkit-inner-spin-button,
#kids-ages-container input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove spinners for Firefox */
#kids-ages-container input[type="number"] {
    -moz-appearance: textfield;
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error state */
#kids-ages-container input[type="number"]:invalid {
    border-color: #dc3545;
}

#kids-ages-container input[type="number"]:invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Success state */
#kids-ages-container input[type="number"]:valid {
    border-color: #28a745;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 992px) {
    #kids-ages-container .col-md-3 {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 576px) {
    #kids-ages-section {
        padding: 20px 15px;
    }

    #kids-ages-container {
        gap: 12px;
    }

    #kids-ages-container .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    #kids-ages-container input[type="number"] {
        height: 42px;
        font-size: 15px;
    }
}

/* ==================== ICON STYLING ==================== */
#kids-ages-section .material-icons {
    font-size: 24px;
    vertical-align: middle;
    color: #ff3b3b;
    margin-right: 8px;
}

/* ==================== HELPER TEXT ==================== */
.kids-age-helper {
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
    font-style: italic;
}

/* ==================== VALIDATION MESSAGES ==================== */
#kids-ages-container input[type="number"] + .invalid-feedback {
    display: none;
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 5px;
}

#kids-ages-container input[type="number"]:invalid + .invalid-feedback {
    display: block;
}
.bcbooking-main-form .form-group .button:first-child {
    flex: 2;
}
.bcbooking-main-form .form-group .button:last-child {
    flex: 1;
}
#pickup_date,
#dropoff_date {
    border-radius: 5px 0 0 5px;
}
#pickup_time,
#dropoff_time {
    border-radius: 0 5px 5px 0;
}
.alert li {
    color: #262626;
}

@media (max-width: 991px) {
    .bcbooking-main-form .form-group .d-flex {
        margin-top: 20px;
    }

}