/* ==============================================
   BOOKING CALENDAR – Pixel-perfect match
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&family=Montserrat:wght@300;400;500;600&display=swap');

.bc-outer-frame,
.bc-outer-frame * { box-sizing: border-box; }

.bc-outer-frame {
    width: 100%;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ══════════════════════════════════
   STEP 1 – Calendar + Form
   Dark theme, blue border
══════════════════════════════════ */
.bc-wrapper {
    background: #0d0d0d;
    border: 3px solid #1e5bb5;
    padding: 36px 48px 40px;
    font-family: 'Montserrat', sans-serif;
    color: #e0e0e0;
    width: 100%;
    max-width: 100%;
}

/* Title: CALENDAR — spaced caps */
.bc-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    letter-spacing: .42em;
    text-align: center;
    color: #fff;
    margin: 0 0 32px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Two columns */
.bc-inner {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
}

.bc-form-col    { flex: 1 1 50%; min-width: 0; }
.bc-calendar-col{ flex: 1 1 50%; min-width: 0; }

/* ── Form fields ── */
.bc-field { margin-bottom: 8px; }

.bc-field input,
.bc-field select,
.bc-field textarea {
    width: 100%;
    background: #0d0d0d;
    border: 1px solid #3a3a3a;
    color: #bbb;
    padding: 0 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: .88rem !important;
    letter-spacing: .02em;
    outline: none;
    transition: border-color .2s;
    border-radius: 4px !important;   /* matches screenshot */
    -webkit-appearance: none;
    appearance: none;
    height: 44px;
    display: flex;
    align-items: center;
}

.bc-field textarea {
    height: auto;
    min-height: 90px;
    padding-top: 12px;
    padding-bottom: 12px;
    resize: none;
}

.bc-field select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23777'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.bc-field select option { background: #1a1a1a; }

.bc-field input:focus,
.bc-field select:focus,
.bc-field textarea:focus { border-color: #1e5bb5; }

.bc-field input::placeholder,
.bc-field textarea::placeholder { color: #555; font-size: .88rem; }

/* ── Date notice (checkbox row) ── */
.bc-date-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .82rem !important;
    margin: 10px 0 4px;
    color: #ccc;
}

.bc-notice-checkbox {
    width: 16px;
    height: 16px;
    background: #1e5bb5;
    border: none;
    border-radius: 3px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bc-notice-checkbox::after {
    content: '✓';
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
}

/* ── Response messages ── */
.bc-response {
    margin: 8px 0;
    padding: 10px 14px;
    font-size: .85rem !important;
    border-radius: 3px;
}
.bc-response.success {
    background: rgba(30,120,60,.2);
    border-left: 3px solid #3da86a;
    color: #7de0aa;
}
.bc-response.error {
    background: rgba(160,30,30,.2);
    border-left: 3px solid #c0392b;
    color: #f08080;
}

/* ── Submit button — full width, red ── */
.bc-submit-wrap { margin-top: 16px; }

.bc-submit-btn {
    display: block;
    width: 100%;
    background: #c0392b;
    color: #fff;
    border: none;
    padding: 13px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: .78rem !important;
    font-weight: 600;
    letter-spacing: .22em;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 0 !important;
    transition: background .2s, transform .1s;
}
.bc-submit-btn:hover    { background: #a93226; }
.bc-submit-btn:active   { transform: scaleY(.97); }
.bc-submit-btn:disabled { background: #555; cursor: not-allowed; }

/* ══════════════════════════════════
   CALENDAR (right column)
══════════════════════════════════ */
.bc-calendar {
    background: #f5f5f5;
    color: #111;
    padding: 18px 16px 14px;
    width: 100%;
    border-radius: 0;
}

.bc-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.bc-month-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1rem !important;
    color: #555;
    letter-spacing: .04em;
}

.bc-nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.6rem !important;
    color: #555;
    padding: 0 4px;
    line-height: 1;
    transition: color .15s;
}
.bc-nav-btn:hover { color: #1e5bb5; }

/* Day labels: MON TUE WED... */
.bc-day-labels {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
}
.bc-day-labels span {
    text-align: center;
    font-size: .72rem !important;
    font-weight: 600;
    color: #888;
    letter-spacing: .04em;
    padding: 4px 0;
}

/* Grid */
.bc-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.bc-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .88rem !important;
    font-weight: 500;
    cursor: pointer;
    border-radius: 50%;
    transition: background .15s, color .15s;
    color: #222;
    user-select: none;
}

.bc-day:hover:not(.bc-reserved):not(.bc-unavailable):not(.bc-past):not(.bc-empty) {
    background: #dce8fa;
    color: #1e5bb5;
}

.bc-day.bc-selected {
    background: #1e5bb5 !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: 50% !important;
}

.bc-day.bc-reserved {
    color: #ccc;
    cursor: not-allowed;
}

.bc-day.bc-unavailable {
    background: #c0392b;
    color: #fff;
    border-radius: 50%;
    cursor: not-allowed;
}

.bc-day.bc-past {
    color: #ccc;
    cursor: default;
}

.bc-day.bc-today:not(.bc-selected) {
    border: 2px solid #1e5bb5;
    font-weight: 700;
    color: #1e5bb5;
}

.bc-day.bc-empty { cursor: default; }

/* Legend */
.bc-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 12px;
    font-size: .75rem !important;
    color: #666;
    font-family: 'Montserrat', sans-serif;
}
.bc-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.bc-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.bc-legend-reserved    { background: #ccc; }
.bc-legend-available   { background: #f0f0f0; border: 1px solid #aaa; }
.bc-legend-unavailable { background: #c0392b; }

/* ── Locked guests field ── */
.bc-field-guests .bc-guests-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #0d0d0d;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    padding: 4px 12px 6px;
    min-height: 44px;
    justify-content: center;
    transition: border-color .2s;
}
.bc-field-guests .bc-guests-wrap.bc-guests-locked {
    border-color: #1e5bb5 !important;
}
.bc-guests-label {
    font-size: .58rem !important;
    color: #666;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 1px;
    line-height: 1;
    display: block;
}
.bc-guests-wrap.bc-guests-locked .bc-guests-label { color: #1e5bb5; }

.bc-field-guests input#bc-guests {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    height: auto !important;
    font-size: .88rem !important;
    font-weight: 600;
    color: #fff;
    width: 100%;
    outline: none;
    cursor: not-allowed;
    border-radius: 0 !important;
    -moz-appearance: textfield;
}
.bc-field-guests input#bc-guests::-webkit-outer-spin-button,
.bc-field-guests input#bc-guests::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.bc-guests-badge {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: .62rem !important;
    color: #1e5bb5;
    font-weight: 600;
    letter-spacing: .04em;
    white-space: nowrap;
}
.bc-guests-note { display: none !important; }

/* ══════════════════════════════════
   STEP 2 – Review Your Event Details
   White / grey theme
══════════════════════════════════ */
#bc-step-2 {
    background: #fff;
    padding: 32px 40px 40px;
}

#bc-step-2 .bc-title {
    color: #111;
    font-size: 1.1rem !important;
    letter-spacing: .22em;
    margin-bottom: 24px;
    text-align: left;
    font-family: 'Cormorant Garamond', serif;
}

