/* ==========================================================================
   Custom Appointment Booking — Frontend Styles
   ========================================================================== */

/* ---- Reset / Base ---- */
.cab-wrapper *,
.cab-wrapper *::before,
.cab-wrapper *::after {
    box-sizing: border-box;
}

/* Mobile tap fix — no delay, no highlight flash */
.cab-wrapper button,
.cab-wrapper a,
.cab-wrapper input[type="checkbox"],
.cab-wrapper input[type="radio"] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.cab-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    color: #222;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
    max-width: 820px;
    margin: 32px auto;
    overflow: hidden;
}

/* ==========================================================================
   Card Header
   ========================================================================== */
.cab-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    border-bottom: 1px solid #e0e4ea;
    background: #fff;
}

.cab-card-header__title {
    font-size: 22px;
    font-weight: 700;
    color: #1a3a5c;
}

.cab-card-header__lang {
    background: #fff;
    border: 1.5px solid #bbc5d0;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    color: #1a3a5c;
    cursor: pointer;
    transition: background 0.2s;
}

.cab-card-header__lang:hover {
    background: #f0f4f8;
}

/* ==========================================================================
   Progress Bar
   ========================================================================== */
.cab-progress-bar-wrap {
    padding: 18px 28px 14px;
    background: #fff;
    border-bottom: 1px solid #e0e4ea;
}

.cab-progress-bar {
    height: 5px;
    background: #dce3ea;
    border-radius: 3px;
    margin-bottom: 14px;
    overflow: hidden;
}

.cab-progress-bar__fill {
    height: 100%;
    background: #1a3a5c;
    border-radius: 3px;
    transition: width 0.35s ease;
}

/* Steps row */
.cab-steps-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cab-step-indicator {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.cab-step-indicator__circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #c4cdd6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    transition: background 0.25s, color 0.25s;
}

.cab-step-indicator__label {
    font-size: 13px;
    color: #888;
    font-weight: 400;
    white-space: nowrap;
    transition: color 0.25s, font-weight 0.25s;
}

/* Active step */
.cab-step-indicator.active .cab-step-indicator__circle {
    background: #1a3a5c;
    color: #fff;
}

.cab-step-indicator.active .cab-step-indicator__label {
    color: #1a3a5c;
    font-weight: 600;
}

/* Completed step */
.cab-step-indicator.completed .cab-step-indicator__circle {
    background: #1a3a5c;
    color: #fff;
}

.cab-step-indicator.completed .cab-step-indicator__label {
    color: #1a3a5c;
    font-weight: 500;
}

/* ==========================================================================
   Step panels
   ========================================================================== */
.cab-step {
    padding: 28px 28px 20px;
}

.cab-step--hidden {
    display: none;
}

/* ==========================================================================
   Step 1 — Sub-views
   ========================================================================== */
.cab-subview--hidden {
    display: none;
}

/* Clickable appointment row */
.cab-appointment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border: 1.5px solid #dce3ea;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.cab-appointment-row:hover {
    background: #f5f8fb;
    border-color: #1a3a5c;
}

.cab-appointment-row__text {
    font-size: 16px;
    font-weight: 600;
    color: #1a3a5c;
}

.cab-appointment-row__arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1a3a5c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* Powered by footer */
.cab-powered-by {
    text-align: center;
    padding: 14px 28px;
    font-size: 13px;
    color: #3a6bc4;
    border-top: 1px solid #e0e4ea;
}

/* Sub-view 1b heading */
.cab-subview-heading {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0 0 20px;
}

/* ==========================================================================
   Toggle buttons (Cat Male / Cat Female)
   ========================================================================== */
.cab-toggle-group {
    display: flex;
    gap: 0;
    width: 100%;
}

