/* Jay Palace Hotel — Main Stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #FAF8F5;
  --bg2:          #FFFFFF;
  --surface:      rgba(107,66,38,.06);
  --border:       #E0D5CC;
  --gold:         #7B4F2E;
  --gold-light:   #9B6B46;
  --gold-bg:      rgba(123,79,46,.09);
  --gold-border:  rgba(123,79,46,.28);
  --text:         #1A0F08;
  --muted:        #7B7168;
  --muted2:       #A8A09A;
  --success:      #16a34a;
  --danger:       #dc2626;
  --warning:      #d97706;
  --radius:       16px;
  --radius-sm:    10px;
  --shadow:       0 4px 20px rgba(107,66,38,.1);
}

html { scroll-behavior: smooth; }
body { font-family: "Inter", system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── HEADER ─────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,245,.93);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex; align-items: center;
  height: 68px; gap: 32px;
}
.header-logo { font-size: 1.2rem; font-weight: 900; letter-spacing: -.02em; color: var(--gold); white-space: nowrap; }
.header-logo span { color: var(--text); font-weight: 400; }
.header-nav { display: flex; gap: 24px; margin-left: auto; }
.header-nav a { font-size: .875rem; color: var(--muted); transition: color .2s; }
.header-nav a:hover { color: var(--text); }
.btn-book-header {
  background: var(--gold); color: #fff;
  padding: 9px 22px; border-radius: 9999px;
  font-size: .8125rem; font-weight: 700;
  border: none; white-space: nowrap;
  transition: background .2s, transform .1s;
}
.btn-book-header:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 88vh;
  background: url('../assets/images/hotel-exterior.jpg') center center / cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 80px 24px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,10,4,.60) 0%,
    rgba(20,10,4,.35) 45%,
    rgba(20,10,4,.75) 100%
  );
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  color: #F0E8DC; font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 9999px; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 900; letter-spacing: -.03em; line-height: 1.1;
  margin-bottom: 18px; color: #FFFFFF;
}
.hero h1 em { font-style: normal; color: #E8C9A0; }
.hero p { font-size: 1.0625rem; color: rgba(255,255,255,.75); margin-bottom: 36px; max-width: 480px; margin-inline: auto; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold); color: #fff;
  padding: 14px 32px; border-radius: 9999px;
  font-size: .9375rem; font-weight: 800; border: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(123,79,46,.45);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 28px rgba(123,79,46,.6); }
.btn-outline {
  background: transparent; color: #fff;
  padding: 12px 30px; border-radius: 9999px;
  font-size: .9375rem; font-weight: 600;
  border: 2px solid rgba(255,255,255,.45);
  transition: border-color .2s, background .2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,.8); background: rgba(255,255,255,.08); }

/* ── FEATURES STRIP ──────────────────────────────────────── */
.features-strip {
  background: var(--gold);
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 28px; padding: 16px 24px;
}
.feature-item { font-size: .8125rem; font-weight: 700; color: #fff; }

/* ── SECTIONS ────────────────────────────────────────────── */
.section { padding: 80px 24px; max-width: 1200px; margin: 0 auto; }
.section-alt { background: #F0EAE3; }
.section-inner { padding: 80px 24px; max-width: 1200px; margin: 0 auto; }

.section-label {
  text-align: center;
  font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800; text-align: center; margin-bottom: 10px; color: var(--text);
}
.section-sub { text-align: center; color: var(--muted); margin-bottom: 52px; }

/* ── ROOMS ───────────────────────────────────────────────── */
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.room-card {
  background: #FFFFFF; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 12px rgba(107,66,38,.07);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.room-card:hover { transform: translateY(-6px); border-color: var(--gold-border); box-shadow: 0 12px 40px rgba(107,66,38,.18); }
.room-thumb {
  height: 170px; display: flex;
  align-items: center; justify-content: center;
  font-size: 3.5rem; position: relative;
}
.room-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--gold); color: #fff;
  font-size: .65rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 9999px;
}
.room-body { padding: 22px; }
.room-name { font-size: 1.0625rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.room-meta { display: flex; gap: 12px; margin-bottom: 10px; }
.room-meta span { font-size: .75rem; color: var(--muted); background: var(--surface); padding: 3px 10px; border-radius: 9999px; border: 1px solid var(--border); }
.room-desc { font-size: .85rem; color: var(--muted); margin-bottom: 18px; line-height: 1.5; }
.room-price { font-size: 1.375rem; font-weight: 900; color: var(--gold); margin-bottom: 14px; }
.room-price small { font-size: .75rem; font-weight: 400; color: var(--muted); }
.room-amenities { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.room-amenities span { font-size: .7rem; color: var(--muted); background: var(--surface); border: 1px solid var(--border); padding: 3px 8px; border-radius: 9999px; }
.btn-book-room {
  width: 100%; background: var(--gold); color: #fff;
  border: none; padding: 11px; border-radius: 9999px;
  font-weight: 800; font-size: .875rem;
  transition: background .2s, transform .1s;
}
.btn-book-room:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ── AMENITIES ───────────────────────────────────────────── */
.amenities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.amenity-card {
  text-align: center; padding: 28px 16px;
  background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(107,66,38,.06);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.amenity-card:hover { border-color: var(--gold-border); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(107,66,38,.12); }
.amenity-icon { font-size: 2.2rem; margin-bottom: 10px; }
.amenity-name { font-size: .9375rem; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.amenity-desc { font-size: .8rem; color: var(--muted); }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.contact-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.contact-icon { font-size: 1.4rem; margin-top: 2px; flex-shrink: 0; }
.contact-detail strong { display: block; font-size: .875rem; font-weight: 700; margin-bottom: 2px; color: var(--text); }
.contact-detail span { font-size: .875rem; color: var(--muted); }
.contact-detail a { color: var(--gold); }

/* ── BOOKING MODAL ───────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(26,15,8,.65); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #FFFFFF; border: 1px solid var(--border);
  border-radius: 20px; width: 100%; max-width: 560px;
  max-height: 92vh; overflow-y: auto;
  padding: 32px; box-shadow: 0 24px 64px rgba(26,15,8,.22);
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { opacity:0; transform: translateY(24px); } to { opacity:1; transform: translateY(0); } }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.modal-close {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); width: 36px; height: 36px;
  border-radius: 9999px; font-size: 1.25rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: color .2s, border-color .2s;
}
.modal-close:hover { color: var(--text); border-color: var(--gold-border); }
.modal-room-selected {
  background: var(--gold-bg); border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm); padding: 14px 18px;
  display: flex; align-items: center; gap: 14px; margin-bottom: 24px;
}
.modal-room-selected .room-emoji { font-size: 2rem; }
.modal-room-selected .room-info strong { display: block; font-weight: 700; font-size: .9375rem; color: var(--text); }
.modal-room-selected .room-info span { color: var(--gold); font-size: .875rem; font-weight: 700; }

/* Form elements */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 14px;
  color: var(--text); font-size: .9rem;
  transition: border-color .2s, background .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted2); }
.form-group select option { background: #FAF8F5; color: var(--text); }
.form-group textarea { resize: vertical; min-height: 80px; }

.price-summary {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 20px;
}
.price-row { display: flex; justify-content: space-between; font-size: .875rem; margin-bottom: 8px; color: var(--text); }
.price-row:last-child { margin-bottom: 0; padding-top: 10px; border-top: 1px solid var(--border); }
.price-row.total { font-size: 1rem; font-weight: 800; }
.price-row.total span:last-child { color: var(--gold); }

.btn-submit {
  width: 100%; background: var(--gold); color: #fff;
  border: none; padding: 14px; border-radius: 9999px;
  font-size: 1rem; font-weight: 800;
  transition: background .2s, transform .1s;
}
.btn-submit:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.form-note { font-size: .75rem; color: var(--muted); text-align: center; margin-top: 12px; }

/* Success state */
.booking-success { display: none; text-align: center; padding: 16px 0; }
.booking-success .success-icon { font-size: 3.5rem; margin-bottom: 16px; }
.booking-success h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; color: var(--text); }
.booking-success p { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.booking-code { display: inline-block; margin-top: 14px; background: var(--gold-bg); border: 1px solid var(--gold-border); padding: 8px 20px; border-radius: 9999px; font-weight: 700; font-size: .875rem; color: var(--gold); letter-spacing: .05em; }

/* ── PAYMENT STEP ────────────────────────────────────────── */
.pay-amount-box {
  background: var(--gold-bg); border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm); padding: 16px 18px;
  text-align: center; margin-bottom: 20px;
}
.pay-amount-box .pay-label { font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.pay-amount-box .pay-total { font-size: 2rem; font-weight: 900; color: var(--gold); }
.pay-amount-box .pay-sub   { font-size: .8rem; color: var(--muted); margin-top: 2px; }

.pay-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.pay-option {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg); border: 2px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 18px;
  cursor: pointer; transition: border-color .2s, background .2s; text-align: left;
}
.pay-option:hover { border-color: var(--gold); background: var(--gold-bg); }
.pay-option .pay-icon { font-size: 1.8rem; flex-shrink: 0; }
.pay-option .pay-info strong { display: block; font-size: .9375rem; font-weight: 700; margin-bottom: 2px; color: var(--text); }
.pay-option .pay-info span  { font-size: .78rem; color: var(--muted); }
.pay-option .pay-arrow { margin-left: auto; color: var(--muted); font-size: 1.1rem; }
.pay-option.razorpay:hover { border-color: #2E86C1; background: rgba(46,134,193,.05); }
.pay-option.upi:hover      { border-color: #5a2d82; background: rgba(90,45,130,.04); }
.pay-option.cash:hover     { border-color: var(--success); background: rgba(22,163,74,.05); }

/* UPI QR step */
.upi-box { text-align: center; padding: 8px 0; }

/* Timer */
.upi-timer-wrap { margin-bottom: 16px; }
.upi-timer { position: relative; display: inline-block; width: 68px; height: 68px; }
.upi-timer svg { width: 68px; height: 68px; }
.upi-timer .timer-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: .82rem; font-weight: 900; color: var(--text); white-space: nowrap; }
.timer-label { font-size: .73rem; color: var(--muted); margin-top: 5px; }
.timer-warn .timer-text { color: var(--warning); }
.timer-danger .timer-text { color: var(--danger); }

/* Amount + UPI ID */
.upi-amount-row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.upi-amount-row .upi-amt { font-size: 1.6rem; font-weight: 900; color: var(--gold); }
.upi-amount-row .upi-to { font-size: .8rem; color: var(--muted); }
.upi-amount-row .upi-id { font-size: .85rem; font-weight: 700; color: var(--gold); background: var(--gold-bg); border: 1px solid var(--gold-border); padding: 3px 12px; border-radius: 9999px; }

/* UPI App buttons */
.upi-apps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.upi-app-btn { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px; border-radius: 12px; border: 1.5px solid var(--border); background: #fff; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.upi-app-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.upi-app-btn .app-logo { width: 36px; height: 36px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-size: .95rem; font-weight: 900; color: #fff; }
.upi-app-btn .app-name { font-size: .65rem; font-weight: 700; color: var(--text); }
.upi-app-btn.gpay    .app-logo { background: #4285F4; }
.upi-app-btn.phonepe .app-logo { background: #5f259f; }
.upi-app-btn.paytm   .app-logo { background: #00B9F1; }
.upi-app-btn.bhim    .app-logo { background: #00529C; }

/* OR divider */
.upi-or { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-size: .73rem; color: var(--muted); }
.upi-or::before, .upi-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* QR */
.upi-qr-wrap { background: #fff; border-radius: 12px; padding: 10px; display: inline-block; margin-bottom: 12px; border: 2px solid var(--border); }
.upi-qr-wrap img { display: block; width: 160px; height: 160px; }

/* UTR input */
.utr-input-section { margin-top: 14px; }
.utr-hint { font-size: .75rem; color: var(--muted); margin-bottom: 8px; background: var(--surface); border-radius: 8px; padding: 8px 12px; text-align: left; line-height: 1.5; }
.utr-hint strong { color: var(--gold); }
#utrInput { width: 100%; background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px; padding: 11px 14px; color: var(--text); font-size: .9rem; margin-bottom: 10px; font-family: inherit; }
#utrInput:focus { outline: none; border-color: var(--gold); }

/* Expired state */
.upi-expired { background: rgba(220,38,38,.07); border: 1.5px solid rgba(220,38,38,.3); border-radius: 10px; padding: 14px; color: var(--danger); font-size: .875rem; font-weight: 600; margin-bottom: 12px; }

.btn-paid { width: 100%; background: var(--success); color: #fff; border: none; padding: 13px; border-radius: 9999px; font-size: .9375rem; font-weight: 800; margin-bottom: 10px; }
.btn-paid:disabled { opacity: .4; cursor: not-allowed; }
.btn-back { width: 100%; background: transparent; color: var(--muted); border: 1px solid var(--border); padding: 10px; border-radius: 9999px; font-size: .875rem; }

/* ── WHATSAPP FLOAT ──────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  background: #25d366; color: #fff;
  width: 56px; height: 56px; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s; text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.6); }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: #2A1208; border-top: 1px solid rgba(255,255,255,.06);
  padding: 40px 24px; text-align: center;
}
.footer-logo { font-size: 1.2rem; font-weight: 900; color: #E8C9A0; margin-bottom: 8px; }
.footer-tagline { font-size: .875rem; color: rgba(255,255,255,.45); margin-bottom: 20px; }
.footer-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.footer-links a { font-size: .8125rem; color: rgba(255,255,255,.45); transition: color .2s; }
.footer-links a:hover { color: #E8C9A0; }
.footer-credit { font-size: .75rem; color: rgba(255,255,255,.25); }
.footer-credit a { color: #E8C9A0; }

/* ── TOAST ───────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 96px; right: 24px; z-index: 500;
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px;
  font-size: .875rem; max-width: 300px; color: var(--text);
  box-shadow: 0 8px 32px rgba(107,66,38,.15); opacity: 0;
  transform: translateY(10px); transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { border-color: rgba(220,38,38,.4); color: var(--danger); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header { padding: 0 16px; }
  .header-nav { display: none; }
  .hero { min-height: 75vh; }
  .rooms-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .modal { padding: 24px 18px; }
  .section { padding: 56px 16px; }
}
