/* =========================================================
   STUDIO DANCE CLUB - BOOK NOW
   Complete replacement CSS for booking-form.php
   Scoped with .crs-booking-page so WordPress/Elementor
   styles are less likely to interfere.
   ========================================================= */

.crs-booking-page,
.crs-booking-page * {
    box-sizing: border-box;
}

.crs-booking-page {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 44px 24px 70px;
    background: #f6f7fb;
    color: #172033;
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.crs-booking-container {
    width: min(1180px, 100%);
    margin: 0 auto;
}

/* -------------------------
   HEADER
   ------------------------- */

.crs-page-header {
    margin-bottom: 38px;
}

.crs-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.crs-brand-mark {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #6d35ee 0%, #873ef5 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .5px;
    box-shadow: 0 12px 25px rgba(109, 53, 238, .22);
}

.crs-brand-text {
    min-width: 0;
}

.crs-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #6d35ee;
    font-size: 9px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.crs-brand-text h1 {
    margin: 0;
    color: #111827;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.8px;
}

.crs-brand-text p {
    margin: 5px 0 0;
    color: #7a8395;
    font-size: 13px;
    line-height: 1.5;
}

.crs-steps {
    width: min(680px, 100%);
    margin: 28px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.crs-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9aa2b1;
    white-space: nowrap;
}

.crs-step span {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e1e5ed;
    border-radius: 50%;
    background: #fff;
    color: #8b94a5;
    font-size: 11px;
    font-weight: 700;
}

.crs-step strong {
    font-size: 10px;
    font-weight: 700;
}

.crs-step-active {
    color: #6d35ee;
}

.crs-step-active span {
    border-color: #6d35ee;
    background: #6d35ee;
    color: #fff;
}

.crs-step-line {
    width: 70px;
    height: 1px;
    background: #e1e5ed;
}

/* -------------------------
   TWO-COLUMN LAYOUT
   ------------------------- */

.crs-booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.crs-form-column {
    min-width: 0;
}

.crs-summary-column {
    min-width: 0;
}

.crs-booking-form {
    width: 100%;
    margin: 0;
}

/* -------------------------
   CARDS
   ------------------------- */

.crs-card {
    background: #fff;
    border: 1px solid #e8eaf0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(24, 32, 50, .055);
}

.crs-form-card {
    padding: 28px;
}

.crs-guests-card {
    margin-top: 20px;
}

.crs-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.crs-card-heading h2,
.crs-summary-heading h2 {
    margin: 0;
    color: #172033;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 750;
    letter-spacing: -.2px;
}

.crs-card-heading p {
    margin: 6px 0 0;
    color: #858da0;
    font-size: 11px;
    line-height: 1.5;
}

.crs-required-badge,
.crs-guest-count,
.crs-active-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.crs-required-badge {
    color: #858da0;
    background: #f7f7fa;
}

.crs-guest-count {
    color: #6d35ee;
    background: #f2edff;
}

.crs-active-badge {
    color: #168447;
    background: #eaf9f0;
}

/* -------------------------
   CUSTOMER FIELDS
   ------------------------- */

.crs-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
}

.crs-field {
    min-width: 0;
}

.crs-field label {
    display: block;
    margin: 0 0 8px;
    color: #273043;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 700;
}

.crs-field label span {
    color: #ef4444;
}

.crs-input {
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 13px !important;
    border: 1px solid #dfe3ea !important;
    border-radius: 9px !important;
    outline: none !important;
    background: #fff !important;
    color: #20283a !important;
    font-family: inherit !important;
    font-size: 11px !important;
    line-height: 46px !important;
    box-shadow: none !important;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.crs-input::placeholder {
    color: #b0b7c4;
    opacity: 1;
}

.crs-input:hover {
    border-color: #c9ced9 !important;
}

.crs-input:focus {
    border-color: #7040ec !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(112, 64, 236, .10) !important;
}

/* -------------------------
   GUEST LIST
   ------------------------- */

.crs-guest-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.crs-guest-row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: end;
}

.crs-guest-number {
    padding-bottom: 13px;
    color: #a4abba;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .3px;
    text-align: center;
}

.crs-guest-field .crs-input {
    height: 44px !important;
    min-height: 44px !important;
    line-height: 44px !important;
}

.crs-info-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 22px;
    padding: 12px 13px;
    border: 1px solid #e5dcff;
    border-radius: 10px;
    background: #faf8ff;
}

.crs-info-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #7040ec;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.crs-info-note strong {
    display: block;
    color: #50436d;
    font-size: 9px;
    line-height: 1.4;
}

.crs-info-note p {
    margin: 2px 0 0;
    color: #8c85a0;
    font-size: 9px;
    line-height: 1.4;
}

/* -------------------------
   BUTTON
   ------------------------- */

.crs-form-action {
    margin-top: 20px;
    text-align: center;
}

