/* ── Base ───────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.fcsb-form-wrap {
    font-family: 'Inter', Arial, sans-serif;
    max-width: 780px;
    margin: 30px auto;
    padding: 32px;
    background: #080808;
    color: #f0f0f0;
    border: 1px solid #c9a84c;
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(201,168,76,.15);
}
.fcsb-form-wrap h2 { color: #c9a84c; margin: 0 0 10px; font-size: 1.5rem; }
.fcsb-form-wrap > p { color: #aaa; line-height: 1.7; margin: 0 0 24px; }
.req { color: #c9a84c; }

/* ── Pricing Card ───────────────────────────────────────────────────────── */
.fcsb-pricing-card {
    padding: 20px;
    border: 1px solid #c9a84c55;
    background: #111;
    border-radius: 10px;
    margin-bottom: 24px;
}
.fcsb-pricing-card-title {
    color: #c9a84c;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 14px;
}
.fcsb-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}
.fcsb-pricing-item {
    background: #161616;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #222;
}
.fcsb-pricing-item span {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
    text-transform: uppercase;
}
.fcsb-pricing-item strong {
    font-size: 16px;
    color: #f0f0f0;
}
.fcsb-pricing-note {
    margin: 12px 0 0 0;
    font-size: 11px;
    color: #888;
    line-height: 1.5;
}

