/* ============================================================
   TEMPLATE-BOOKING-SECTION.CSS — Samora Ceylon
   v8.0 — Emerald Daylight redesign, emerald and metallic gold,
   matched to template-why-book-with-us.css v11.0.
   Class prefix: bkg-. All values reference css/main.css tokens.
   Form controls are styled inside .bkg-form-card only, so the
   site-wide .form-control / .form-label rules elsewhere are untouched.
============================================================ */

.bkg-section {
  position: relative;
  background: var(--bg-primary);
  padding: var(--spacing-24) 0;
  overflow: hidden;
}
.bkg-section::before {
  content: ""; position: absolute; bottom: -12%; left: -8%; width: 44rem; height: 44rem;
  background: radial-gradient(circle, var(--color-gold-glow-sm), transparent 70%);
  pointer-events: none; opacity: .5;
}

/* ---------- One card, two panels ---------- */
.bkg-shell {
  position: relative;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid rgba(var(--er-gold-bright-rgb), .5);
  box-shadow: 0 24px 60px rgba(var(--er-scrim-rgb), .18);
  background: var(--er-white);
}

/* ---------- Left: emerald info panel ---------- */
.bkg-info {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--gradient-emerald-rich);
  color: #FFFFFF;
  min-width: 0;
}
.bkg-info::after {
  content: ""; position: absolute; top: 30%; right: -30%; width: 80%; height: 70%;
  background: radial-gradient(circle, rgba(var(--er-gold-bright-rgb), .14), transparent 65%);
  pointer-events: none;
}
.bkg-info__photo {
  position: relative; aspect-ratio: 16 / 8; overflow: hidden; flex: none;
  background: var(--er-emerald-deep) url("../images/why-us/03-staff-reservations-agent.webp") center 30% / cover no-repeat;
  transition: background-size 1.2s cubic-bezier(.16,1,.3,1);
}
.bkg-info__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(var(--er-scrim-rgb), .95) 0%, rgba(var(--er-scrim-rgb), .35) 45%, rgba(var(--er-scrim-rgb), 0) 75%);
}
.bkg-info__photo::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 2;
  background: var(--gradient-gold-metal); opacity: .8;
}
.bkg-info__body { position: relative; z-index: 1; padding: var(--spacing-6) var(--spacing-10) var(--spacing-10); flex: 1; display: flex; flex-direction: column; }

