/* Custom Booking - Frontend Styles */

/* Booking Form Wrapper */
.cb-booking-form-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Two-column form grid */
.cb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.cb-col {
    width: 100%;
}

/* Services inline with radio buttons */
.cb-services-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
}

.cb-service-radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 0 1 auto;
    white-space: nowrap;
}

.cb-service-radio-inline:hover {
    border-color: #0073aa;
    background: #f0f8ff;
    box-shadow: 0 2px 6px rgba(0, 115, 170, 0.1);
}

.cb-service-radio-inline input[type="radio"] {
    display: none;
}

.cb-service-radio-inline input[type="radio"]:checked+.cb-radio-custom {
    background: #0073aa;
    border-color: #0073aa;
}

.cb-service-radio-inline input[type="radio"]:checked+.cb-radio-custom::after {
    opacity: 1;
}

.cb-service-radio-inline input[type="radio"]:checked~.cb-service-label {
    color: #0073aa;
    font-weight: 600;
}

.cb-radio-custom {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.cb-radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cb-service-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
}

.cb-service-price {
    font-size: 13px;
    font-weight: 600;
    color: #0073aa;
}

/* Form Groups */
.cb-form-group {
    margin-bottom: 20px;
}

.cb-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.cb-form-group .required {
    color: #dc3232;
}

/* Form Controls */
.cb-form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.cb-form-control:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.cb-form-control:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Service Description */
.cb-service-description {
    margin-top: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-left: 3px solid #0073aa;
    font-size: 14px;
    color: #666;
    display: none;
}

.cb-service-description.active {
    display: block;
}

/* Time Slot Loading */
.cb-loading {
    text-align: center;
    padding: 10px;
    color: #666;
    font-style: italic;
}

/* Messages */
.cb-messages {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.cb-messages.success {
    background: #dff0d8;
    border: 1px solid #d0e9c6;
    color: #3c763d;
}

.cb-messages.error {
    background: #f2dede;
    border: 1px solid #ebcccc;
    color: #a94442;
}

.cb-messages.info {
    background: #d9edf7;
    border: 1px solid #bcdff1;
    color: #31708f;
}

.cb-messages:empty {
    display: none;
}

/* Submit Button */
.cb-submit-btn {
    width: 100%;
    padding: 12px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.cb-submit-btn:hover {
    background: #005a87;
}

.cb-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Calendar Wrapper */
.cb-calendar-wrapper {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cb-booking-form-wrapper {
        margin: 10px;
        padding: 15px;
    }

    .cb-grid {
        grid-template-columns: 1fr;
    }

    .cb-form-control {
        font-size: 16px;
        /* Prevents zoom on mobile */
    }
}