@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Lato:wght@300;400;700&display=swap");
/* Aldenham One: /enquire page (Enquire + Book a school tour). Mobile first.
   Aldenham brand guidelines: primary colours black #1D1D1B, white, School & Lion gold #BC7F23 and Prep & Nursery blue
   #004C8D (with their 80/60/40 % tints); secondary Crest #E9A640, Lion's Tongue #9E2A28, Helm #5D7785.
   Type: Adobe Garamond Pro for titles (EB Garamond on the web), Gill Sans for subtitles and body (Lato where Gill Sans is
   not installed: Windows, Android). Arabic pages keep the site's Arabic font (neither brand face has Arabic). */
.alh-enq, .alh-sheet { --navy: #004C8D; --navy-80: #3370A4; --navy-60: #6694BB; --navy-40: #99B7D1; --navy-50: #E6EEF6;
  --gold: #BC7F23; --gold-60: #D7B27B; --gold-40: #E4CCA7; --gold-20: #F2E5D3; --crest: #E9A640; --red: #9E2A28; --helm: #5D7785;
  --ink: #1D1D1B; --muted: #5D7785; --line: #E4DCCF; --bg: #F7F4EF; --radius: 14px;
  --serif: "Adobe Garamond Pro", "EB Garamond", Garamond, Georgia, serif;
  --sans: "Gill Sans", "Gill Sans MT", "Gill Sans Nova", Lato, "Segoe UI", sans-serif; }
.alh-enq, .alh-sheet { font-family: var(--sans); }
.alh-enq-hero h1, .alh-enq-section h2, .alh-enq-success h2, .alh-sheet-head h2, .alh-community h3 { font-family: var(--serif); }
.o_rtl .alh-enq, .o_rtl .alh-sheet, .o_rtl .alh-enq-hero h1, .o_rtl .alh-enq-section h2, .o_rtl .alh-enq-success h2,
.o_rtl .alh-sheet-head h2, .o_rtl .alh-community h3 { font-family: inherit; }
.alh-enq { background: var(--bg); color: var(--ink); padding: 0 0 56px; }
.alh-enq * { box-sizing: border-box; }
.alh-enq-hero { background: linear-gradient(135deg, #004C8D 0%, #003566 100%); color: #fff; text-align: center;
  padding: 40px 16px 88px; border-bottom: 4px solid var(--gold); }
.alh-enq-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 2.9rem); margin: 0 0 8px; font-weight: 500; letter-spacing: .01em; }
.alh-enq-hero p { color: rgba(255,255,255,.88); margin: 0 auto; max-width: 560px; font-size: 1.05rem; font-weight: 300; }
.alh-enq-card { max-width: 760px; margin: -60px 12px 0; background: #fff; border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 40, 75, .12); padding: 20px; position: relative; }
@media (min-width: 768px) { .alh-enq-card { padding: 32px 40px; margin: -60px auto 0; } }

/* Mode switch */
.alh-enq-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--navy-50); border-radius: 12px;
  padding: 4px; gap: 4px; margin-bottom: 22px; }
.alh-enq-tabs button { border: 0; background: transparent; border-radius: 9px; padding: 12px 8px; font-weight: 600;
  color: var(--navy); font-size: 0.98rem; cursor: pointer; display: flex; gap: 8px; align-items: center; justify-content: center; }
