/* ================================================================
   Apexia Solutions - Accommodation Booking Portal
   Custom layer on top of Bootstrap 5.3

   Palette and typography taken from the live site's Elementor global
   kit (apexiasolutions.com):
     secondary / brand gold  #F1B520
     accent / light gold     #FECE51   (button background)
     navy                    #1A294B   (dark section bands)
     primary text            #22201F
     light background        #F4F8FC
     headings  Lora (serif)  ·  body  Mulish
   ================================================================ */

:root {
  --apx-navy:        #1a294b;
  --apx-navy-dark:   #121d36;
  --apx-navy-soft:   #2b3d64;
  --apx-gold:        #f1b520;
  --apx-gold-light:  #fece51;
  --apx-gold-pale:   #fdf3d9;
  --apx-ink:         #22201f;
  --apx-footer:      #22201f;   /* sampled from the live site footer */
  --apx-muted:       #6a6f78;
  --apx-light:       #f4f8fc;
  --apx-line:        #e2e8f0;
  --apx-radius:      6px;
  --apx-radius-sm:   4px;
  --apx-shadow:      0 2px 18px rgba(26, 41, 75, .08);

  --apx-font-head:   "Lora", Georgia, "Times New Roman", serif;
  --apx-font-body:   "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---- Bootstrap button overrides: brand gold, dark label, 3px radius ---- */
.btn {
  --bs-btn-border-radius: 3px;
  font-family: var(--apx-font-body);
  font-weight: 700;
}
.btn-primary {
  --bs-btn-color: var(--apx-ink);
  --bs-btn-bg: var(--apx-gold-light);
  --bs-btn-border-color: var(--apx-gold-light);
  --bs-btn-hover-color: var(--apx-ink);
  --bs-btn-hover-bg: var(--apx-gold);
  --bs-btn-hover-border-color: var(--apx-gold);
  --bs-btn-active-color: var(--apx-ink);
  --bs-btn-active-bg: var(--apx-gold);
  --bs-btn-active-border-color: var(--apx-gold);
  --bs-btn-disabled-color: var(--apx-ink);
  --bs-btn-disabled-bg: var(--apx-gold-light);
  --bs-btn-disabled-border-color: var(--apx-gold-light);
}
.btn-outline-primary {
  --bs-btn-color: var(--apx-navy);
  --bs-btn-border-color: var(--apx-navy);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--apx-navy);
  --bs-btn-hover-border-color: var(--apx-navy);
  --bs-btn-active-bg: var(--apx-navy-dark);
  --bs-btn-active-border-color: var(--apx-navy-dark);
}
.btn-outline-light {
  --bs-btn-hover-color: var(--apx-navy);
}

