/* ================================================================
   BOOKING / CHECKOUT PAGE
   Prefix: .ckt-  (aktif, dipakai oleh Views/booking/checkout.php)
   Layout: 2-kolom grid (main + sidebar), responsif ke 1 kolom
   ================================================================ */

/* ── 1. Page section ── */
.ckt-section {
    background: #f0f4f8;
    min-height: 100vh;
    padding: 80px 0 60px;
    position: relative;
    flex: 1;
}

.ckt-bg-overlay {
    display: none;
}

.ckt-alert-container {
    max-width: 1200px;
    margin: 0 auto 16px;
    padding: 0 24px;
}

/* ── 2. Container & Grid ── */
.layout-wireframe {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.ckt-body {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

/* ── 3. Left column: Main ── */
.ckt-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* ── 4. Hero Card ── */
.ckt-hero-card {
    border-radius: 16px;
    overflow: hidden;
    background: #111827;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.ckt-hero-img-wrap {
    position: relative;
    height: 340px;
    overflow: hidden;
}

.ckt-hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ckt-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 32px;
    background: linear-gradient(to top,
            rgba(10, 15, 30, 0.92) 0%,
            rgba(10, 15, 30, 0.5) 50%,
            transparent 100%);
}

.ckt-hero-title {
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 10px;
}

.ckt-hero-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
    max-width: 80%;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ckt-hero-info-bar {
    display: flex;
    background: #0f766e;
    padding: 0;
}

.hero-info-item {
    flex: 1;
    padding: 18px 24px;
}

.hero-info-item:not(:first-child) {
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-info-item .lbl {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.hero-info-item .val {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

/* ── 5. Form Card ── */
.ckt-form-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 32px 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.ckt-sec-title {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 7px;
}

/* Tier selected card */
.ckt-card.ckt-tier-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.ckt-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    background: #dcfce7;
    color: #16a34a;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.ckt-tier-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}

.ckt-tier-desc {
    font-size: 0.84rem;
    color: #64748b;
    margin: 0;
}

.ckt-tier-info {
    flex: 1;
    min-width: 0;
}

.ckt-tier-price {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.ckt-price-strike {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.ckt-price-now {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    
}

.ckt-price-note {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* Form sections inside form card */
.ckt-form-section {
    padding: 24px 0 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.ckt-sec-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.ckt-sec-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #64748b;
    flex-shrink: 0;
}

.ckt-sec-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
}

.ckt-sec-hint {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
}

/* Form grid */
.ckt-form-row {
    margin-bottom: 16px;
}

.ckt-form-row:last-child {
    margin-bottom: 0;
}

.ckt-grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ckt-field label {
    display: block;
    font-size: 0.83rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.ckt-asterisk {
    color: #ef4444;
}

.ckt-optional {
    color: #9ca3af;
    font-weight: 400;
    font-size: 0.78rem;
}

.ckt-input,
.ckt-textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.88rem;
    
    color: #0f172a;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.ckt-input:focus,
.ckt-textarea:focus {
    border-color: #95B300;
    box-shadow: 0 0 0 3px rgba(149, 179, 0, 0.12);
    background: #fff;
}

.ckt-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Date cards */
.ckt-date-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.ckt-date-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}

.ckt-date-card:hover:not(.ckt-date-soldout) {
    border-color: #95B300;
}

.ckt-date-card input[type="checkbox"] {
    display: none;
}

.ckt-date-check {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #95B300;
    border-radius: 50%;
    color: #fff;
    font-size: 0.65rem;
    align-items: center;
    justify-content: center;
}

.ckt-date-card input:checked~.ckt-date-check {
    display: flex;
}

.ckt-date-card input:checked~.ckt-date-body .ckt-date-wd {
    color: #95B300;
}

.ckt-date-wd {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ckt-date-d {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.ckt-date-m {
    font-size: 0.75rem;
    color: #64748b;
}

.ckt-date-lbl {
    font-size: 0.68rem;
    color: #94a3b8;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ckt-date-body {
    text-align: center;
}

.ckt-date-foot {
    margin-top: 10px;
}

.ckt-date-price {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
}

.ckt-date-sisa {
    font-size: 0.68rem;
    color: #16a34a;
}

.ckt-date-sisa-out {
    color: #ef4444;
}

.ckt-date-soldout {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ── 6. Right column: Sidebar ── */
.ckt-sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
    min-width: 0;
}

.ckt-sidebar-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

/* Summary card */
.ckt-summary-card {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.ckt-summary-title {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
}

.ckt-summary-title i {
    color: #d4af37;
}

.ckt-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.875rem;
    color: #475569;
    padding: 7px 0;
    gap: 12px;
}

.ckt-summary-row span:last-child {
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    text-align: right;
}

.ckt-summary-promo span:last-child {
    color: #94a3b8;
    font-weight: 400;
    text-decoration: line-through;
}

.ckt-summary-disc span:first-child {
    color: #16a34a;
}

.ckt-disc-val {
    color: #16a34a;
    font-weight: 700;
}

.ckt-summary-tax span:last-child {
    color: #d97706;
}

.ckt-summary-divider {
    border: none;
    border-top: 1px dashed #e2e8f0;
    margin: 10px 0;
}

.ckt-summary-total span:first-child {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
}

.ckt-summary-total span:last-child {
    font-size: 1.4rem;
    font-weight: 800;
    color: #d4af37;
    
}

.ckt-pending {
    color: #94a3b8;
    font-style: italic;
    font-size: 0.8rem;
    font-weight: 400;
}

.ckt-summary-qty-rows {
    margin: 4px 0;
}

/* Qty stepper */
.ckt-qty-field {
    text-align: center;
    padding: 6px 0;
}

.ckt-qty-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 12px;
}

.ckt-qty-hint {
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    color: #94a3b8;
    margin-top: 3px;
}

.ckt-qty-box {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    padding: 5px;
    width: 134px;
}

.ckt-qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: background 0.15s, border-color 0.15s;
}

.ckt-qty-btn:hover:not(:disabled) {
    background: #f1f5f9;
}

.ckt-qty-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.ckt-qty-input {
    flex: 1;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    background: transparent;
    border: none;
    outline: none;
    
    -moz-appearance: textfield;
}

.ckt-qty-input::-webkit-inner-spin-button,
.ckt-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* Submit button */
.ckt-btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px 20px;
    margin-top: 16px;
    background: #facc15;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    
}

.ckt-btn-submit:hover:not(:disabled) {
    background: #eab308;
}

.ckt-btn-submit:active:not(:disabled) {
    transform: scale(0.98);
}

.ckt-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Gateway loader */
.ckt-gateway-loader {
    margin-top: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.ckt-gl-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #475569;
    margin-bottom: 10px;
}

.ckt-gl-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ckt-gl-spinner {
    color: #d4af37;
}

.ckt-gl-pct {
    font-weight: 700;
    color: #0f172a;
}

.ckt-gl-track {
    height: 4px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}

.ckt-gl-bar {
    height: 100%;
    background: linear-gradient(90deg, #95B300, #d4af37);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 99px;
}

.ckt-gl-hint {
    font-size: 0.73rem;
    color: #94a3b8;
    text-align: center;
    margin: 10px 0 0;
}

/* Others section */
.ckt-others-wrapper {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.ckt-others-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ckt-tier-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    text-decoration: none;
    gap: 12px;
    transition: border-color 0.2s, background 0.2s;
}

.ckt-tier-item:hover {
    border-color: #95B300;
    background: #fff;
}

.ckt-other-info {
    flex: 1;
    min-width: 0;
}

.ckt-other-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px;
}

.ckt-other-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    display: block;
}

.ckt-other-price-strike {
    font-size: 0.78rem;
    color: #94a3b8;
    text-decoration: line-through;
    display: block;
    margin-bottom: 1px;
}

.ckt-tax-note {
    font-size: 0.72rem;
    color: #94a3b8;
}

.ckt-pick {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    background: #0f172a;
    padding: 6px 14px;
    border-radius: 20px;
    flex-shrink: 0;
    transition: background 0.2s;
}

.ckt-tier-item:hover .ckt-pick {
    background: #95B300;
}

.ckt-no-tier {
    font-size: 0.82rem;
    color: #94a3b8;
    text-align: center;
    padding: 12px;
}

/* Tier Lainnya — Badge & Disabled States */
.ckt-other-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 20px;
    margin-bottom: 5px;
}

.ckt-other-badge--available {
    background: #dcfce7;
    color: #16a34a;
}

.ckt-other-badge--soldout {
    background: #fee2e2;
    color: #dc2626;
}

.ckt-other-badge--hold {
    background: #fef3c7;
    color: #92400e;
}

.ckt-other-badge--expired {
    background: #f1f5f9;
    color: #64748b;
}

.ckt-tier-item--disabled {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    gap: 12px;
    opacity: 0.6;
    cursor: not-allowed;
}

.ckt-pick--disabled {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    background: #e2e8f0;
    padding: 6px 12px;
    border-radius: 20px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Alert */
.ckt-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 0.875rem;
}

.ckt-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.ckt-alert-icon {
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.ckt-alert-title {
    font-weight: 700;
    margin-bottom: 2px;
}

.ckt-alert-desc {
    margin: 0;
}

.ckt-alert-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.ckt-alert-close:hover {
    opacity: 1;
}

/* Utility */
.ckt-hidden {
    display: none !important;
}

.ckt-mt-15 {
    margin-top: 15px;
}

.ckt-mt-20 {
    margin-top: 20px;
}

.ckt-mt-24 {
    margin-top: 24px;
}

/* ── Custom Flatpickr Theme (Light/Lime) ── */
.flatpickr-calendar {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    
}

.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after {
    border-bottom-color: #ffffff !important;
}

.flatpickr-calendar.arrowBottom:before,
.flatpickr-calendar.arrowBottom:after {
    border-top-color: #ffffff !important;
}

.flatpickr-months .flatpickr-month {
    color: #0f172a !important;
    fill: #0f172a !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: #64748b !important;
    fill: #64748b !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    color: #0f172a !important;
    fill: #0f172a !important;
    background: #f1f5f9 !important;
    border-radius: 6px !important;
}

span.flatpickr-weekday {
    color: #64748b !important;
    font-weight: 700 !important;
}

.flatpickr-day {
    color: #334155 !important;
    border-radius: 8px !important;
}

.flatpickr-day.inRange,
.flatpickr-day:hover,
.flatpickr-day:focus {
    background: #f1f5f9 !important;
    border-color: transparent !important;
    color: #0f172a !important;
}

.flatpickr-day.today {
    border-color: #95B300 !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: #95B300 !important;
    color: #ffffff !important;
    border-color: #95B300 !important;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #cbd5e1 !important;
}

.flatpickr-current-month {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 !important;
    height: auto !important;
}

.flatpickr-monthDropdown-months {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    outline: none;
    cursor: pointer;
    appearance: menulist !important;
    height: auto !important;
    margin: 0 !important;
}

/* ── 7. Responsive ── */
@media (max-width: 960px) {
    .ckt-body {
        grid-template-columns: 1fr;
    }

    .ckt-sidebar {
        position: static;
    }

    .ckt-hero-img-wrap {
        height: 260px;
    }

    .ckt-hero-overlay {
        padding: 20px 24px;
    }

    .ckt-hero-desc {
        display: none;
    }

    .ckt-hero-info-bar {
        flex-wrap: wrap;
    }

    .hero-info-item {
        flex: 1 1 45%;
        min-width: 120px;
    }

    .layout-wireframe {
        padding: 0 16px;
    }

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

    .ckt-sidebar-card {
        padding: 20px;
    }
}

@media (max-width: 600px) {
    .ckt-grid-2-col {
        grid-template-columns: 1fr;
    }

    .ckt-hero-img-wrap {
        height: 220px;
    }

    .ckt-hero-title {
        font-size: 1.3rem;
    }

    .ckt-hero-info-bar {
        flex-direction: column;
    }

    .hero-info-item {
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .hero-info-item:last-child {
        border-bottom: none;
    }

    .ckt-date-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
