/* ==========================================================================
   HOTEL DARSHAN - LIGHTWEIGHT HIGH-CONVERTING BOOKING STYLESHEET
   ========================================================================== */

/* 1. Hero Banner */
.darshan-bk-hero {
    position: relative !important;
    width: 100% !important;
    min-height: 40vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    background-color: #16120E !important;
    color: #FFFDF8 !important;
    padding-top: 11rem !important; /* Guaranteed navbar clearance */
    padding-bottom: 3.5rem !important;
    text-align: center !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.bk-hero-bg-wrap { position: absolute !important; inset: 0 !important; z-index: 1 !important; }
.bk-hero-bg { width: 100% !important; height: 100% !important; background-size: cover !important; background-position: center center !important; filter: brightness(0.4) !important; }
.bk-hero-overlay { position: absolute !important; inset: 0 !important; background: linear-gradient(180deg, rgba(22,18,14,0.4) 0%, rgba(22,18,14,0.85) 100%) !important; z-index: 2 !important; }

.bk-hero-container { position: relative !important; z-index: 10 !important; max-width: 900px !important; width: 100% !important; margin: 0 auto !important; padding: 0 1.5rem !important; }
.bk-breadcrumb { font-family: 'Manrope', sans-serif !important; font-size: 0.75rem !important; letter-spacing: 0.15em !important; text-transform: uppercase !important; margin-bottom: 0.85rem !important; }
.bk-breadcrumb a { color: #C79A3B !important; text-decoration: none !important; }
.bc-sep { color: rgba(255,255,255,0.4) !important; margin: 0 0.4rem !important; }
.bc-active { color: #FFFDF8 !important; }

.bk-hero-title { font-family: 'Cormorant Garamond', serif !important; font-size: clamp(2.25rem, 4vw, 3.5rem) !important; font-weight: 300 !important; margin: 0 0 0.5rem 0 !important; color: #FFFDF8 !important; }
.bk-hero-subtitle { font-family: 'Manrope', sans-serif !important; font-size: 0.95rem !important; color: rgba(247,243,236,0.85) !important; margin: 0 auto !important; max-width: 600px !important; }

/* 2. Main Layout Grid (Desktop: 65% Left / 35% Right) */
.darshan-bk-main-section { padding: 4rem 0 7rem 0; background: #F7F3EC; color: #342A22; }
.bk-main-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.bk-layout-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 2.5rem; align-items: start; }

/* 3. Left Column: Guest Form Card */
.bk-form-card { background: #FFFDF8; border: 1px solid #E4DBCF; border-radius: 24px; padding: 2.5rem 2rem; box-shadow: 0 10px 30px rgba(55,45,35,0.05); }
.card-header-bar { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; padding-bottom: 1.25rem; border-bottom: 1px solid #E4DBCF; }
.header-icon-box { width: 44px; height: 44px; border-radius: 50%; background: #F1EBE1; border: 1px solid #E4DBCF; display: flex; align-items: center; justify-content: center; color: #C79A3B; flex-shrink: 0; }
.card-title { font-family: 'Cormorant Garamond', serif; font-size: 1.85rem; font-weight: 500; margin: 0; color: #342A22; }
.card-subtitle { font-family: 'Manrope', sans-serif; font-size: 0.8rem; color: #6B625A; margin: 0.15rem 0 0 0; }

.form-section-label { font-family: 'Manrope', sans-serif; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.15em; color: #C79A3B; text-transform: uppercase; margin: 1.5rem 0 1rem 0; }
.form-row { display: flex; gap: 1.25rem; margin-bottom: 1.25rem; }

/* Modern Floating Label Inputs */
.floating-group { position: relative; flex: 1; width: 100%; }
.floating-group.full-width { flex: 1 1 100%; }

.floating-input, .floating-select, .floating-textarea {
    width: 100%;
    height: 52px;
    padding: 1.25rem 1rem 0.35rem 1rem;
    background: #F7F3EC;
    border: 1px solid #E4DBCF;
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.925rem;
    font-weight: 500;
    color: #342A22;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.floating-textarea { height: auto; padding-top: 1.5rem; resize: vertical; }
.floating-select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C79A3B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

.floating-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    color: #6B625A;
    pointer-events: none;
    transition: transform 0.2s ease, font-size 0.2s ease, color 0.2s ease, top 0.2s ease;
}

.floating-textarea ~ .floating-label { top: 1.25rem; transform: none; }

.floating-input:focus, .floating-select:focus, .floating-textarea:focus {
    border-color: #C79A3B;
    background: #FFFDF8;
    box-shadow: 0 0 0 3px rgba(199,154,59,0.12);
}

.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label,
.floating-select:focus ~ .floating-label,
.floating-select ~ .floating-label.fix-active,
.floating-textarea:focus ~ .floating-label,
.floating-textarea:not(:placeholder-shown) ~ .floating-label {
    top: 0.65rem;
    transform: none;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #C79A3B;
}

/* Coupon Row */
.coupon-apply-row { display: flex; gap: 0.75rem; margin-top: 1rem; }
.coupon-input-wrap { flex: 1; }
.coupon-btn { padding: 0 1.5rem; height: 52px; background: #342A22; color: #FFFDF8; border: none; border-radius: 12px; font-family: 'Manrope', sans-serif; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; cursor: pointer; transition: background 0.25s ease; }
.coupon-btn:hover { background: #C79A3B; }

/* Custom Checkbox */
.terms-checkbox-wrap { margin-top: 1.5rem; }
.custom-checkbox-container { display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer; user-select: none; }
.custom-checkbox-container input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkbox-checkmark { width: 20px; height: 20px; background-color: #F7F3EC; border: 1px solid #E4DBCF; border-radius: 6px; flex-shrink: 0; margin-top: 2px; transition: all 0.2s ease; position: relative; }
.custom-checkbox-container:hover input ~ .checkbox-checkmark { border-color: #C79A3B; }
.custom-checkbox-container input:checked ~ .checkbox-checkmark { background-color: #C79A3B; border-color: #C79A3B; }
.checkbox-checkmark:after { content: ""; position: absolute; display: none; left: 6px; top: 2px; width: 5px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.custom-checkbox-container input:checked ~ .checkbox-checkmark:after { display: block; }
.checkbox-text { font-family: 'Manrope', sans-serif; font-size: 0.8rem; color: #6B625A; line-height: 1.5; }
.checkbox-text a { color: #C79A3B; text-decoration: none; font-weight: 600; }

.form-error-banner { padding: 0.85rem 1rem; background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; border-radius: 10px; font-size: 0.8rem; margin-top: 1.25rem; font-weight: 500; }

/* 4. Right Column: Sticky Summary Card */
.bk-summary-card { position: sticky; top: 100px; background: #FFFDF8; border: 1px solid #E4DBCF; border-radius: 24px; overflow: hidden; box-shadow: 0 15px 35px rgba(55,45,35,0.08); }
.summary-room-media { position: relative; width: 100%; height: 180px; overflow: hidden; }
.summary-room-img { width: 100%; height: 100%; object-fit: cover; }
.summary-room-badge { position: absolute; top: 0.85rem; left: 0.85rem; background: rgba(30,24,18,0.85); color: #C79A3B; font-family: 'Manrope', sans-serif; font-size: 0.65rem; font-weight: 700; padding: 0.25rem 0.65rem; border-radius: 100px; letter-spacing: 0.1em; }

.summary-body { padding: 1.75rem 1.5rem; }
.summary-room-name { font-family: 'Cormorant Garamond', serif; font-size: 1.75rem; font-weight: 500; color: #342A22; margin: 0 0 0.25rem 0; line-height: 1.15; }
.summary-location-tag { font-family: 'Manrope', sans-serif; font-size: 0.75rem; color: #6B625A; margin: 0; }

.summary-divider { height: 1px; background: #E4DBCF; margin: 1.25rem 0; }

.summary-details-list { display: flex; flex-direction: column; gap: 0.6rem; font-family: 'Manrope', sans-serif; font-size: 0.8rem; }
.s-detail-row { display: flex; justify-content: space-between; align-items: center; }
.s-label { color: #6B625A; }
.s-val { color: #342A22; font-weight: 600; }
.s-val.highlight { color: #C79A3B; font-weight: 700; }

.summary-price-breakdown { display: flex; flex-direction: column; gap: 0.6rem; font-family: 'Manrope', sans-serif; font-size: 0.825rem; }
.price-row { display: flex; justify-content: space-between; align-items: center; }
.p-label { color: #6B625A; }
.p-val { color: #342A22; font-weight: 600; }
.text-gold { color: #C79A3B !important; font-weight: 600; }

.grand-total-row { padding-top: 0.25rem; }
.total-label { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; color: #342A22; }
.total-val-wrap { display: flex; align-items: baseline; }
.total-curr { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; color: #C79A3B; font-weight: 600; }
.total-amount { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 700; color: #342A22; }

/* Trust Perks */
.summary-trust-perks { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.5rem; background: #F7F3EC; padding: 0.85rem 1rem; border-radius: 12px; }
.perk-item { display: flex; align-items: center; gap: 0.5rem; font-family: 'Manrope', sans-serif; font-size: 0.725rem; color: #6B625A; font-weight: 500; }
.perk-item svg { stroke: #C79A3B; flex-shrink: 0; }

/* Conversion CTA Button */
.summary-payment-btn {
    width: 100%;
    padding: 1.1rem 1.5rem;
    background: #C79A3B;
    color: #FFFFFF;
    border: none;
    border-radius: 100px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 8px 25px rgba(199,154,59,0.25);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.summary-payment-btn:hover { background: #342A22; box-shadow: 0 10px 30px rgba(55,45,35,0.3); }
.summary-payment-btn .btn-arrow { transition: transform 0.25s ease; }
.summary-payment-btn:hover .btn-arrow { transform: translateX(4px); }

/* Spinner for loading state */
.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #FFF;
    animation: spin 0.8s infinite linear;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* 5. Responsive Media Queries */
@media (max-width: 1024px) {
    .bk-layout-grid { grid-template-columns: 1fr; gap: 2rem; }
    .bk-summary-card { position: static; }
}

@media (max-width: 640px) {
    .darshan-bk-hero { padding-top: 8.5rem !important; min-height: 30vh !important; }
    .form-row { flex-direction: column; gap: 1.25rem; margin-bottom: 1.25rem; }
    .bk-form-card { padding: 1.75rem 1.25rem; border-radius: 20px; }
    .coupon-apply-row { flex-direction: column; gap: 0.5rem; }
    .coupon-btn { width: 100%; }
    .summary-body { padding: 1.25rem 1rem; }
}