.cab-toggle-btn {
    flex: 1;
    padding: 10px 0;
    border: 1.5px solid #bbc5d0;
    border-radius: 0;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cab-toggle-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.cab-toggle-btn:last-child {
    border-radius: 0 4px 4px 0;
    margin-left: -1.5px;
}

.cab-toggle-btn:hover {
    border-color: #1a3a5c;
    background: #f0f4f8;
}

.cab-toggle-btn.selected {
    background: #1a3a5c;
    color: #fff;
    border-color: #1a3a5c;
}

/* ==========================================================================
   Form fields
   ========================================================================== */
.cab-field-group {
    margin-bottom: 18px;
}

.cab-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.cab-label--note {
    font-weight: 400;
    font-style: italic;
    color: #666;
}

.cab-label--bold {
    font-weight: 700;
    color: #222;
}

.cab-required {
    color: #c0392b;
    margin-left: 2px;
}

.cab-input,
.cab-select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: auto;
}

.cab-input:focus,
.cab-select:focus {
    border-color: #1a3a5c;
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.12);
}

/* Two-column grid */
.cab-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 560px) {
    .cab-grid-2col {
        grid-template-columns: 1fr;
    }
}

/* Hint text */
.cab-hint {
    font-size: 12px;
    color: #666;
    margin-top: -10px;
    margin-bottom: 16px;
    display: block;
}

.cab-hint--red {
    color: #c0392b;
}

/* Email hint row */
.cab-email-hint-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 8px;
}

/* Checkbox label */
.cab-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    line-height: 1.5;
}

.cab-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #1a3a5c;
}

/* Caution label */
.cab-caution-label {
    color: #222;
    font-weight: 700;
}

/* ==========================================================================
   Step header (Step 2)
   ========================================================================== */
.cab-step-header {
    margin-bottom: 20px;
}

.cab-step-header__title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px;
}

.cab-step-header__sub {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

/* ==========================================================================
   Appointment slots (Step 2)
   ========================================================================== */
.cab-slots-container {
    margin-bottom: 20px;
}

.cab-month-group {
    margin-bottom: 8px;
    border: 1px solid #dce3ea;
    border-radius: 6px;
    overflow: hidden;
}

.cab-month-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #dce3ea;
}

.cab-month-heading__name {
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.cab-map-btn {
    font-size: 12px;
    color: #1a3a5c;
    text-decoration: none;
    border: 1px solid #1a3a5c;
    border-radius: 4px;
    padding: 4px 10px;
    transition: background 0.2s;
}

.cab-map-btn:hover {
    background: #1a3a5c;
    color: #fff;
}

.cab-slot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #eceff2;
    transition: background 0.15s;
    gap: 12px;
}

.cab-slot-row:last-child {
    border-bottom: none;
}

.cab-slot-row:hover {
    background: #f9fbfc;
}