body {
  background: #eef2f7;
  color: var(--apx-ink);
  font-family: var(--apx-font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .brand strong {
  font-family: var(--apx-font-head);
  font-weight: 600;
}

a { color: var(--apx-navy); }

/* ---------------------------- Header ---------------------------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--apx-line);
  border-top: 3px solid var(--apx-gold);
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
/* The wordmark already carries the company name, so no text duplicate beside it. */
.brand-logo {
  height: 29px;
  width: auto;
  flex: 0 0 auto;
  display: block;
}
.brand-sub {
  font-size: 12px;
  line-height: 1.3;
  color: var(--apx-muted);
  padding-left: 12px;
  border-left: 1px solid var(--apx-line);
}
.brand-light .brand-sub {
  color: rgba(255, 255, 255, .6);
  border-left-color: rgba(255, 255, 255, .22);
}
.site-footer .brand-logo { height: 26px; }

@media (max-width: 400px) {
  .brand-logo { height: 24px; }
  .brand-sub { display: none; }
}

.brand strong { display: block; font-size: 16px; line-height: 1.25; }
.brand small { display: block; color: var(--apx-muted); font-size: 12px; }
.brand-light strong { color: #fff; }
.brand-light small { color: rgba(255, 255, 255, .6); }

.header-contact { font-size: 14px; color: var(--apx-muted); }
.header-contact a { color: var(--apx-navy); text-decoration: none; font-weight: 700; }
.header-contact a:hover { color: var(--apx-gold); }
.header-contact .divider { margin: 0 8px; color: var(--apx-line); }

/* ----------------------------- Hero ----------------------------- */
.hero {
  background: linear-gradient(135deg, var(--apx-navy) 0%, #16264a 55%, var(--apx-navy-dark) 100%);
  color: #fff;
  padding: 56px 0 64px;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--apx-gold);
}
.hero .eyebrow {
  display: inline-block;
  font-family: var(--apx-font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--apx-gold-light);
  border: 1px solid rgba(254, 206, 81, .4);
  border-radius: 3px;
  padding: 5px 13px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 10px;
  color: #fff;
}
.hero .lead {
  color: var(--apx-gold-light);
  font-size: 1.08rem;
  font-weight: 400;
  margin-bottom: 18px;
}
.hero-body { color: rgba(255, 255, 255, .8); font-size: .95rem; line-height: 1.75; max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.hero-points { list-style: none; margin: 0; padding: 0; }
.hero-points li {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-left: 3px solid var(--apx-gold);
  border-radius: var(--apx-radius-sm);
  padding: 13px 15px;
  margin-bottom: 10px;
  font-size: .92rem;
  color: rgba(255, 255, 255, .92);
}
.hero-points li span {
  flex: 0 0 24px; width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--apx-gold);
  color: var(--apx-ink);
  font-size: 12px; font-weight: 800;
}

/* ----------------------------- Form ----------------------------- */
.form-wrap { margin-top: -34px; padding-bottom: 56px; }

.form-card {
  border: 1px solid var(--apx-line);
  border-radius: var(--apx-radius);
  box-shadow: var(--apx-shadow);
  overflow: hidden;
}
.form-card .card-header {
  background: #fff;
  border-bottom: 1px solid var(--apx-line);
  border-top: 3px solid var(--apx-gold);
  padding: 22px 26px 18px;
}
.form-card .card-header h2 { font-size: 1.4rem; font-weight: 600; margin: 0 0 4px; color: var(--apx-navy); }
.form-card .card-header p { margin: 0; font-size: .875rem; color: var(--apx-muted); }
.form-card .card-body { padding: 8px 26px 26px; }

.form-section { border: 0; padding: 22px 0 4px; border-top: 1px dashed var(--apx-line); }
.form-section:first-of-type { border-top: 0; }
.form-section legend {
  float: none;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--apx-font-body);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--apx-navy);
  margin-bottom: 16px;
  width: auto;
}
.form-section legend .step {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--apx-gold);
  color: var(--apx-ink);
  font-size: 12px;
  letter-spacing: 0;
}

.form-label { font-size: .855rem; font-weight: 700; color: #3a4049; margin-bottom: 5px; }
.req { color: #c0392b; font-weight: 700; }

.form-control, .form-select {
  border-color: #d7dee7;
  border-radius: var(--apx-radius-sm);
  padding: .58rem .8rem;
  font-size: .925rem;
  font-family: var(--apx-font-body);
}
.form-control:focus, .form-select:focus {
  border-color: var(--apx-navy);
  box-shadow: 0 0 0 .2rem rgba(26, 41, 75, .12);
}
.form-control[readonly] { background: var(--apx-light); }
.form-text { font-size: .78rem; }

.declaration {
  background: var(--apx-light);
  border: 1px solid var(--apx-line);
  border-left: 3px solid var(--apx-gold);
  border-radius: var(--apx-radius-sm);
  padding: 15px 17px;
}
.declaration .form-check-label { font-size: .885rem; line-height: 1.6; color: #3a4049; }
.declaration .form-check-input { margin-top: .3rem; }
.declaration .form-check-input:checked {
  background-color: var(--apx-navy);
  border-color: var(--apx-navy);
}
.declaration .form-check-input:focus {
  border-color: var(--apx-navy);
  box-shadow: 0 0 0 .2rem rgba(26, 41, 75, .12);
}
/* Bootstrap hides .invalid-feedback unless it follows the invalid control;
   inside .form-check the label sits in between, so force it visible. */
.declaration .form-check-input.is-invalid ~ .invalid-feedback { display: block; }

.submit-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--apx-line);
}
.submit-row .btn-link { color: var(--apx-muted); text-decoration: none; font-size: .875rem; font-weight: 400; }
.submit-row .btn-link:hover { color: var(--apx-ink); text-decoration: underline; }

/* honeypot - visually gone, still in the DOM for bots */
/* Honeypot wrapper.
   MUST be display:none, not an off-screen position. An off-screen field is
   still rendered, so Chrome autofill and password managers fill it, which
   made real visitors look like bots and silently dropped their submissions. */
.hp-field {
  display: none !important;
}

/* --------------------------- Feedback --------------------------- */
#formAlert { border-radius: var(--apx-radius-sm); font-size: .9rem; }

.success-panel {
  background: #fff;
  border: 1px solid var(--apx-line);
  border-top: 3px solid var(--apx-gold);
  border-radius: var(--apx-radius);
  box-shadow: var(--apx-shadow);
  padding: 34px 30px;
  text-align: center;
}
.success-panel .tick {
  width: 58px; height: 58px; margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--apx-gold-pale);
  color: var(--apx-navy);
  font-size: 27px;
  font-weight: 700;
}
.success-panel h2 { font-size: 1.45rem; font-weight: 600; margin-bottom: 8px; color: var(--apx-navy); }
.success-panel .ref {
  display: inline-block;
  background: var(--apx-light);
  border: 1px dashed #c3cede;
  border-radius: var(--apx-radius-sm);
  padding: 8px 15px;
  font-size: .93rem;
}

