/* Booking Form Request Wrapper */
.ctb-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
}

.ctb-header-text h3 {
    font-size: 18px;
    color: #092648;
    /* Updated Brand Color */
    font-weight: 500;
}

/* Step Indicator */
.ctb-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.ctb-steps .step {
    font-size: 14px;
    color: #bbb;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: -17px;
}

.ctb-steps .step.active {
    color: #092648;
    /* Updated Brand Color */
    border-bottom: 2px solid #092648;
    /* Updated Brand Color */
}

/* Form Steps */
.ctb-step-content {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.ctb-step-content.active {
    display: block;
}

.ctb-step-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #222;
}

/* Form Elements */
.ctb-form-group {
    margin-bottom: 20px;
}

.ctb-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.ctb-form-group input,
.ctb-form-group select,
.ctb-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.ctb-form-group input:focus,
.ctb-form-group select:focus,
.ctb-form-group textarea:focus {
    border-color: #092648;
    /* Updated Brand Color */
    outline: none;
    box-shadow: 0 0 0 2px rgba(9, 38, 72, 0.1);
    /* Updated Shadow */
}

/* jQuery UI Datepicker Customization */
#ctb-inline-datepicker {
    width: 100%;
    font-size: 16px;
    border: none;
    background: transparent;
}

.ui-datepicker {
    width: 100% !important;
    /* Make it fill container */
    max-width: 400px;
    /* Limit max width */
    margin: 0 auto;
    /* Center it */
    font-family: inherit !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    background: #fff !important;
}

.ui-datepicker-header {
    background: transparent !important;
    border: none !important;
    padding-bottom: 1rem !important;
}

.ui-datepicker-title {
    color: #333;
    font-size: 18px;
    font-weight: bold;
    line-height: 30px;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    cursor: pointer;
    border-radius: 50%;
    border: 1px solid #eee;
    width: 36px !important;
    /* Larger nav buttons */
    height: 36px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    top: 12px !important;
    background: #fff;
    color: #666;
    text-indent: -9999px;
    /* Hide default text */
    position: absolute;
}

/* Use pseudo elements for arrows if iconic font not available */
.ui-datepicker-prev::after {
    content: '<';
    text-indent: 0;
    font-size: 18px;
    font-weight: bold;
    color: #999;
}

.ui-datepicker-next::after {
    content: '>';
    text-indent: 0;
    font-size: 18px;
    font-weight: bold;
    color: #999;
}

.ui-datepicker-prev {
    left: 10px !important;
}

.ui-datepicker-next {
    right: 10px !important;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
    background: #f9f9f9 !important;
    border-color: #ddd !important;
}

.ui-datepicker-calendar {
    width: 100% !important;
    /* Full table width */
    margin-top: 10px;
    table-layout: fixed;
    /* Even columns */
    border-collapse: separate;
    border-spacing: 0 5px;
    /* Spacing between rows */
}

.ui-datepicker-calendar th {
    color: #999;
    font-weight: normal;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
}

.ui-datepicker-calendar td {
    padding: 2px;
    text-align: center;
}

.ui-datepicker-calendar td a {
    display: inline-flex;
    /* Center content */
    align-items: center;
    justify-content: center;
    width: 40px;
    /* Specific size */
    height: 40px;
    margin: 0 auto;
    background: white !important;
    border: none !important;
    color: #333 !important;
    text-decoration: none;
    border-radius: 50%;
    /* Perfect circle */
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s;
}

.ui-datepicker-calendar td a:hover {
    background: #f0f7fc !important;
    color: #092648 !important;
    /* Updated Brand Color */
}

.ui-datepicker-calendar td.ui-datepicker-current-day a {
    background: #092648 !important;
    /* Updated Brand Color */
    color: white !important;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(9, 38, 72, 0.4);
    /* Updated Shadow */
}

.ui-datepicker-calendar td.ui-state-disabled span {
    color: #ddd !important;
    text-align: center;
    display: block;
    padding: 10px;
}


/* Form Helper */
.ctb-helper {
    font-size: 13px;
    color: #888;
    margin-top: 6px;
    display: block;
}

.ctb-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.ctb-col {
    flex: 1;
}

/* Buttons */
.ctb-btn-next,
.ctb-btn-prev,
.ctb-btn-pay {
    padding: 14px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.1s;
    letter-spacing: 0.5px;
    text-align: center;
}

.ctb-btn-next {
    background-color: #092648;
    /* Updated Brand Color */
    color: white;
    float: right;
    box-shadow: 0 4px 8px rgba(9, 38, 72, 0.3);
}

.ctb-btn-prev {
    background-color: #f1f1f1;
    color: #555;
    float: left;
}

.ctb-btn-pay {
    background-color: #28a745;
    color: white;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.2);
}

.ctb-btn-next:hover {
    background-color: #0e3a6e;
    /* Slightly lighter for hover */
    transform: translateY(-2px);
}

.ctb-btn-prev:hover {
    background-color: #e5e5e5;
}

.ctb-btn-pay:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

/* Review Summary */
.ctb-review-summary {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.ctb-review-summary p {
    margin: 12px 0;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #eee;
    padding-bottom: 5px;
}

.ctb-review-summary p:last-child {
    border-bottom: none;
}

.error-message {
    color: #dc3545;
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
    background: #fff5f5;
    padding: 10px;
    border-radius: 4px;
}

.hidden {
    display: none;
}

/* Loading */
#ctb-price-display {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #555;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .ctb-wrapper {
        padding: 15px;
    }

    .ctb-row {
        flex-direction: column;
        gap: 10px;
    }

    .ctb-steps .step {
        font-size: 11px;
    }

    .ctb-btn-next,
    .ctb-btn-prev {
        width: 100%;
        margin-top: 10px;
    }

    .ctb-btn-prev {
        order: 2;
    }

    .ui-datepicker-calendar td a {
        width: 32px;
        height: 32px;
        line-height: 32px;
        /* Center vertical if flex fails */
        font-size: 14px;
    }
}

/* Blocked Dates */
.blocked-date span,
.blocked-date a {
    background: #ff0000 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    cursor: not-allowed !important;
    pointer-events: none;
    opacity: 1;
}

/* Time Selection Refined UI */
.ctb-time-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    display: flex;
    align-items: center;
    margin-bottom: 20px !important;
    color: #333;
}

.ctb-time-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.ctb-time-btn {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.ctb-time-btn:hover {
    border-color: #092648;
    background: #f0f7fc;
}

.ctb-time-btn.active {
    background: #092648;
    color: #fff;
    border-color: #092648;
    box-shadow: 0 4px 10px rgba(9, 38, 72, 0.3);
}

.ctb-back-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
}

.ctb-back-link:hover {
    text-decoration: underline;
}