/* ── Form Grid ──────────────────────────────────────────────────────────── */
.fcsb-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fcsb-field { display: flex; flex-direction: column; gap: 6px; }
.fcsb-field-full { grid-column: 1 / -1; }
.fcsb-field label { font-weight: 600; font-size: 13px; color: #c9a84c; letter-spacing: .3px; }

.fcsb-form-wrap input[type="text"],
.fcsb-form-wrap input[type="email"],
.fcsb-form-wrap input[type="tel"],
.fcsb-form-wrap input[type="number"],
.fcsb-form-wrap input[type="time"],
.fcsb-form-wrap select,
.fcsb-form-wrap textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #333;
    border-radius: 7px;
    background: #fff;
    color: #111;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .2s;
}
.fcsb-form-wrap input:focus,
.fcsb-form-wrap select:focus,
.fcsb-form-wrap textarea:focus { outline: none; border-color: #c9a84c; box-shadow: 0 0 0 3px rgba(201,168,76,.15); }
.fcsb-form-wrap textarea { min-height: 90px; resize: vertical; }

/* ── Submit ─────────────────────────────────────────────────────────────── */
.fcsb-submit-btn {
    margin-top: 24px;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #c9a84c, #e8c96a);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
    letter-spacing: .4px;
}
.fcsb-submit-btn:hover { opacity: .92; transform: translateY(-1px); }
.fcsb-submit-btn:active { transform: translateY(0); }
.fcsb-submit-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Messages ───────────────────────────────────────────────────────────── */
.fcsb-message { margin-top: 16px; padding: 14px 18px; border-radius: 8px; display: none; font-size: 14px; line-height: 1.6; }
.fcsb-message.success { display: block; background: #0e2e18; color: #7dffad; border: 1px solid #2a6e45; }
.fcsb-message.error   { display: block; background: #2e0e0e; color: #ffaaaa; border: 1px solid #6e2a2a; }
.fcsb-message.loading { display: block; background: #1a1a1a; color: #aaa; border: 1px solid #333; }

/* ── Estimate Box ───────────────────────────────────────────────────────── */
.fcsb-estimate-box {
    padding: 18px 20px;
    border: 1px solid #c9a84c;
    background: #111;
    border-radius: 10px;
}
.fcsb-estimate-heading { color: #c9a84c; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; display: block; margin-bottom: 12px; }
.fcsb-estimate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.fcsb-estimate-item { background: #1a1a1a; border-radius: 6px; padding: 10px 12px; }
.fcsb-estimate-item span { display: block; font-size: 11px; color: #888; margin-bottom: 3px; }
.fcsb-estimate-item strong { font-size: 15px; color: #f0f0f0; }
.fcsb-estimate-item.holiday strong { color: #c9a84c; }

/* ── Capacity Warning ───────────────────────────────────────────────────── */
.fcsb-capacity-warning { background: #2e1a00; border: 1px solid #c9a84c; border-radius: 8px; padding: 14px 18px; }
.fcsb-capacity-warning p { margin: 0; color: #f0c060; font-size: 14px; }

/* ── Selected Date Display ──────────────────────────────────────────────── */
.fcsb-selected-date { font-size: 13px; color: #c9a84c; font-weight: 600; margin-top: 6px; min-height: 18px; }

/* ── Calendar ───────────────────────────────────────────────────────────── */
.fcsb-calendar-wrap { background: #111; border: 1px solid #333; border-radius: 10px; padding: 16px; user-select: none; }
.fcsb-cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.fcsb-cal-title { font-weight: 700; font-size: 15px; color: #f0f0f0; }
.fcsb-cal-nav { background: none; border: 1px solid #444; color: #c9a84c; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.fcsb-cal-nav:hover { background: #c9a84c22; }
.fcsb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.fcsb-cal-dow { text-align: center; font-size: 11px; font-weight: 700; color: #666; padding: 4px 0 6px; text-transform: uppercase; }
.fcsb-cal-day {
    text-align: center; padding: 8px 4px; border-radius: 6px;
    font-size: 13px; font-weight: 500; cursor: pointer;
    transition: background .15s, transform .1s;
    position: relative;
}
.fcsb-cal-day:hover:not(.fcsb-cal-past):not(.fcsb-cal-full):not(.fcsb-cal-blocked) { background: #c9a84c33; transform: scale(1.08); }
.fcsb-cal-available { color: #7dffad; }
.fcsb-cal-available::after { content:''; display:block; width:5px; height:5px; background:#7dffad; border-radius:50%; margin:2px auto 0; }
.fcsb-cal-limited { color: #ff7043; }
.fcsb-cal-limited::after { content:''; display:block; width:5px; height:5px; background:#ff7043; border-radius:50%; margin:2px auto 0; }
.fcsb-cal-pending { color: #29b6f6; }
.fcsb-cal-pending::after { content:''; display:block; width:5px; height:5px; background:#29b6f6; border-radius:50%; margin:2px auto 0; }
.fcsb-cal-full, .fcsb-cal-blocked { color: #555; cursor: not-allowed; }
.fcsb-cal-past { color: #444; cursor: not-allowed; }
.fcsb-cal-selected { background: #c9a84c !important; color: #000 !important; font-weight: 700; border-radius: 6px; }
.fcsb-cal-selected::after { display: none; }
.fcsb-cal-today { border: 1px solid #c9a84c55; }
.fcsb-cal-loading { text-align: center; color: #888; font-size: 13px; padding: 8px 0 0; }
.fcsb-cal-legend { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.fcsb-cal-legend-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #888; }
.fcsb-cal-legend-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ── Tour Type Buttons ──────────────────────────────────────────────────── */
.fcsb-tour-type-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.fcsb-type-btn {
    flex: 1; min-width: 140px; padding: 12px 18px;
    background: #1a1a1a; border: 2px solid #333; border-radius: 8px;
    color: #aaa; font-size: 14px; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: all .2s;
}
.fcsb-type-btn:hover { border-color: #c9a84c; color: #c9a84c; }
.fcsb-type-btn.active { border-color: #c9a84c; background: #c9a84c22; color: #c9a84c; }

/* ── Slot Grid ──────────────────────────────────────────────────────────── */
.fcsb-slot-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.fcsb-slot-btn {
    padding: 10px 16px; border-radius: 8px; border: 2px solid #333;
    background: #1a1a1a; color: #ccc; font-size: 13px; font-weight: 600;
    font-family: inherit; cursor: pointer; transition: all .2s; text-align: center;
    min-width: 140px;
}
.fcsb-slot-btn .fcsb-slot-seats { display: block; font-size: 11px; font-weight: 400; color: #888; margin-top: 3px; }
.fcsb-slot-btn:hover:not(:disabled) { border-color: #c9a84c; color: #c9a84c; background: #c9a84c11; }
.fcsb-slot-btn.selected { border-color: #c9a84c; background: #c9a84c; color: #000; }
.fcsb-slot-btn.selected .fcsb-slot-seats { color: #333; }
.fcsb-slot-btn:disabled { opacity: .4; cursor: not-allowed; border-color: #222; }
.fcsb-slot-info { margin-top: 10px; font-size: 13px; color: #888; }

/* ── Spinner ────────────────────────────────────────────────────────────── */
.fcsb-spinner {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid #333; border-top-color: #c9a84c;
    border-radius: 50%; animation: fcsb-spin .7s linear infinite;
    vertical-align: middle; margin-right: 6px;
}
@keyframes fcsb-spin { to { transform: rotate(360deg); } }

/* ── Field Hint ─────────────────────────────────────────────────────────── */
.fcsb-field-hint {
    display: block;
    font-size: 12px;
    color: #c9a84c;
    line-height: 1.4;
    margin-top: 2px;
    opacity: 0.95;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .fcsb-form-wrap { 
        padding: 20px 12px; 
        margin: 10px 4px; /* Use smaller left/right margins to reclaim screen space */
    }
    .fcsb-form-grid { grid-template-columns: 1fr; }
    .fcsb-field-full { grid-column: 1; }
    .fcsb-tour-type-btns { flex-direction: column; }
    
    /* Optimize calendar to prevent overflow with long month names */
    .fcsb-calendar-wrap { 
        padding: 10px 8px; /* Save 16px of horizontal space */
    }
    .fcsb-cal-header {
        margin-bottom: 8px;
    }
    .fcsb-cal-title { 
        font-size: 13px; /* Prevent wrapping of long month names */
    }
    .fcsb-cal-nav { 
        width: 28px; 
        height: 28px; 
        font-size: 15px; 
    }
    .fcsb-cal-day {
        padding: 6px 2px;
        font-size: 12px;
    }
    .fcsb-cal-grid {
        gap: 2px;
    }
}

@media (max-width: 360px) {
    .fcsb-form-wrap {
        padding: 16px 8px;
        margin: 8px 2px;
    }
    .fcsb-calendar-wrap {
        padding: 8px 4px;
    }
    .fcsb-cal-title {
        font-size: 12px;
    }
}