/* ============================================================
   Bogosland Réservation — Public Booking Form CSS
   Luxury dark aesthetic with gold (#C9A96E) accents
   ============================================================ */

/* ---------- Container ---------- */
.bgl-booking-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 16px 48px;
    color: #111827;
}

/* ---------- Step indicator ---------- */
.bgl-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 32px 0 0;
}
.bgl-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.bgl-step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    transition: all 0.3s;
}
.bgl-step.active .bgl-step-dot {
    background: #C9A96E;
    color: #111827;
    box-shadow: 0 0 0 4px rgba(201,169,110,0.2);
}
.bgl-step.completed .bgl-step-dot {
    background: #111827;
    color: #C9A96E;
}
.bgl-step-label {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    white-space: nowrap;
    transition: color 0.3s;
}
.bgl-step.active .bgl-step-label { color: #C9A96E; }
.bgl-step.completed .bgl-step-label { color: #111827; }
.bgl-step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 12px;
    margin-bottom: 20px;
    min-width: 40px;
    transition: background 0.3s;
}
.bgl-step-line.active {
    background: linear-gradient(90deg, #C9A96E, #e5e7eb);
}
.bgl-step-line.completed {
    background: #C9A96E;
}

/* ---------- Step panels ---------- */
.bgl-step-panel {
    display: none;
    animation: bglFadeIn 0.25s ease;
}
.bgl-step-panel.active {
    display: block;
}
@keyframes bglFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Titles ---------- */
.bgl-step-title {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}

/* ---------- Category pills ---------- */
.bgl-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.bgl-pill {
    padding: 8px 18px;
    border-radius: 100px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.bgl-pill:hover {
    border-color: #C9A96E;
    color: #C9A96E;
}
.bgl-pill.active {
    background: #111827;
    border-color: #111827;
    color: #C9A96E;
}

/* ---------- Service cards ---------- */
.bgl-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
@media (max-width: 480px) {
    .bgl-services-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
.bgl-service-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 16px 16px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.bgl-service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: transparent;
    transition: background 0.2s;
}
.bgl-service-card:hover {
    border-color: #C9A96E;
    box-shadow: 0 4px 20px rgba(201,169,110,0.15);
    transform: translateY(-2px);
}
.bgl-service-card:hover::before,
.bgl-service-card.selected::before {
    background: linear-gradient(90deg, #C9A96E, #e2c07d);
}
.bgl-service-card.selected {
    border-color: #C9A96E;
    background: linear-gradient(135deg, #fffbf4, #fff);
    box-shadow: 0 4px 20px rgba(201,169,110,0.2);
}
.bgl-service-card.hidden {
    display: none;
}
.bgl-service-name {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.3;
}
.bgl-service-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.bgl-service-duration {
    font-size: 11px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 3px;
}
.bgl-service-price {
    font-size: 16px;
    font-weight: 800;
    color: #C9A96E;
    margin-top: auto;
}
.bgl-service-price-sub {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}
.bgl-service-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 12px;
}
.bgl-service-select-btn {
    width: 100%;
    padding: 8px;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.bgl-service-card:hover .bgl-service-select-btn,
.bgl-service-card.selected .bgl-service-select-btn {
    background: #C9A96E;
    color: #111827;
}

/* ---------- Date & time step ---------- */
.bgl-selected-banner {
    background: linear-gradient(135deg, #111827, #1f2937);
    border-radius: 10px;
    padding: 14px 18px;
    color: #fff;
    margin-bottom: 24px;
    display: none;
    align-items: center;
    gap: 14px;
}
.bgl-selected-banner.visible { display: flex; }
.bgl-selected-banner-service {
    font-size: 15px;
    font-weight: 700;
    color: #C9A96E;
}
.bgl-selected-banner-meta {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

/* Date input */
.bgl-date-field {
    margin-bottom: 28px;
}
.bgl-date-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ---------- Slots grid ---------- */
.bgl-slots-title {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin: 0 0 14px;
}
.bgl-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 8px;
    margin-bottom: 28px;
}
.bgl-slot-btn {
    padding: 10px 6px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}
.bgl-slot-btn:hover:not(:disabled):not(.selected) {
    border-color: #C9A96E;
    color: #C9A96E;
    background: #fffbf4;
}
.bgl-slot-btn.selected {
    background: #C9A96E;
    border-color: #C9A96E;
    color: #111827;
    box-shadow: 0 2px 8px rgba(201,169,110,0.35);
}
.bgl-slot-btn:disabled {
    background: #f9fafb;
    border-color: #f3f4f6;
    color: #d1d5db;
    cursor: not-allowed;
    text-decoration: line-through;
}
.bgl-slots-empty {
    padding: 20px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ---------- Summary card ---------- */
.bgl-summary-card {
    background: linear-gradient(135deg, #111827, #1f2937);
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}
.bgl-summary-service {
    font-size: 18px;
    font-weight: 800;
    color: #C9A96E;
}
.bgl-summary-datetime {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 4px;
}
.bgl-summary-price {
    font-size: 24px;
    font-weight: 800;
    color: #C9A96E;
    text-align: right;
}
.bgl-summary-price-sub {
    font-size: 11px;
    color: #6b7280;
    text-align: right;
}

/* ---------- Form ---------- */
.bgl-form-row {
    margin-bottom: 16px;
}
.bgl-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 520px) {
    .bgl-form-row-2 { grid-template-columns: 1fr; }
}
.bgl-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bgl-form-field label {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.bgl-req { color: #dc2626; }
.bgl-opt { color: #9ca3af; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 11px; }

/* ---------- Inputs ---------- */
.bgl-input {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}
.bgl-input:focus {
    border-color: #C9A96E;
    outline: none;
    box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
}
textarea.bgl-input {
    resize: vertical;
    min-height: 90px;
}

/* ---------- Buttons ---------- */
.bgl-step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    gap: 12px;
}
.bgl-btn-primary {
    background: #111827;
    color: #C9A96E;
    border: 2px solid #111827;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}
.bgl-btn-primary:hover:not(:disabled) {
    background: #1f2937;
    border-color: #1f2937;
}
.bgl-btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.bgl-btn-gold {
    background: #C9A96E;
    color: #111827;
    border: 2px solid #C9A96E;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}
.bgl-btn-gold:hover {
    background: #b8935a;
    border-color: #b8935a;
    box-shadow: 0 4px 16px rgba(201,169,110,0.35);
}
.bgl-btn-ghost {
    background: transparent;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.bgl-btn-ghost:hover {
    border-color: #9ca3af;
    color: #374151;
}

/* ---------- Loading spinner ---------- */
.bgl-loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 32px;
    color: #9ca3af;
    font-size: 14px;
}
.bgl-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #e5e7eb;
    border-top-color: #C9A96E;
    border-radius: 50%;
    animation: bglSpin 0.7s linear infinite;
}
@keyframes bglSpin {
    to { transform: rotate(360deg); }
}

/* ---------- Form messages ---------- */
.bgl-form-msg {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}
.bgl-form-msg.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.bgl-form-msg.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* ---------- Success screen ---------- */
.bgl-success-panel {
    text-align: center;
    padding: 40px 20px;
}
.bgl-success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #C9A96E, #e2c07d);
    color: #111827;
    font-size: 32px;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(201,169,110,0.35);
}
.bgl-success-title {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
}
.bgl-success-msg {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 28px;
}
.bgl-success-detail {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    margin-bottom: 28px;
    display: inline-block;
    width: 100%;
    max-width: 440px;
}
.bgl-success-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}
.bgl-success-detail-row:last-child { border-bottom: none; }
.bgl-success-detail-label { color: #9ca3af; font-weight: 600; }
.bgl-success-detail-value { color: #111827; font-weight: 700; }

/* ============================================================
   Multi-cart & Packs additions
   ============================================================ */

/* ---------- Cart bar (sticky bottom of step 1) ---------- */
.bgl-cart-bar {
    position: sticky;
    bottom: 0;
    background: #111827;
    border-top: 2px solid #C9A96E;
    border-radius: 12px 12px 0 0;
    padding: 14px 20px;
    margin-top: 28px;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
    z-index: 100;
}
.bgl-cart-bar-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.bgl-cart-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(201,169,110,0.15);
    border: 1px solid rgba(201,169,110,0.3);
    border-radius: 20px;
    padding: 5px 10px 5px 12px;
    font-size: 12px;
    color: #e5d5b8;
}
.bgl-cart-chip-remove {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0 2px;
}
.bgl-cart-chip-remove:hover { color: #ef4444; }
.bgl-cart-bar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.bgl-cart-bar-count {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 2px;
}
.bgl-cart-bar-price {
    font-size: 20px;
    font-weight: 800;
    color: #C9A96E;
}

/* ---------- Service card in-cart state ---------- */
.bgl-service-card.in-cart {
    border-color: #C9A96E;
    background: linear-gradient(135deg, #fffbf4, #fff);
}
.bgl-service-card.in-cart .bgl-service-select-btn {
    background: #C9A96E;
    color: #111827;
}

/* ---------- Pack cards grid ---------- */
.bgl-packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.bgl-pack-card {
    background: linear-gradient(135deg, #111827, #1a2436);
    border: 2px solid #2d3748;
    border-radius: 16px;
    padding: 22px 20px 18px;
    position: relative;
    transition: all 0.2s;
    overflow: hidden;
}
.bgl-pack-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #C9A96E, #e2c07d);
}
.bgl-pack-card:hover {
    border-color: #C9A96E;
    box-shadow: 0 6px 28px rgba(201,169,110,0.2);
    transform: translateY(-2px);
}
.bgl-pack-name {
    font-size: 17px;
    font-weight: 800;
    color: #C9A96E;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.bgl-pack-services-list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
}
.bgl-pack-services-list li {
    font-size: 12px;
    color: #9ca3af;
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.bgl-pack-services-list li::before {
    content: '\25B8';
    color: #C9A96E;
    font-size: 10px;
}
.bgl-pack-pricing {
    margin-bottom: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 14px;
}
.bgl-pack-original-price {
    font-size: 13px;
    color: #6b7280;
    text-decoration: line-through;
    margin-bottom: 4px;
}
.bgl-pack-price {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
}
.bgl-pack-price span {
    font-size: 14px;
    font-weight: 500;
    color: #9ca3af;
}
.bgl-pack-savings {
    display: inline-block;
    background: rgba(45,90,79,0.4);
    color: #4ade80;
    border: 1px solid rgba(74,222,128,0.2);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
}
.bgl-pack-meta {
    font-size: 11px;
    color: #6b7280;
    margin-top: 10px;
}
.bgl-pack-add-btn {
    width: 100%;
    margin-top: 14px;
    padding: 10px;
    background: rgba(201,169,110,0.15);
    color: #C9A96E;
    border: 1px solid rgba(201,169,110,0.3);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.bgl-pack-add-btn:hover {
    background: #C9A96E;
    color: #111827;
    border-color: #C9A96E;
}
.bgl-pack-card.in-cart .bgl-pack-add-btn {
    background: rgba(74,222,128,0.15);
    color: #4ade80;
    border-color: rgba(74,222,128,0.3);
}

/* ---------- Cart summary banner (step 2) ---------- */
.bgl-cart-summary-banner {
    background: linear-gradient(135deg, #111827, #1f2937);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 24px;
}
.bgl-cart-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 13px;
}
.bgl-cart-summary-item:last-child { border-bottom: none; }
.bgl-cart-summary-name { color: #C9A96E; font-weight: 600; }
.bgl-cart-summary-meta { color: #6b7280; font-size: 11px; }
.bgl-cart-summary-total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #C9A96E;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bgl-cart-summary-total-label { color: #9ca3af; font-size: 12px; font-weight: 600; }
.bgl-cart-summary-total-price { color: #C9A96E; font-size: 18px; font-weight: 800; }

/* ---------- Slot chain info ---------- */
.bgl-slot-chain-info {
    background: rgba(45,90,79,0.15);
    border: 1px solid rgba(45,90,79,0.3);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    color: #2d5a4f;
    margin-bottom: 20px;
}

/* ---------- Packs pill accent ---------- */
.bgl-pill-packs {
    border-color: rgba(201,169,110,0.3);
}
.bgl-pill-packs.active {
    background: linear-gradient(135deg, #111827, #1a2436);
    border-color: #C9A96E;
}
.bgl-preselected { animation: bglPulse 1.5s ease 3; }
@keyframes bglPulse { 0%,100%{box-shadow:0 0 0 0 rgba(201,169,110,0)} 50%{box-shadow:0 0 0 8px rgba(201,169,110,0.3)} }