.crs-button {
    width: 100%;
    min-height: 50px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 !important;
    padding: 12px 20px !important;
    border: 0 !important;
    border-radius: 9px !important;
    cursor: pointer;
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.crs-button-primary {
    background: linear-gradient(135deg, #6231e8 0%, #7b38f2 100%) !important;
    color: #fff !important;
    box-shadow: 0 9px 20px rgba(104, 51, 234, .20);
}

.crs-button-primary:hover,
.crs-button-primary:focus {
    background: linear-gradient(135deg, #5425d5 0%, #6c2de2 100%) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(104, 51, 234, .25);
}

.crs-button-arrow {
    font-size: 16px;
    line-height: 1;
}

.crs-secure-note {
    margin-top: 10px;
    color: #9aa2b1;
    font-size: 9px;
    line-height: 1.4;
}

.crs-secure-note span {
    margin-right: 4px;
}

/* -------------------------
   RESERVATION SUMMARY
   ------------------------- */

.crs-summary-card {
    position: sticky;
    top: 24px;
    overflow: hidden;
}

.crs-summary-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 23px 23px 18px;
    border-bottom: 1px solid #eceef3;
}

.crs-reservation-number {
    margin: 16px 14px 5px;
    padding: 13px;
    border: 1px solid #e5dcff;
    border-radius: 9px;
    background: #faf8ff;
}

.crs-reservation-number span {
    display: block;
    margin-bottom: 6px;
    color: #9a92aa;
    font-size: 8px;
    font-weight: 600;
}

.crs-reservation-number strong {
    display: block;
    color: #242034;
    font-size: 10px;
    font-weight: 800;
    word-break: break-word;
}

.crs-summary-list {
    padding: 4px 23px 0;
}

.crs-summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid #eef0f4;
}

.crs-summary-item span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #7d8698;
    font-size: 9px;
}

.crs-summary-item i {
    color: #7040ec;
    font-size: 11px;
}

.crs-summary-item strong {
    color: #303749;
    font-size: 9px;
    font-weight: 750;
    text-align: right;
}

.crs-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 4px;
    padding: 17px 23px;
    border-top: 1px solid #eceef3;
}

.crs-summary-total span {
    color: #273043;
    font-size: 10px;
    font-weight: 700;
}

.crs-summary-total strong {
    color: #7040ec;
    font-size: 19px;
    font-weight: 800;
}

.crs-next-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 14px 14px;
    padding: 13px;
    border: 1px solid #f2dfaa;
    border-radius: 10px;
    background: #fffaf0;
}

.crs-next-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f4bd35;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
}

.crs-next-step strong {
    display: block;
    color: #67532a;
    font-size: 9px;
    line-height: 1.4;
}

.crs-next-step p {
    margin: 3px 0 0;
    color: #8d7d58;
    font-size: 8px;
    line-height: 1.5;
}

/* -------------------------
   HELP CARD
   ------------------------- */

.crs-help-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 15px;
}

.crs-help-icon {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1ecff;
    color: #7040ec;
    font-size: 10px;
    font-weight: 800;
}

.crs-help-card strong {
    display: block;
    margin-bottom: 2px;
    color: #303749;
    font-size: 9px;
}

.crs-help-card p {
    margin: 0;
    color: #929aaa;
    font-size: 8px;
    line-height: 1.5;
}

/* -------------------------
   RESPONSIVE
   ------------------------- */

@media (max-width: 900px) {
    .crs-booking-layout {
        grid-template-columns: 1fr;
    }

    .crs-summary-column {
        order: -1;
    }

    .crs-summary-card {
        position: static;
    }
}

@media (max-width: 680px) {
    .crs-booking-page {
        padding: 25px 14px 45px;
    }

    .crs-brand {
        align-items: flex-start;
    }

    .crs-brand-mark {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 13px;
        font-size: 12px;
    }

    .crs-brand-text h1 {
        font-size: 27px;
    }

    .crs-brand-text p {
        font-size: 11px;
    }

    .crs-steps {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 3px;
    }

    .crs-step-line {
        width: 28px;
        flex: 0 0 28px;
    }

    .crs-step strong {
        font-size: 9px;
    }

    .crs-form-card {
        padding: 20px;
    }

    .crs-field-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .crs-card-heading {
        flex-direction: column;
        gap: 10px;
    }

    .crs-required-badge,
    .crs-guest-count {
        align-self: flex-start;
    }

    .crs-summary-heading {
        padding: 19px;
    }

    .crs-summary-list {
        padding-left: 19px;
        padding-right: 19px;
    }

    .crs-summary-total {
        padding-left: 19px;
        padding-right: 19px;
    }
}

@media (max-width: 420px) {
    .crs-page-header {
        margin-bottom: 24px;
    }

    .crs-brand-text h1 {
        font-size: 24px;
    }

    .crs-brand-text p {
        font-size: 10px;
    }

    .crs-step strong {
        display: none;
    }

    .crs-step-line {
        width: 22px;
        flex-basis: 22px;
    }

    .crs-form-card {
        padding: 17px;
    }

    .crs-guest-row {
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 7px;
    }
}