.bc-review-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 5px;
    margin-bottom: 20px;
}

.bc-review-label {
    font-family: 'Montserrat', sans-serif;
    font-size: .82rem !important;
    font-weight: 700;
    color: #111;
    padding: 6px 20px 6px 0;
    white-space: nowrap;
    width: 185px;
    vertical-align: middle;
}

.bc-review-value {
    font-family: 'Montserrat', sans-serif;
    font-size: .82rem !important;
    font-weight: 400;
    color: #333;
    padding: 8px 14px;
    vertical-align: middle;
    background: #ebebeb;
}

tr.bc-review-row-message .bc-review-value {
    vertical-align: top;
    padding-top: 12px;
    padding-bottom: 48px;
}

.bc-review-total {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem !important;
    font-weight: 700;
    color: #111;
    margin: 14px 0 18px;
}

/* Payment buttons */
.bc-payment-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.bc-pay-btn {
    width: 100%;
    padding: 12px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: .75rem !important;
    font-weight: 600;
    letter-spacing: .06em;
    cursor: pointer;
    border-radius: 0 !important;
    transition: opacity .2s, background .2s;
    text-align: center;
}
.bc-pay-btn:hover    { opacity: .88; }
.bc-pay-btn:disabled { opacity: .5; cursor: not-allowed; }

.bc-pay-outline {
    background: #fff;
    border: 1.5px solid #bbb;
    color: #333;
}
.bc-pay-outline:hover { border-color: #333; }

.bc-pay-red {
    background: #d32f2f;
    border: none;
    color: #fff;
}
.bc-pay-red:hover { background: #b71c1c; opacity: 1; }

/* Back link */
.bc-back-wrap { margin-top: 10px; }
.bc-back-btn {
    background: none;
    border: none;
    color: #1e5bb5;
    font-family: 'Montserrat', sans-serif;
    font-size: .75rem !important;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: .04em;
    padding: 0;
    transition: color .15s;
}
.bc-back-btn:hover { color: #4d8ae0; }

#bc-review-response { margin-bottom: 10px; }

/* ══════════════════════════════════
   STEP 3 – Confirmed
══════════════════════════════════ */
.bc-confirmed {
    text-align: center;
    padding: 60px 20px 80px;
}
.bc-confirmed-icon {
    width: 72px; height: 72px;
    background: #1e5bb5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin: 0 auto 24px;
}
.bc-confirmed-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem !important;
    letter-spacing: .2em;
    color: #fff;
    margin: 0 0 16px;
}
.bc-confirmed-msg  { font-size: .9rem !important; color: #aaa; margin-bottom: 8px; }
.bc-confirmed-sub  { font-size: .8rem !important; color: #666; }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 700px) {
    .bc-wrapper      { padding: 24px 20px; }
    .bc-inner        { flex-direction: column; gap: 24px; }
    .bc-form-col,
    .bc-calendar-col { flex: 1 1 100%; width: 100%; }
    #bc-step-2       { padding: 24px 16px; }
}

/* ── Force font sizes against theme overrides ── */
.bc-outer-frame .bc-field input,
.bc-outer-frame .bc-field select,
.bc-outer-frame .bc-field textarea { font-size: .88rem !important; }
.bc-outer-frame .bc-title           { font-size: 2rem !important; }
.bc-outer-frame #bc-step-2 .bc-title{ font-size: 1.1rem !important; }
.bc-outer-frame .bc-day             { font-size: .88rem !important; }
.bc-outer-frame .bc-month-label     { font-size: 1rem !important; }
.bc-outer-frame .bc-day-labels span { font-size: .72rem !important; }
.bc-outer-frame .bc-legend          { font-size: .75rem !important; }
.bc-outer-frame .bc-review-label    { font-size: .82rem !important; }
.bc-outer-frame .bc-review-value    { font-size: .82rem !important; }
.bc-outer-frame .bc-pay-btn         { font-size: .75rem !important; }
.bc-outer-frame .bc-submit-btn      { font-size: .78rem !important; }
.bc-outer-frame .bc-date-notice     { font-size: .82rem !important; }