.cab-slot-row__left {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.cab-slot-row__date {
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

.cab-slot-row__location {
    font-size: 12px;
    color: #777;
}

.cab-slot-row__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}

.cab-make-appt {
    font-size: 13px;
    font-weight: 600;
    color: #1a7fa8;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.cab-make-appt:hover {
    color: #1a3a5c;
    text-decoration: underline;
}

.cab-slot-row__spots {
    font-size: 11px;
    color: #888;
    font-style: italic;
    white-space: nowrap;
}

/* ==========================================================================
   Appointment Summary (Steps 3 & 4)
   ========================================================================== */
.cab-appt-summary {
    background: transparent;
    border-left: none;
    border-radius: 0;
    border-bottom: 1px solid #e0e4ea;
    padding: 0 0 14px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.cab-appt-summary strong {
    font-size: 15px;
    color: #222;
    display: block;
    margin-bottom: 4px;
}

.cab-appt-summary__detail {
    color: #444;
}

.cab-appt-summary__tz {
    font-style: italic;
    color: #777;
    font-size: 12px;
    margin-top: 4px;
}

/* ==========================================================================
   Navigation Buttons
   ========================================================================== */
.cab-btn-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    gap: 12px;
}

/* Push single right-aligned button to the right */
.cab-btn-row > .cab-btn:only-child {
    margin-left: auto;
}

/* Equal-width buttons when two are present */
.cab-btn-row .cab-btn:not(:only-child) {
    flex: 1;
    text-align: center;
}

.cab-btn {
    padding: 11px 28px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s;
    white-space: nowrap;
}

.cab-btn--navy {
    background: #1a3a5c;
    color: #fff;
}

.cab-btn--navy:hover {
    background: #14304d;
}

.cab-btn--blue {
    background: #6b9fc7;
    color: #fff;
}

.cab-btn--blue:hover:not(:disabled) {
    background: #5188b3;
}

.cab-btn--blue:disabled,
.cab-btn[disabled] {
    background: #a8c4dc;
    cursor: not-allowed;
    opacity: 0.75;
}

/* ==========================================================================
   Step 5 — Confirm placeholder
   ========================================================================== */
.cab-confirm-placeholder {
    text-align: center;
    padding: 48px 24px;
    font-size: 16px;
    color: #777;
    font-style: italic;
}

/* ==========================================================================
   Utility
   ========================================================================== */
.cab-step-body {
    /* intentionally empty – used for spacing context */
}

@media (max-width: 480px) {
    .cab-wrapper {
        margin: 12px;
        border-radius: 6px;
    }

    .cab-card-header,
    .cab-progress-bar-wrap,
    .cab-step {
        padding-left: 16px;
        padding-right: 16px;
    }

    .cab-toggle-group {
        flex-direction: column;
    }

    .cab-slot-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .cab-slot-row__right {
        align-items: flex-start;
    }

    .cab-btn-row {
        flex-direction: column-reverse;
    }

    .cab-btn {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   SMS consent
   ========================================================================== */
.cab-sms-consent {
    font-size: 12px;
    color: #666;
    margin-top: -10px;
    margin-bottom: 16px;
    line-height: 1.5;
    font-style: italic;
}

/* ==========================================================================
   Label row with link
   ========================================================================== */
.cab-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.cab-label-row .cab-label {
    margin-bottom: 0;
}
.cab-custom-address-link {
    font-size: 12px;
    color: #1a7fa8;
    text-decoration: none;
    white-space: nowrap;
}
.cab-custom-address-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Services section (Step 5)
   ========================================================================== */
.cab-services-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}
.cab-services-btns {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.cab-btn-service {
    padding: 9px 20px;
    border: 1.5px solid #bbc5d0;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
}
.cab-btn-service:hover {
    background: #f0f4f8;
}
.cab-services-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 14px;
}
.cab-services-table th {
    background: #f0f4f8;
    text-align: left;
    padding: 9px 12px;
    font-weight: 600;
    color: #444;
    border-bottom: 1.5px solid #dce3ea;
}
.cab-services-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eceff2;
    color: #333;
}
.cab-services-table tfoot td {
    font-weight: 700;
    border-top: 2px solid #dce3ea;
    border-bottom: none;
}
.cab-total-label {
    text-align: right;
}
.cab-total-value {
    color: #1a3a5c;
}

/* ==========================================================================
   Notes textarea
   ========================================================================== */
.cab-textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    resize: vertical;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.cab-textarea:focus {
    border-color: #1a3a5c;
    box-shadow: 0 0 0 3px rgba(26,58,92,0.12);
}

/* ==========================================================================
   Deposit box
   ========================================================================== */
.cab-deposit-box {
    background: #e8f4fd;
    border: 1px solid #b8d9f0;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #1a3a5c;
    line-height: 1.6;
}
.cab-deposit-box p {
    margin: 0 0 10px;
}
.cab-deposit-box p:last-of-type {
    margin-bottom: 14px;
}

/* ==========================================================================
   Payment fields
   ========================================================================== */
.cab-payment-fields--hidden {
    display: none;
}
.cab-payment-fields {
    margin-top: 20px;
}
.cab-expiry-row {
    display: flex;
    gap: 10px;
}
.cab-expiry-row .cab-select {
    flex: 1;
}

/* ==========================================================================
   Green submit button
   ========================================================================== */
.cab-btn--green {
    background: #5b9a6f;
    color: #fff;
}
.cab-btn--green:hover {
    background: #4a8060;
}

/* ==========================================================================
   Thank you message
   ========================================================================== */
.cab-thankyou {
    text-align: center;
    padding: 48px 24px;
}
.cab-thankyou__icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.cab-thankyou__title {
    font-size: 22px;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 10px;
}
.cab-thankyou__msg {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}