/* ------------------------ Thank-you page ------------------------ */
.ty-ref {
  text-align: center;
  background: var(--apx-light);
  border: 1px dashed #c3cede;
  border-radius: var(--apx-radius-sm);
  padding: 20px 18px;
  margin-bottom: 8px;
}
.ty-ref span {
  display: block;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--apx-muted);
}
.ty-ref strong {
  display: block;
  font-family: var(--apx-font-head);
  font-size: 1.7rem;
  color: var(--apx-navy);
  letter-spacing: .02em;
  margin: 6px 0 4px;
}
.ty-ref small { color: var(--apx-muted); font-size: .8rem; }

.ty-heading {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--apx-navy);
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--apx-gold);
  display: inline-block;
}

.ty-table { margin-bottom: 0; font-size: .9rem; }
.ty-table th {
  width: 42%;
  font-weight: 400;
  color: var(--apx-muted);
  background: transparent;
  padding: 9px 0;
}
.ty-table td { font-weight: 700; color: var(--apx-ink); padding: 9px 0; }

.ty-steps { list-style: none; padding: 0; margin: 0; }
.ty-steps li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0;
  font-size: .92rem;
  color: #3a4049;
}
.ty-steps li span {
  flex: 0 0 24px; width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--apx-gold);
  color: var(--apx-ink);
  font-size: 12px; font-weight: 800;
}

.ty-note {
  margin: 18px 0 0;
  font-size: .9rem;
  color: #3a4049;
  line-height: 1.7;
}

.ty-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--apx-line);
}

.notice {
  background: var(--apx-gold-pale);
  border: 1px solid #f0dca6;
  border-left: 3px solid var(--apx-gold);
  border-radius: var(--apx-radius-sm);
  padding: 18px 20px;
  margin-top: 22px;
  color: #6a5518;
  font-size: .875rem;
  line-height: 1.7;
}
.notice strong { display: block; margin-bottom: 6px; color: var(--apx-ink); }
.notice a { color: #6a5518; font-weight: 700; }

/* ---------------------------- Footer ---------------------------- */
.site-footer {
  background: var(--apx-footer);
  border-top: 3px solid var(--apx-gold);
  color: rgba(255, 255, 255, .78);
  padding: 42px 0 22px;
  font-size: .875rem;
}
/* Column headings use the brand gold at full strength, as on the live site. */
.site-footer h6 {
  color: var(--apx-gold);
  font-family: var(--apx-font-head);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: none;
  margin-bottom: 14px;
}
.footer-note { margin-top: 14px; line-height: 1.75; max-width: 46ch; font-size: .84rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.footer-links a:hover { color: var(--apx-gold); text-decoration: none; }
.footer-bottom {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .8rem;
  color: rgba(255, 255, 255, .62);
}
.footer-bottom a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.footer-bottom a:hover { color: var(--apx-gold); }
/* copyright left, policy links right - matching the live site footer bar */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
}
.footer-bottom-links .sep { color: rgba(255, 255, 255, .28); margin: 0 10px; }

/* --------------------------- Responsive -------------------------- */
@media (max-width: 767.98px) {
  .hero { padding: 40px 0 52px; }
  .form-card .card-header,
  .form-card .card-body { padding-left: 18px; padding-right: 18px; }
  .header-contact { font-size: 13px; }
  .hero-actions .btn { width: 100%; }
}