.bkg-eyebrow {
  display: inline-flex; align-items: center; gap: var(--spacing-2);
  font-family: var(--font-label); font-size: var(--text-xs); font-weight: var(--font-weight-semibold);
  letter-spacing: var(--ls-widest); text-transform: uppercase;
  color: var(--er-gold-soft);
  margin: 0 0 var(--spacing-3);
}
.bkg-eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--er-gold-bright); }
.bkg-heading {
  font-family: var(--font-display); font-weight: var(--font-weight-normal);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.12;
  color: #FFFFFF; margin: 0 0 var(--spacing-4); text-wrap: balance;
}
.bkg-heading em {
  font-style: italic; font-family: var(--font-elegant); font-weight: var(--font-weight-medium);
  background: var(--gradient-gold-metal); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.bkg-desc { font-family: var(--font-primary); font-size: var(--text-base); line-height: 1.75; color: rgba(255, 255, 255, .86); margin: 0 0 var(--spacing-5); max-width: 34rem; }

.bkg-highlights { list-style: none; margin: 0 0 var(--spacing-6); padding: 0; display: flex; flex-direction: column; gap: var(--spacing-2-5, 10px); }
.bkg-highlights li { display: flex; align-items: center; gap: var(--spacing-3); font-family: var(--font-primary); font-size: .93rem; color: rgba(255, 255, 255, .92); }
.bkg-highlights li i {
  width: 28px; height: 28px; flex: none; border-radius: var(--radius-full);
  display: inline-flex; align-items: center; justify-content: center; font-size: .75rem;
  color: var(--er-gold-bright); border: 1px solid rgba(var(--er-gold-bright-rgb), .45); background: rgba(255, 255, 255, .04);
}

.bkg-contact-row { display: grid; grid-template-columns: 1fr; gap: var(--spacing-2-5, 10px); margin: 0 0 var(--spacing-6); }
.bkg-contact-item {
  display: flex; align-items: center; gap: var(--spacing-3);
  padding: 12px 16px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(var(--er-gold-bright-rgb), .3);
  text-decoration: none; color: inherit;
  transition: transform 350ms cubic-bezier(.16,1,.3,1), border-color 300ms ease, background 300ms ease;
}
.bkg-contact-item:hover, .bkg-contact-item:focus-visible {
  transform: translateX(4px); background: rgba(255, 255, 255, .09);
  border-color: rgba(var(--er-gold-bright-rgb), .7); outline: none;
}
.bkg-contact-item i {
  width: 38px; height: 38px; flex: none; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  background: var(--gradient-gold-metal); color: var(--er-emerald-night);
  box-shadow: 0 0 0 3px rgba(var(--er-gold-bright-rgb), .15);
}
.bkg-contact-item span { display: flex; flex-direction: column; min-width: 0; }
.bkg-contact-item small { font-family: var(--font-label); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--er-gold-soft); }
.bkg-contact-item strong { font-family: var(--font-primary); font-weight: var(--font-weight-semibold); font-size: .93rem; color: #FFFFFF; overflow-wrap: anywhere; }

.bkg-full-form-link {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: var(--spacing-2);
  font-family: var(--font-primary); font-size: .86rem; font-weight: var(--font-weight-semibold);
  color: var(--er-gold-bright); text-decoration: none;
  border-bottom: 1px solid rgba(var(--er-gold-bright-rgb), .4); padding-bottom: 2px;
  transition: color 300ms ease, border-color 300ms ease;
}
.bkg-full-form-link i { font-size: .75rem; transition: transform .25s ease; }
.bkg-full-form-link:hover { color: var(--er-gold-soft); border-color: var(--er-gold-soft); }
.bkg-full-form-link:hover i { transform: translateX(3px); }

/* ---------- Right: form panel ---------- */
.bkg-form-card { position: relative; padding: var(--spacing-10); min-width: 0; background: var(--er-white); }
.bkg-form-card::before { content: ""; position: absolute; top: 0; left: var(--spacing-10); right: var(--spacing-10); height: 2px; background: var(--gradient-gold-metal); opacity: .7; }

.bkg-form-head { display: flex; justify-content: space-between; align-items: center; gap: var(--spacing-3); flex-wrap: wrap; margin-bottom: var(--spacing-6); }
.bkg-form-kicker {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: var(--font-weight-medium);
  color: var(--er-emerald); line-height: 1.1;
}
.bkg-form-time {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-primary); font-size: .78rem; color: var(--er-gold-burnished);
  background: var(--er-pearl); border: 1px solid var(--er-gold-line); border-radius: var(--radius-full);
  padding: 5px 12px;
}

.bkg-form-alert { margin-bottom: var(--spacing-5); }
.bkg-form-card .bkg-form-alert.alert {
  border-radius: var(--radius-lg); padding: 14px 16px;
  font-family: var(--font-primary); font-size: .9rem; line-height: 1.55;
}
.bkg-form-card .bkg-form-alert.alert-success { background: var(--er-emerald-mist); border: 1px solid rgba(var(--er-emerald-rgb), .3); color: var(--er-emerald); }
.bkg-form-card .bkg-form-alert.alert-danger { border-radius: var(--radius-lg); }

.bkg-step { border: 0; margin: 0 0 var(--spacing-6); padding: 0; min-width: 0; }
.bkg-step__title {
  display: flex; align-items: center; gap: var(--spacing-3);
  width: 100%; float: none; padding: 0 0 var(--spacing-3); margin: 0 0 var(--spacing-4);
  border-bottom: 1px solid var(--border-primary);
  font-family: var(--font-label); font-size: .78rem; font-weight: var(--font-weight-semibold);
  letter-spacing: .2em; text-transform: uppercase; color: var(--er-emerald);
}
.bkg-step__num {
  width: 28px; height: 28px; flex: none; border-radius: var(--radius-full);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1rem; letter-spacing: 0;
  background: var(--gradient-gold-metal); color: var(--er-emerald-night);
}