.alh-enq-tabs button[aria-selected="true"] { background: #fff; box-shadow: 0 2px 8px rgba(0, 76, 141, .15); }
.alh-enq-tabs .fa { color: var(--gold); }

/* Sections and fields */
.alh-enq-section { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.alh-enq-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.alh-enq-section h2 { font-size: 1.3rem; font-weight: 600; color: var(--navy); margin: 0 0 12px;
  display: flex; align-items: center; gap: 8px; }
.alh-enq-section h2 .fa { color: var(--gold); }
.alh-enq-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .alh-enq-grid.alh-two { grid-template-columns: 1fr 1fr; } }
.alh-enq-field label.alh-l, .alh-enq-field .alh-l { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.alh-enq-field .req { color: var(--red); margin-left: 2px; }
.alh-enq-field .opt { color: var(--muted); font-weight: 400; font-size: 0.85em; margin-left: 4px; }
.alh-enq input[type=text], .alh-enq input[type=email], .alh-enq input[type=tel], .alh-enq input[type=date],
.alh-enq select, .alh-enq textarea { width: 100%; min-height: 48px; border: 1px solid #cfcac0; border-radius: 10px;
  padding: 10px 12px; font-size: 1rem; background: #fff; color: var(--ink); }
.alh-enq textarea { min-height: 110px; resize: vertical; }
.alh-enq input:focus, .alh-enq select:focus, .alh-enq textarea:focus { outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0, 76, 141, .15); }
.alh-enq .iti { width: 100%; }
.alh-enq .alh-err { color: var(--red); font-size: 0.85rem; margin-top: 5px; }

/* Pills (radio buttons) and chips */
.alh-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.alh-pills label { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 46px;
  padding: 8px 16px; border: 1px solid #cfcac0; border-radius: 999px; cursor: pointer; font-weight: 500; margin: 0; background: #fff; }
/* The (invisible) radio covers the whole pill/chip/card, so a tap anywhere on it selects it. */
.alh-pills label, .alh-chips label, .alh-tours label { position: relative; }
.alh-pills input, .alh-chips input, .alh-tours input { position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.alh-pills label:has(input:checked), .alh-chips label:has(input:checked), .alh-tours label:has(input:checked) {
  border-color: var(--navy); background: var(--navy-50); box-shadow: 0 0 0 1px var(--navy); color: var(--navy); }
.alh-pills label:has(input:focus-visible), .alh-chips label:has(input:focus-visible), .alh-tours label:has(input:focus-visible) {
  outline: 2px solid var(--gold); outline-offset: 2px; }
.alh-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .alh-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.alh-chips label { display: flex; align-items: center; gap: 8px; border: 1px solid #cfcac0; border-radius: 10px;
  padding: 9px 10px; cursor: pointer; margin: 0; font-size: 0.86rem; line-height: 1.2; min-height: 48px; background: #fff; }
.alh-chips .fa { color: var(--navy); width: 18px; text-align: center; flex-shrink: 0; }

/* Tour dates: horizontal carousel (swipe on phones, arrows on larger screens) */
.alh-tours-wrap { position: relative; }
.alh-tours { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 2px;
  padding: 3px 2px 10px; margin: 0 -2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain; }
.alh-tours::-webkit-scrollbar { display: none; }
.alh-tours label { flex: 0 0 auto; width: 148px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px;
  align-items: flex-start; border: 1px solid #cfcac0; border-radius: 14px; padding: 12px; cursor: pointer; margin: 0; background: #fff; }
.alh-tours .cal { width: 52px; text-align: center; border-radius: 10px; background: var(--navy); color: #fff; padding: 6px 0; line-height: 1.1; }
.alh-tours label:has(input:checked) .cal { background: var(--gold); color: #1d1d1b; }
.alh-tours .cal b { display: block; font-size: 1.35rem; }
.alh-tours .cal small { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.alh-tours .info { display: flex; flex-direction: column; line-height: 1.3; }
.alh-tours .wd { font-weight: 700; }
.alh-tours .tm { font-weight: 500; }
.alh-tours .sub { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.alh-tours-nav { position: absolute; top: calc(50% - 22px); width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(0, 40, 75, .18); z-index: 2; cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.alh-tours-nav.prev { left: -14px; } .alh-tours-nav.next { right: -14px; }
.alh-tours-nav[disabled] { opacity: 0; pointer-events: none; }
@media (hover: none) { .alh-tours-nav { display: none !important; } }
.alh-tours-hint { color: var(--muted); font-size: .8rem; margin: 2px 0 0; }
@media (hover: hover) { .alh-tours-hint { display: none; } }
.alh-enq-empty { background: var(--navy-50); border-radius: 12px; padding: 14px; color: var(--navy); }

/* Children */
.alh-child { margin-top: 12px; }
.alh-provisional { margin-top: 6px; font-size: .86rem; color: var(--navy); background: var(--navy-50); border-radius: 8px; padding: 7px 10px; }

/* Submit, status, success */
.alh-enq-submit { width: 100%; margin-top: 24px; min-height: 54px; border: 0; border-radius: 12px; background: var(--gold);
  color: var(--ink); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; }
.alh-enq-submit:hover { filter: brightness(.96); }
.alh-enq-submit[disabled] { opacity: .65; cursor: progress; }
.alh-enq-note { color: var(--muted); font-size: .82rem; text-align: center; margin-top: 10px; }
.alh-enq-alert { background: #F5E3E2; color: var(--red); border-radius: 10px; padding: 12px 14px; margin-top: 16px; }
.alh-enq-success { text-align: center; padding: 18px 4px; }
.alh-enq-success .fa { font-size: 56px; color: var(--gold); }
.alh-enq-success h2 { color: var(--navy); margin: 12px 0 6px; font-size: 1.8rem; font-weight: 500; }
.alh-enq-success p { color: var(--muted); }
.alh-enq [hidden] { display: none !important; }

/* Quick links (tour mode) */
.alh-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
.alh-quick button { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 4px; min-height: 64px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
  color: var(--navy); font-size: .8rem; font-weight: 600; line-height: 1.15; }
.alh-quick button .fa { color: var(--gold); font-size: 1.25rem; }
.alh-quick button:hover { border-color: var(--navy); }

/* Expanded view: bottom sheet on phones, centred panel on larger screens */
.alh-sheet { position: fixed; inset: 0; z-index: 1060; display: flex; align-items: flex-end; justify-content: center; color: var(--ink); }
.alh-sheet[hidden] { display: none !important; }
.alh-sheet-backdrop { position: absolute; inset: 0; background: rgba(29, 29, 27, .55); }
.alh-sheet-panel { position: relative; background: #fff; width: 100%; max-height: 88vh; border-radius: 18px 18px 0 0;
  display: flex; flex-direction: column; animation: alh-up .22s ease-out; }
@media (min-width: 768px) { .alh-sheet { align-items: center; } .alh-sheet-panel { max-width: 760px; border-radius: 18px; max-height: 84vh; } }
@keyframes alh-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .alh-sheet-panel { animation: none; } }
.alh-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.alh-sheet-head h2 { margin: 0; font-size: 1.4rem; color: var(--navy); font-weight: 600; }
.alh-sheet-close { border: 0; background: var(--navy-50); color: var(--navy); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; flex-shrink: 0; }
.alh-sheet-body { overflow: auto; padding: 16px 18px 24px; -webkit-overflow-scrolling: touch; font-size: .95rem; }
.alh-sheet-body p { margin: 0 0 12px; }
.alh-sheet-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy); margin-top: 6px; }
.alh-sheet-loading { color: var(--muted); padding: 24px 0; text-align: center; }
.alh-dl { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px;
  color: var(--navy); font-weight: 600; text-decoration: none; }
.alh-dl .fa { color: var(--gold); font-size: 1.4rem; }
.alh-table-scroll { overflow-x: auto; margin: 0 -18px 12px; padding: 0 18px; }
.alh-table { border-collapse: collapse; width: 100%; font-size: .86rem; }
.alh-table th, .alh-table td { border: 1px solid var(--line); padding: 7px 8px; text-align: center; white-space: nowrap; }
.alh-table th { background: var(--navy); color: #fff; font-weight: 600; }
.alh-table td:first-child, .alh-table th:first-child { text-align: left; position: sticky; left: 0; background: #fff; z-index: 1; }
.alh-table th:first-child { background: var(--navy); }
.alh-table tbody tr:nth-child(even) td { background: #faf9f6; }
.alh-table td.no { background: #F1DEDD !important; color: var(--red); }
.alh-table td.ny { background: var(--gold-20) !important; font-size: .78rem; }
.alh-table tr.mine td { box-shadow: inset 0 2px 0 var(--navy), inset 0 -2px 0 var(--navy); font-weight: 700; }
.alh-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.alh-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 5px; border: 1px solid var(--line); }
.alh-terms { display: grid; gap: 10px; }
.alh-term { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.alh-term b { color: var(--navy); display: block; margin-bottom: 2px; }
.alh-term .hol { color: var(--muted); font-size: .86rem; margin-top: 4px; }
.alh-term .hol .fa { color: var(--gold); margin-right: 4px; }

/* Success: community map */
.alh-community { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; text-align: center; }
.alh-community h3 { color: var(--navy); font-size: 1.4rem; margin: 0 0 8px; font-weight: 600; }
.alh-enq-success .alh-community-msg { color: var(--ink); font-size: 1rem; max-width: 560px; margin: 0 auto 14px; }
.alh-community-msg b { color: var(--navy); }
.alh-map { height: 240px; margin-bottom: 10px; border-radius: 14px; background: var(--navy-50); overflow: hidden; }
@media (min-width: 640px) { .alh-map { height: 340px; } }
.alh-enq-success .alh-community-note { font-size: .78rem; color: var(--muted); margin: 6px 0 0; }
.alh-enq .jvm-zoom-btn { display: none; }
body.alh-noscroll { overflow: hidden; }

/* Tour date: tick box on each card; rest of the form locked until a date is chosen */
.alh-tours .tick { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border: 2px solid #cfcac0; border-radius: 6px;
  background: #fff; color: transparent; display: flex; align-items: center; justify-content: center; font-size: .8rem; transition: all .15s; }
.alh-tours label:has(input:checked) .tick { background: var(--navy); border-color: var(--navy); color: #fff; }
.alh-tour-required { color: var(--navy); background: var(--navy-50); border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: .9rem; margin: 8px 0 0; }
.alh-tour-required .fa { color: var(--gold); margin-right: 4px; }
.alh-locked { opacity: .4; filter: grayscale(.4); pointer-events: none; user-select: none; transition: opacity .2s; }
