*, :after, :before {
    box-sizing: border-box;
}

.cb-booking-form {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 32px 80px;
    font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1d1d1b;
}

.cb-booking-hero {
    text-align: center;
    margin-bottom: 32px;
}

.cb-booking-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    margin: 0 0 8px 0;
    color: #96765c;
}

.cb-booking-hero h2 {
    margin: 0 0 12px 0;
    font-size: 2rem;
    font-family: "Playfair Display", Georgia, serif;
    color: #1d1d1b;
}

.cb-booking-hero p {
    margin: 0;
    color: #4b4b45;
    font-size: 1rem;
}

.cb-stepper {
    list-style: none;
    margin: 30px auto 40px;
    padding: 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    max-width: 860px;
}

.cb-stepper__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    flex: 1;
    opacity: 0.6;
}

.cb-stepper__item::after {
    content: "";
    position: absolute;
    top: 18px;
    left: calc(50% + 18px);
    width: calc(100% - 36px);
    height: 2px;
    background: linear-gradient(90deg, #f0e7da 0%, #d8b99b 100%);
    opacity: 0.7;
}

.cb-stepper__item:last-child::after {
    display: none;
}

.cb-stepper__item.is-active {
    opacity: 1;
}

.cb-stepper__number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #d0b59f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 6px;
}

.cb-stepper__label {
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4b4b45;
}

.cb-booking-layout {
    display: block;
}

.cb-column {
    flex: 1;
}

.cb-column--form {
    width: 100%;
}

.cb-step {
    margin-bottom: 30px;
    padding: 24px;
    background: #fffdfa;
    border: 1px solid #f0e7da;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.04);
}

.cb-step h3 {
    margin-top: 0;
    margin-bottom: 18px;
    color: #1d1d1b;
    font-size: 1.25em;
    font-weight: 600;
    font-family: "Playfair Display", Georgia, serif;
}

.cb-field {
    display: block;
    margin-bottom: 16px;
}

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

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

select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

select:hover {
    border-color: #999;
}

select:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 2px rgba(74,144,226,0.2);
}

.cb-field input,
.cb-field textarea,
.cb-field select {
    width: 100%;
    padding: 16px 14px 10px;
    border: 1px solid #dcd4c9;
    border-radius: 12px;
    font-size: 16px;
    color: #1d1d1b;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cb-field input:focus,
.cb-field textarea:focus {
    outline: none;
    border-color: #c29974;
    box-shadow: 0 8px 20px rgba(201, 153, 116, 0.15);
}

.cb-field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 16px;
}

.cb-field-grid .cb-field {
    margin-bottom: 0;
}

.cb-field--floating {
    position: relative;
}

.cb-field--floating .cb-label {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 0.85rem;
    color: #8c7b6d;
    pointer-events: none;
    transition: all 0.2s ease;
    margin: 0;
}

.cb-field--floating.is-filled input,
.cb-field--floating.is-filled select,
.cb-field--floating.is-filled textarea,
.cb-field--floating:focus-within input,
.cb-field--floating:focus-within select,
.cb-field--floating:focus-within textarea {
    padding-top: 24px;
}

.cb-field--floating.is-filled .cb-label,
.cb-field--floating:focus-within .cb-label {
    top: 6px;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: #c29974;
}

.cb-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    color: #8c7b6d;
}

.cb-summary {
    margin-top: 0px;
}

.cb-summary h3 {
    margin: 0 0 12px 0;
    font-size: 1.2em;
    font-weight: 600;
    color: #1f2937;
}