.bkg-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-4); }
.bkg-field { margin-bottom: var(--spacing-4); min-width: 0; }
.bkg-step > .bkg-field:last-child { margin-bottom: 0; }

.bkg-form-card .form-label {
  display: block; margin-bottom: 6px;
  font-family: var(--font-primary); font-size: .76rem; font-weight: var(--font-weight-semibold);
  letter-spacing: .06em; text-transform: uppercase; color: var(--er-ink);
}
.bkg-form-card .form-label.required::after { content: "*"; color: var(--er-gold-antique); margin-left: 4px; }
.bkg-form-card .form-control {
  width: 100%;
  font-family: var(--font-primary); font-size: .95rem; color: var(--er-ink);
  background-color: var(--er-white);
  border: 1px solid var(--border-primary);
  border-radius: 10px;
  padding: 11px 14px;
  box-shadow: none;
  transition: border-color 250ms ease, box-shadow 250ms ease;
}
.bkg-form-card .form-control::placeholder { color: rgba(var(--er-emerald-rgb), .38); }
.bkg-form-card .form-control:hover { border-color: var(--er-gold-line); }
.bkg-form-card .form-control:focus {
  outline: none; border-color: var(--er-emerald);
  box-shadow: 0 0 0 3px rgba(var(--er-gold-bright-rgb), .28);
}
.bkg-form-card .form-select { padding-right: 38px; }
.bkg-form-card textarea.form-control { resize: vertical; min-height: 96px; }

.bkg-submit {
  position: relative; overflow: hidden;
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: var(--spacing-2);
  margin-top: var(--spacing-2);
  padding: 15px 24px; border: 0; border-radius: var(--radius-full);
  background: var(--gradient-gold-metal); color: var(--er-emerald-night);
  font-family: var(--font-primary); font-size: 1rem; font-weight: var(--font-weight-bold); letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(var(--er-gold-bright-rgb), .35);
  transition: transform 300ms ease, box-shadow 300ms ease;
}
.bkg-submit::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform 700ms ease;
}
.bkg-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(var(--er-gold-bright-rgb), .45); }
.bkg-submit:hover::after { transform: translateX(100%); }
.bkg-submit:focus-visible { outline: 2px solid var(--er-emerald); outline-offset: 3px; }
.bkg-submit:disabled { cursor: default; transform: none; background: var(--gradient-emerald-rich); color: var(--er-gold-soft); box-shadow: none; }

.bkg-form-note { text-align: center; font-family: var(--font-primary); font-size: .8rem; color: var(--text-muted); margin: var(--spacing-3) 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .bkg-info__body { padding: var(--spacing-6) var(--spacing-8) var(--spacing-8); }
  .bkg-form-card { padding: var(--spacing-8); }
  .bkg-form-card::before { left: var(--spacing-8); right: var(--spacing-8); }
}
@media (max-width: 992px) {
  .bkg-shell { grid-template-columns: 1fr; }
  .bkg-info__photo { aspect-ratio: 16 / 7; }
  .bkg-contact-row { grid-template-columns: repeat(3, 1fr); }
  .bkg-full-form-link { margin-top: 0; }
}
@media (max-width: 768px) {
  .bkg-section { padding: var(--spacing-16) 0; }
  .bkg-contact-row { grid-template-columns: 1fr; }
  .bkg-field-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 480px) {
  .bkg-info__body { padding: var(--spacing-5) var(--spacing-5) var(--spacing-6); }
  .bkg-form-card { padding: var(--spacing-6) var(--spacing-5); }
  .bkg-form-card::before { left: var(--spacing-5); right: var(--spacing-5); }
  .bkg-shell { border-radius: var(--radius-xl, 16px); }
}
@media (prefers-reduced-motion: reduce) {
  .bkg-info__photo, .bkg-contact-item, .bkg-submit, .bkg-submit::after { transition: none !important; }
}
