/* ═══════════════════════════════════════════
   5DC Events — Frontend Booking Styles
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* Theme header/footer are now used on all event pages */

/* ── Base ── */
.fdc-checkout-wrap {
    font-family: 'Inter', -apple-system, sans-serif;
    color: #2D3436;
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    -webkit-font-smoothing: antialiased;
}

/* ── Catalog ── */
.fdc-catalog-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    font-family: 'Inter', -apple-system, sans-serif;
}
.fdc-catalog-header {
    text-align: center;
    margin-bottom: 48px;
}
.fdc-catalog-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: #0F0F1A;
    margin: 0 0 8px;
}
.fdc-catalog-header p {
    color: #636E72;
    font-size: 18px;
    margin: 0;
}
.fdc-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* ── Event Cards (clickable) ── */
.fde-event-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.fde-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(108, 92, 231, 0.12);
    text-decoration: none;
}
.fde-event-card:active {
    transform: translateY(-1px);
}
.fde-event-card-thumb {
    height: 200px;
    overflow: hidden;
    background: #F0F0F5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fde-event-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.fde-event-card:hover .fde-event-card-thumb img {
    transform: scale(1.06);
}
.fde-event-card-placeholder {
    font-size: 48px;
}
.fde-event-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.fde-event-card-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0F0F1A;
    margin: 0 0 10px;
}
.fde-event-card-body h3 {
    flex: 1;
}
.fde-event-card-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: auto;
}
.fde-event-card-meta span {
    font-size: 13px;
    color: #B2BEC3;
    font-weight: 500;
}

/* ── Single Event Details Page ── */
.fde-single-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    font-family: 'Inter', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.fde-single-back {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #6C5CE7;
    text-decoration: none;
    margin-bottom: 24px;
}
.fde-single-back:hover {
    text-decoration: none;
    opacity: 0.8;
}
.fde-single-thumb {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 28px;
    max-height: 360px;
}
.fde-single-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fde-single-title {
    font-size: 32px;
    font-weight: 800;
    color: #0F0F1A;
    margin: 0 0 12px;
    line-height: 1.2;
}
.fde-single-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.fde-single-meta span {
    font-size: 14px;
    color: #636E72;
    font-weight: 500;
    padding: 6px 14px;
    background: #F8F9FC;
    border-radius: 50px;
}
.fde-single-price {
    font-size: 24px;
    font-weight: 800;
    color: #6C5CE7;
    margin-bottom: 28px;
}
.fde-single-description {
    color: #4A5568;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
}
.fde-single-description p {
    margin: 0 0 14px;
}
.fde-single-description p:last-child {
    margin-bottom: 0;
}
.fde-single-description h2 {
    font-size: 22px;
    font-weight: 800;
    color: #0F0F1A;
    margin: 24px 0 10px;
}
.fde-single-description h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0F0F1A;
    margin: 20px 0 8px;
}
.fde-single-description h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0F0F1A;
    margin: 16px 0 8px;
}
.fde-single-description ul,
.fde-single-description ol {
    margin: 0 0 14px 24px;
    padding: 0;
}
.fde-single-description li {
    margin-bottom: 6px;
}
.fde-single-description blockquote {
    border-left: 3px solid #6C5CE7;
    margin: 0 0 14px;
    padding: 12px 20px;
    color: #636E72;
    font-style: italic;
    background: #F8F9FC;
    border-radius: 0 8px 8px 0;
}
.fde-single-description a {
    color: #6C5CE7;
    text-decoration: underline;
}
.fde-single-description hr {
    border: none;
    border-top: 1px solid #E8ECF1;
    margin: 24px 0;
}
.fde-single-cta {
    display: block;
    width: 100%;
    padding: 18px 32px;
    background: #6C5CE7;
    color: #fff !important;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.35);
}
.fde-single-cta:hover {
    background: #5A4BD1;
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(108, 92, 231, 0.4);
    text-decoration: none;
}
.fde-single-cta:active {
    transform: translateY(0);
}

/* ── Booking Page Layout ── */
.fdc-checkout-wrap {
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* ── Step Indicator ── */
.fde-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0 0 40px;
    padding: 0;
    list-style: none;
}
.fde-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #B2BEC3;
    font-weight: 500;
    position: relative;
    padding: 0 16px;
}
.fde-step::after {
    content: '';
    position: absolute;
    right: -8px;
    width: 16px;
    height: 2px;
    background: #DFE6E9;
}
.fde-step:last-child::after {
    display: none;
}
.fde-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #DFE6E9;
    color: #B2BEC3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.fde-step.active {
    color: #6C5CE7;
}
.fde-step.active .fde-step-num {
    background: #6C5CE7;
    color: #fff;
}
.fde-step.done {
    color: #00B894;
}
.fde-step.done .fde-step-num {
    background: #00B894;
    color: #fff;
}