.cb-summary-card {
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 20px;
    background: #f9f8f5;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
    opacity: 0.45;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.cb-summary-card.is-active {
    opacity: 1;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.cb-summary-line {
    margin: 0 0 10px 0;
    font-size: 0.98em;
    color: #111827;
}

.cb-summary-line:last-of-type {
    margin-bottom: 6px;
}

.cb-summary-fee {
    font-weight: 600;
}

.cb-summary-fee-label {
    margin-right: 4px;
}

.cb-summary-note {
    margin: 12px 0 0 0;
    font-size: 0.9em;
    color: #4b5563;
    line-height: 1.5;
    white-space: pre-line;
}

.cb-summary-card [data-default-text] {
    display: inline-block;
}

.cb-summary-help {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #1d1d1b;
    color: #fffdf5;
    font-size: 0.95rem;
}

.cb-summary-help__link {
    display: inline-block;
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f4d4b7;
    text-decoration: none;
}

.cb-summary-help__link:hover {
    text-decoration: underline;
}

.cb-reassurance {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff2e5;
    border: 1px solid #f3d9bf;
    font-size: 0.88rem;
    color: #6b4f3a;
}

.cb-reassurance strong {
    display: block;
    margin-bottom: 4px;
}

.cb-confirmation-view {
    background: #fffdfa;
    border: 1px solid #f0e7da;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.04);
}

.cb-confirmation-card {
    border: 1px solid #eadfd1;
    border-radius: 14px;
    padding: 16px;
    margin-top: 12px;
    background: #fff;
}

.cb-confirmation-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f3e6d9;
}

.cb-confirmation-row:last-child {
    border-bottom: none;
}

.cb-confirmation {
    display: none;
    gap: 32px;
    margin-top: 40px;
    align-items: flex-start;
}

.cb-confirmation.is-active {
    display: flex;
    flex-wrap: wrap;
}

.cb-confirmation__summary,
.cb-confirmation__form {
    flex: 1 1 340px;
    min-width: 320px;
}

.cb-booking-form:not(.cb-has-selection) .cb-confirmation {
    display: none;
}

@media (max-width: 992px) {
    .cb-booking-layout {
        flex-direction: column;
    }

    .cb-column--summary {
        max-width: none;
        position: static;
        margin-top: 24px;
    }

    .cb-stepper {
        flex-wrap: wrap;
        gap: 20px;
    }

    .cb-stepper__item::after {
        display: none;
    }

    .cb-treatment-layout {
        flex-direction: column;
    }

    .cb-activity-group-list {
        flex: 1 1 auto;
        flex-direction: row;
        overflow-x: auto;
    }
}

.cb-step__header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

.cb-step__header h3 {
    margin-bottom: 0;
}

.cb-step__hint {
    margin: 0;
    color: #666;
    font-size: 0.9em;
    max-width: 360px;
}

.cb-field--stacked .cb-label {
    margin-bottom: 12px;
}

.is-locked {
    background-color: #f5f0ea;
    cursor: not-allowed;
}

.cb-visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

.cb-activity-section {
    border: 1px solid #f0e7da;
    border-radius: 20px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 25px 60px rgba(0,0,0,0.05);
}

.cb-activity-filter {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.cb-activity-filter__label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #7b6a5c;
}

#cb-activity-search {
    border: 1px solid #eadfd1;
    border-radius: 999px;
    padding: 12px 18px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#cb-activity-search:focus {
    outline: none;
    border-color: #c29974;
    box-shadow: 0 0 0 3px rgba(194, 153, 116, 0.2);
}

.cb-activity-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cb-accordion-item {
    border: 1px solid #eadfd1;
    border-radius: 16px;
    overflow: hidden;
    background: #fffdf8;
}

.cb-accordion-trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 600;
    color: #1d1d1b;
    cursor: pointer;
}

.cb-accordion-indicator {
    font-size: 1.5rem;
    line-height: 1;
    color: #c29974;
    margin-left: 16px;
}

.cb-accordion-panel {
    border-top: 1px solid #f3e6d9;
    padding: 10px 20px 20px;
    background: #fff;
}

.cb-accordion-activities {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cb-activity-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid #f0e7da;
    border-radius: 14px;
    padding: 14px 18px;
    align-items: center;
    background: #fffdf9;
}

.cb-activity-row.is-selected {
    border-color: #c29974;
    box-shadow: 0 8px 20px rgba(201, 153, 116, 0.2);
}

.cb-activity-row__info {
    flex: 1;
}

