html, body { overflow-x: hidden; max-width: 100%; }
/* ================================================================
   TRIP2AYODHYA — site.css v3.0  (Production Ready)
   All form controls, modal system, typography, toasts, utilities
   ================================================================ */

/* ── FORM LABELS & INPUTS ─────────────────────────────────── */
.form-label-tour {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #1B3454;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-family: 'Lato', sans-serif;
}

.form-control-tour {
    display: block;
    width: 100%;
    padding: 9px 13px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #1a1a2e;
    background: #fafafa;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    outline: none;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.5;
}
.form-control-tour::placeholder { color: #9ca3af; }
.form-control-tour:hover { border-color: #c4c8d0; }
.form-control-tour:focus {
    border-color: #F5A623;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(245,166,35,.10);
}
select.form-control-tour {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    padding-right: 36px;
    cursor: pointer;
}
textarea.form-control-tour {
    resize: vertical;
    min-height: 72px;
    line-height: 1.6;
}

/* Form group spacing — tighter inside modals */
.fgroup { margin-bottom: 12px; }
.t-modal-body .fgroup { margin-bottom: 10px; }
.t-modal-body .row { --bs-gutter-y: 0.5rem; --bs-gutter-x: 0.75rem; }

/* Validation error text */
.field-error {
    display: none;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #dc2626;
    margin-top: 5px;
}
.field-error.show { display: flex; }
.form-control-tour.is-invalid { border-color: #dc2626; }
.form-control-tour.is-valid   { border-color: #16a34a; }

/* ── GLOBAL MODAL SYSTEM ──────────────────────────────────── */
.t-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 31, 51, .70);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
}
.t-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}
.t-modal {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(27,52,84,.25);
    width: calc(100% - 32px);
    max-width: 560px;
    max-height: 92vh;
    overflow: hidden;
    transform: translateY(28px) scale(.96);
    transition: transform .3s cubic-bezier(.34,1.2,.64,1);
    position: relative;
    display: flex;
    flex-direction: column;
    margin: auto;
}
.t-modal-overlay.open .t-modal {
    transform: translateY(0) scale(1);
}
.t-modal-lg { max-width: 740px; }
.t-modal-sm { max-width: 400px; }

.t-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px 24px 14px;
    border-bottom: 1px solid #f3f4f6;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
    border-radius: 20px 20px 0 0;
}
.t-modal-header h3,
.t-modal-header h4 {
    font-family: 'Cinzel', serif;
    color: #1B3454;
    margin: 0;
    font-size: 20px;
}
.t-modal-header .modal-sub {
    font-size: 13px;
    color: #6b7280;
    margin-top: 3px;
    font-family: 'Lato', sans-serif;
}
.t-modal-close {
    flex-shrink: 0;
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    margin-top: -2px;
    transition: all .2s;
}
.t-modal-close:hover { background: #dc2626; color: #fff; }

.t-modal-body   { padding: 16px 22px; overflow-y: auto; flex: 1; min-height: 0; }
.t-modal-footer {
    padding: 12px 22px 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid #f3f4f6;
    flex-shrink: 0;
    background: #fff;
}

/* Modal success state */
.modal-success-state {
    text-align: center;
    padding: 32px 24px;
    display: none;
}
.modal-success-state .success-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; color: #fff;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(22,163,74,.3);
}
.modal-success-state h4 {
    font-family: 'Cinzel', serif;
    color: #1B3454;
    margin-bottom: 8px;
}
.modal-success-state p { color: #6b7280; font-size: 14px; }

/* ── TOAST NOTIFICATIONS ──────────────────────────────────── */
#t-toast-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.t-toast {
    background: #0F1F33;
    color: #fff;
    border-radius: 12px;
    padding: 14px 18px;
    min-width: 270px;
    max-width: 360px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,.3);
    border-left: 4px solid #F5A623;
    pointer-events: all;
    transform: translateX(110%);
    transition: transform .35s cubic-bezier(.34,1.4,.64,1);
}
.t-toast.in        { transform: translateX(0); }
.t-toast.success   { border-left-color: #16a34a; }
.t-toast.error     { border-left-color: #dc2626; }
.t-toast.info      { border-left-color: #2563eb; }
.t-toast-ico       { font-size: 18px; flex-shrink: 0; }
.t-toast-title     { font-weight: 700; font-size: 14px; line-height: 1.3; }
.t-toast-msg       { font-size: 12.5px; color: rgba(255,255,255,.72); margin-top: 2px; }

/* ── ADDITIONAL UTILITY CLASSES ───────────────────────────── */
/* Success / error alert boxes inside pages */
.t-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14.5px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}
.t-alert-success { background: #dcfce7; color: #15803d; border-color: #86efac; }
.t-alert-error   { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
.t-alert-info    { background: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }
.t-alert-icon    { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* WhatsApp button variant */
.btn-wa {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; border-radius: 50px;
    background: #25D366; color: #fff !important;
    font-family: 'Cinzel', serif; font-size: 13px; font-weight: 700;
    text-decoration: none; border: none; cursor: pointer;
    transition: all .25s ease; letter-spacing: .05em;
}
.btn-wa:hover { background: #1da854; transform: translateY(-2px); }

/* Spin animation */
@keyframes spin-anim { to { transform: rotate(360deg); } }
.fa-spin-custom { animation: spin-anim 1s linear infinite; display: inline-block; }

/* ── BOOKING FORM SPECIFIC ────────────────────────────────── */
.booking-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(27,52,84,.12);
    padding: 32px;
}
.booking-sidebar {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(27,52,84,.08);
    padding: 24px;
    position: sticky;
    top: 90px;
}
.price-box {
    background: #FFF3D6;
    border: 1px solid rgba(245,166,35,.3);
    border-radius: 12px;
    padding: 18px;
}
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(0,0,0,.05);
    color: #6b7280;
}
.price-row:last-child { border-bottom: none; }
.price-row.total {
    font-size: 18px;
    font-weight: 800;
    color: #1B3454;
    border-top: 2px solid rgba(245,166,35,.4);
    border-bottom: none;
    padding-top: 12px;
    margin-top: 4px;
}

/* Step indicator */
.step-bar { display: flex; align-items: flex-start; margin-bottom: 32px; }
.step-item { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }
.step-item::after { content: ''; position: absolute; top: 18px; left: 50%; width: 100%; height: 2px; background: #e5e7eb; z-index: 0; transition: background .3s; }
.step-item:last-child::after { display: none; }
.step-item.done::after { background: #F5A623; }
.step-num {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #e5e7eb; color: #6b7280;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cinzel', serif; font-size: 14px; font-weight: 700;
    position: relative; z-index: 1;
    transition: all .3s;
    border: 2px solid #e5e7eb;
}
.step-item.active .step-num {
    background: #F5A623; border-color: #F5A623; color: #fff;
    box-shadow: 0 0 0 4px rgba(245,166,35,.2);
}
.step-item.done .step-num { background: #16a34a; border-color: #16a34a; color: #fff; }
.step-lbl { font-size: 10.5px; color: #9ca3af; margin-top: 7px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-align: center; }
.step-item.active .step-lbl { color: #F5A623; }
.step-item.done   .step-lbl { color: #16a34a; }

.bstep { display: none; }
.bstep.on { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* ── SECURE BADGE ─────────────────────────────────────────── */
.secure-strip {
    display: flex; align-items: center; gap: 9px;
    background: #f9fafb; border: 1px solid #e5e7eb;
    border-radius: 10px; padding: 11px 14px;
    font-size: 12.5px; color: #6b7280;
}
.secure-strip i { color: #16a34a; font-size: 15px; flex-shrink: 0; }

/* Payment method pills */
.pay-pill {
    display: inline-flex; align-items: center;
    background: #f3f4f6; border-radius: 6px;
    padding: 4px 10px; font-size: 11.5px;
    font-weight: 800; color: #555;
    letter-spacing: .03em;
}

/* Booking summary table in step 3 */
.bsummary-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bsummary-table td { padding: 9px 0; border-bottom: 1px solid #f3f4f6; vertical-align: top; }
.bsummary-table td:first-child { color: #6b7280; width: 40%; }
.bsummary-table td:last-child  { font-weight: 600; color: #1B3454; }
.bsummary-table tr:last-child td { border-bottom: none; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .booking-card    { padding: 20px; }
    .booking-sidebar { position: static; }
    .t-modal-header  { padding: 16px 18px 12px; }
    .t-modal-body    { padding: 14px 18px; }
    .t-modal-footer  { padding: 12px 18px 18px; gap: 8px; }
    /* Tighter modal on small screens so footer is always visible */
    .t-modal         { max-height: 90vh; border-radius: 16px; width: calc(100% - 24px); }
}
@media (max-width: 480px) {
    #t-toast-wrap { left: 12px; right: 12px; bottom: 12px; }
    .t-toast { min-width: unset; max-width: 100%; }
    .t-modal { border-radius: 14px; max-height: 86vh; width: calc(100% - 20px); }
    .t-modal-body { padding: 12px 14px; }
    .t-modal-footer { padding: 10px 14px 16px; }
    /* Ensure both buttons always visible — stack them */
    .t-modal-footer .btn-saffron,
    .t-modal-footer .btn-wa,
    .t-modal-footer .btn-navy { width: 100%; justify-content: center; }
}

/* Custom slim scrollbar inside modal body */
.t-modal-body::-webkit-scrollbar { width: 5px; }
.t-modal-body::-webkit-scrollbar-track { background: #f8f9fa; border-radius: 10px; }
.t-modal-body::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 10px; }
.t-modal-body::-webkit-scrollbar-thumb:hover { background: #F5A623; }
@media print {
    .t-modal-overlay, #t-toast-wrap { display: none !important; }
}
