:root {
  --brand: #034d07;
  --brand-hover: #0a6216;
  --deep: #11351e;
  --ink: #172117;
  --muted: #50614f;
  --sheet: #fcfdf9;
  --paper: #eff4eb;
  --lime: #ddebd4;
  --rule: #cbd7c6;
  --control: #7e927a;
  --error: #98291d;
  --error-paper: #fff3ef;
  --gutter: clamp(18px, 5vw, 72px);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.53 "Segoe UI", Arial, "Noto Sans Arabic", sans-serif;
  -webkit-text-size-adjust: 100%;
}
h1, p { margin: 0; }
a { color: var(--brand); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
::selection { color: var(--deep); background: var(--lime); }

.masthead { color: var(--deep); background: var(--sheet); border-block-end: 1px solid var(--rule); }
.masthead-inner {
  width: min(1200px, calc(100% - var(--gutter) * 2));
  min-height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--brand);
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -.07em;
  line-height: 1;
}
.brand-dot { color: var(--muted); }
.brand-mark { display: inline-flex; align-items: end; gap: 3px; height: 25px; }
.brand-mark i { width: 5px; background: currentColor; border-radius: 2px 2px 0 0; }
.brand-mark i:nth-child(1) { height: 13px; }
.brand-mark i:nth-child(2) { height: 25px; }
.brand-mark i:nth-child(3) { height: 19px; }
.back { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; font-size: .94rem; font-weight: 600; }
.back::before {
  content: "";
  width: .44rem;
  height: .44rem;
  border: solid currentColor;
  border-width: 0 0 1.5px 1.5px;
  transform: rotate(45deg);
}
[dir="rtl"] .back::before { transform: rotate(225deg); }

.enquiry {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  width: min(1120px, calc(100% - var(--gutter) * 2));
  margin: clamp(2.5rem, 5vw, 5rem) auto;
  gap: clamp(2rem, 6vw, 6rem);
}
.intro { padding-block-start: 1.35rem; }
h1 {
  font: 400 clamp(2.6rem, 4.7vw, 4.6rem)/1.02 Georgia, "Times New Roman", serif;
  letter-spacing: -.043em;
  text-wrap: balance;
  overflow-wrap: break-word;
  color: var(--deep);
}
[dir="rtl"] h1 { line-height: 1.23; letter-spacing: normal; }
.intro > p { max-width: 38ch; margin-block-start: 1.35rem; font-size: 1.13rem; }
.intro .account-note { margin-block-start: 1.65rem; padding-block-start: .9rem; border-block-start: 1px solid var(--rule); color: var(--muted); font-size: .95rem; }
.whatsapp-contact {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--sheet);
  border-radius: 50%;
  background: var(--brand);
  color: var(--sheet);
}
.whatsapp-contact:hover { background: var(--brand-hover); }
/* Reserve space for the fixed link where the form reaches the screen edges. */
@media (max-width: 760px) {
  html { height: 100%; overflow: hidden; }
  body { height: calc(100% - 58px - max(10px, env(safe-area-inset-bottom))); overflow-y: auto; }
}
.enquiry-form {
  min-width: 0;
  padding: clamp(1.35rem, 3vw, 2.5rem);
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: var(--sheet);
}
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { min-width: 0; grid-column: 1 / -1; }
.field-half { grid-column: auto; }
.field label { display: block; margin-block-end: .3rem; font-size: .92rem; font-weight: 650; }
input, select, textarea, button { font: inherit; }
.field :is(input, select, textarea) {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: .6rem .72rem;
  color: var(--ink);
  background: var(--sheet);
  border: 1px solid var(--control);
  border-radius: 4px;
}
textarea { resize: vertical; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.privacy { margin-block: 1.35rem 1rem; border-block-start: 1px solid var(--rule); padding-block-start: 1rem; }
.privacy p { margin-block-end: .45rem; color: var(--muted); font-size: .94rem; }
.check-line { display: flex; align-items: start; gap: .65rem; min-height: 44px; padding-block: .45rem; cursor: pointer; font-size: .95rem; font-weight: 600; }
.check-line input { flex: none; width: 1.2rem; height: 1.2rem; margin: .15rem 0 0; accent-color: var(--brand); }
.error-summary { padding: .8rem 1rem; margin-block-end: 1.25rem; border: 1px solid var(--error); border-radius: 4px; background: var(--error-paper); color: var(--error); }
.error-summary p { font-weight: 650; }
.error-summary a { color: inherit; }
.error-summary ul { margin-block: .4rem 0; padding-inline-start: 1.25rem; }
.errorlist { margin: .35rem 0 0; padding-inline-start: 1.2rem; color: var(--error); font-size: .91rem; }
button {
  min-height: 48px;
  border: 0;
  border-radius: 4px;
  padding: .65rem 1.4rem;
  background: var(--brand);
  color: var(--sheet);
  font-weight: 650;
  cursor: pointer;
}
button:hover { background: var(--brand-hover); }

.confirmation { width: min(620px, calc(100% - var(--gutter) * 2)); margin: clamp(3rem, 11vw, 10rem) auto; }
.confirmation p { max-width: 45ch; margin-block-start: 1rem; font-size: 1.13rem; }
.confirmed-mark { display: grid; place-items: center; width: 3rem; height: 3rem; margin-block-end: 1.4rem; border: 1px solid var(--control); border-radius: 50%; color: var(--brand); background: var(--lime); }
.confirmed-mark svg { width: 1.55rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 760px) {
  .masthead-inner { min-height: 63px; }
  .enquiry { max-width: 600px; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-block: 2rem; }
  .intro { padding: 0; }
  .intro > p { margin-block-start: .75rem; }
  .intro .account-note { margin-block-start: .65rem; padding: 0; border: 0; }
}
@media (max-width: 500px) {
  .field-half { grid-column: 1 / -1; }
  .enquiry-form { padding: 1.1rem; }
  .enquiry-form button { width: 100%; }
}