/* ── Calendar ── */
.fde-calendar-wrap {
    max-width: 420px;
    margin: 0 auto;
}
.fde-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.fde-cal-title {
    font-size: 18px;
    font-weight: 700;
    color: #0F0F1A;
}
.fde-cal-nav {
    background: none;
    border: 2px solid #DFE6E9;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #636E72;
    transition: border-color 0.2s, color 0.2s;
}
.fde-cal-nav:hover {
    border-color: #6C5CE7;
    color: #6C5CE7;
}
.fde-cal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.fde-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 4px;
}
.fde-cal-day-name {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #B2BEC3;
    text-transform: uppercase;
    padding: 8px 0;
}
.fde-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.fde-cal-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #B2BEC3;
    cursor: default;
    border: none;
    background: none;
    transition: all 0.15s;
}
.fde-cal-cell.available {
    color: #0F0F1A;
    cursor: pointer;
    font-weight: 600;
}
.fde-cal-cell.available:hover {
    background: #F0EDFF;
    color: #6C5CE7;
}
.fde-cal-cell.selected {
    background: #6C5CE7;
    color: #fff !important;
}
.fde-cal-cell.today {
    box-shadow: inset 0 0 0 2px #6C5CE7;
}
.fde-cal-cell.empty {
    visibility: hidden;
}
.fde-cal-cell.unavailable {
    color: #DFE6E9;
}

/* ── Timezone Selector ── */
.fde-tz-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.fde-tz-label {
    font-size: 13px;
    color: #636E72;
    font-weight: 500;
}
.fde-tz-select {
    font-size: 13px;
    color: #0F0F1A;
    font-weight: 600;
    border: 1px solid #E8ECF1;
    border-radius: 6px;
    padding: 4px 8px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
}
.fde-tz-select:focus {
    outline: none;
    border-color: #6C5CE7;
}

/* ── Timezone Note ── */
.fde-tz-note {
    text-align: center;
    color: #B2BEC3;
    font-size: 13px;
    margin-top: 16px;
}

/* ── Time Slots ── */
.fde-time-wrap {
    max-width: 480px;
    margin: 0 auto;
}
.fde-time-title {
    font-size: 18px;
    font-weight: 700;
    color: #0F0F1A;
    margin: 0 0 4px;
    text-align: center;
}
.fde-time-sub {
    text-align: center;
    color: #636E72;
    font-size: 14px;
    margin: 0 0 24px;
}
.fde-time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}
.fde-time-btn {
    padding: 12px 8px;
    border: 2px solid #E8ECF1;
    border-radius: 10px;
    background: #fff;
    color: #0F0F1A;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}
.fde-time-btn:hover {
    border-color: #6C5CE7;
    color: #6C5CE7;
    background: #F8F7FF;
}
.fde-time-btn.selected {
    border-color: #6C5CE7;
    background: #6C5CE7;
    color: #fff;
}
.fde-back-btn {
    display: inline-block;
    margin-bottom: 16px;
    color: #636E72;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    background: none;
    padding: 0;
}
.fde-back-btn:hover {
    color: #6C5CE7;
}

/* ── Details Form ── */
.fde-details-wrap {
    max-width: 480px;
    margin: 0 auto;
}
.fde-booking-summary {
    background: #F8F9FC;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 28px;
}
.fde-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: #636E72;
}
.fde-summary-row strong {
    color: #0F0F1A;
}
.fde-details-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.fde-details-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0F0F1A;
    margin-bottom: 6px;
}
.fdc-input,
.fdc-checkout-input,
.fdc-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E8ECF1;
    border-radius: 10px;
    font-size: 15px;
    color: #0F0F1A;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
.fdc-input:focus,
.fdc-checkout-input:focus,
.fdc-textarea:focus {
    outline: none;
    border-color: #6C5CE7;
}
.fdc-textarea {
    resize: vertical;
    min-height: 80px;
}
.fde-submit-btn {
    width: 100%;
    padding: 14px 32px;
    background: #6C5CE7;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}
.fde-submit-btn:hover {
    background: #5A4BD1;
}
.fde-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Confirmation ── */
.fde-confirm-wrap {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}
.fdc-checkout-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #00B894;
    color: #fff;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.fde-confirm-wrap h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0F0F1A;
    margin: 0 0 8px;
}
.fde-confirm-wrap > p {
    color: #636E72;
    font-size: 16px;
    margin: 0 0 32px;
}
.fde-btn-hero {
    display: inline-block;
    padding: 14px 40px;
    background: #6C5CE7;
    color: #fff !important;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}
.fde-btn-hero:hover {
    background: #5A4BD1;
}

/* ── Error ── */
.fdc-checkout-error {
    text-align: center;
    padding: 60px 20px;
}
.fdc-checkout-error h2 {
    font-size: 24px;
    color: #0F0F1A;
    margin: 0 0 12px;
}
.fdc-checkout-error p {
    color: #636E72;
    margin: 0 0 24px;
}

/* ── Loading ── */
.fde-loading {
    text-align: center;
    padding: 60px 0;
    color: #636E72;
}
.fde-loading::after {
    content: '';
    display: block;
    width: 32px;
    height: 32px;
    margin: 16px auto 0;
    border: 3px solid #E8ECF1;
    border-top-color: #6C5CE7;
    border-radius: 50%;
    animation: fde-spin 0.8s linear infinite;
}
@keyframes fde-spin {
    to { transform: rotate(360deg); }
}

/* ── Form Error Message ── */
.fdc-checkout-error-msg {
    background: #FFEEF0;
    color: #D63031;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 8px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .fdc-catalog-grid {
        grid-template-columns: 1fr;
    }
    .fde-single-title {
        font-size: 24px;
    }
    .fde-single-price {
        font-size: 20px;
    }
    .fde-steps {
        gap: 0;
    }
    .fde-step {
        padding: 0 8px;
        font-size: 12px;
    }
    .fde-step-num {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    .fde-time-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