.cb-activity-row__title {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.cb-activity-row__meta {
    font-size: 0.85rem;
    color: #6c5c4e;
}

.cb-activity-select {
    border: 1px solid #c29974;
    border-radius: 999px;
    padding: 8px 18px;
    background: #fff;
    color: #c29974;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cb-activity-row.is-selected .cb-activity-select {
    background: #c29974;
    color: #fff;
}

.cb-activity-select:hover {
    background: #c29974;
    color: #fff;
}

.cb-consent-group {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cb-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: #3c352f;
}

.cb-checkbox input[type="checkbox"] {
    margin-top: 3px;
}

.cb-treatment-layout {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.cb-activity-group-list {
    flex: 0 0 240px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cb-activity-group-btn {
    width: 100%;
    text-align: left;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid #efe3d6;
    background: #fffdf8;
    font-weight: 600;
    color: #312c27;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cb-activity-group-btn:hover {
    border-color: #c29974;
    color: #c29974;
}

.cb-activity-group-btn.is-active {
    border-color: #c29974;
    background: linear-gradient(140deg, rgba(201,153,116,0.15), #fff);
    color: #1d1d1b;
    box-shadow: 0 18px 30px rgba(201,153,116,0.25);
}

.cb-activity-list {
    flex: 1;
    min-height: 240px;
    border: 1px dashed #eadfd1;
    border-radius: 16px;
    padding: 18px;
    background: #fffbf5;
}

.cb-activity-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.cb-activity-card {
    border: 1px solid #eadfd1;
    border-radius: 16px;
    padding: 18px;
    text-align: left;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cb-activity-card:hover {
    border-color: #c29974;
    box-shadow: 0 20px 30px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.cb-activity-card.selected {
    border-color: #c29974;
    background: #fff7ef;
    box-shadow: 0 18px 30px rgba(201,153,116,0.2);
}

.cb-activity-card__title {
    display: block;
    font-weight: 600;
    color: #1c2333;
    margin-bottom: 6px;
}

.cb-activity-card__meta {
    display: block;
    font-size: 0.85em;
    color: #7b6a5c;
    line-height: 1.4;
}

.cb-activity-placeholder {
    margin: 0;
    padding: 30px;
    text-align: center;
    border: 1px dashed #eadfd1;
    border-radius: 14px;
    color: #8c7b6d;
    background: #fffaf5;
    font-size: 0.95em;
}

/* Calendar styles */
.cb-calendar {
    margin-top: 20px;
}

.cb-week-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.cb-week-btn {
    border: 1px solid #eddcc9;
    background: #fffaf5;
    color: #8c684c;
    padding: 10px 22px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cb-week-btn:hover {
    background: #f7ecdf;
    border-color: #d8b99b;
}

.cb-week-meta {
    flex: 1;
    text-align: center;
}

.cb-week-label {
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    color: #1f2937;
}

.cb-week-date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.cb-week-date .cb-label {
    margin-bottom: 0;
    font-size: 0.85em;
    color: #6b7280;
}

.cb-week-date input {
    border-radius: 999px;
    padding: 10px 18px;
    border: 1px solid #eadfd1;
    background: #fffdf8;
}

.cb-week-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.cb-week-day {
    background: #fff;
    border: 1px solid #f0e7da;
    border-radius: 20px;
    padding: 16px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}

.cb-week-day__header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cb-week-day__name {
    font-weight: 700;
    color: #7b6a5c;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
}

.cb-week-day__date {
    font-size: 1.1rem;
    color: #1d1d1b;
    font-family: "Playfair Display", Georgia, serif;
}

.cb-week-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    flex: 1;
}

.cb-week-slot {
    border: 1px solid #eadfd1;
    border-radius: 14px;
    padding: 10px 12px;
    background: #fffdf9;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    font-weight: 600;
}

.cb-week-slot:hover {
    border-color: #c29974;
    background: #fff4ea;
}

.cb-week-slot.selected {
    border-color: #c29974;
    background: #f6e6d6;
}

.cb-week-slot__time {
    display: block;
    font-weight: 600;
    color: #111827;
}

.cb-week-slot__meta {
    font-size: 0.8em;
    color: #6d5a47;
}

.cb-date-block {
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cb-date-block h4 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 1.1em;
    text-transform: capitalize;
}

.cb-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    padding: 10px 0;
}

.cb-time-btn {
    width: 100%;
    padding: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.cb-time-btn:hover {
    background: #f8f8f8;
    border-color: #999;
}

.cb-time-btn.selected {
    background: #4A90E2;
    color: white;
    border-color: #4A90E2;
}

.cb-time-btn small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #666;
}

.cb-time-btn.selected small {
    color: rgba(255,255,255,0.8);
}

.cb-submit {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.cb-submit-btn {
    padding: 16px 42px;
    background: #1d1d1b;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cb-submit-btn:hover {
    background: #3b3b33;
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.cb-submit-btn:disabled {
    background: #bdbdb8;
    cursor: not-allowed;
    transform: none;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Error states */
.cb-time-btn:disabled {
    background: #f5f5f5;
    border-color: #ddd;
    cursor: not-allowed;
    opacity: 0.7;
}

.cb-feedback {
    display: none;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.cb-feedback--success {
    display: block;
    background: #e0f7ec;
    border: 1px solid #8fd6b8;
    color: #2e7a57;
}

.cb-feedback--error {
    display: block;
    background: #fdecea;
    border: 1px solid #f5a09a;
    color: #b42318;
}

.cb-feedback--info {
    display: block;
    background: #edf2ff;
    border: 1px solid #99b7ff;
    color: #1d3f8f;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .cb-booking-form {
        padding: 10px;
    }

    .cb-step {
        padding: 15px;
    }

    .cb-step__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cb-time-slots {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .cb-time-btn {
        padding: 8px;
        font-size: 13px;
    }

    .cb-field-grid {
        grid-template-columns: 1fr;
    }

    .cb-treatment-layout {
        flex-direction: column;
    }

    .cb-activity-group-list {
        flex: 1 1 auto;
    }

    .cb-activity-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .cb-week-header {
        flex-direction: column;
    }

    .cb-week-meta {
        width: 100%;
    }

    .cb-week-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .cb-summary-card {
        padding: 16px;
    }
}
