:root {
  --page: #edf7f3;
  --surface: #ffffff;
  --surface-soft: #f3faf7;
  --hero: #d9f8ef;
  --text: #14231e;
  --muted: #5d6d67;
  --primary: #24614f;
  --primary-hover: #194738;
  --primary-soft: #e1f2ec;
  --brand-red: #ec2c35;
  --brand-gold: #fbb817;
  --border: #d7e8e2;
  --border-strong: #bfd8cf;
  --danger: #b42318;
  --danger-bg: #fff4f2;
  --success: #24734c;
  --success-bg: #e4f5ed;
  --shadow: 0 26px 80px rgba(22, 72, 57, 0.12);
  --radius-card: 28px;
  --radius-section: 20px;
  --radius-control: 13px;
  --font-heading: "Manrope", Arial, sans-serif;
  --font-body: "Plus Jakarta Sans", Arial, sans-serif;
  --font-arabic: "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.pixel,
.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  min-height: 100vh;
  padding: 56px 20px;
}

.booking-card {
  position: relative;
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 32px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(191, 216, 207, 0.82);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.booking-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-gold) 0 46%, var(--brand-red) 46% 100%);
}

.brand-header {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 78px;
  padding: 2px 0 26px;
  border-bottom: 1px solid var(--border);
}

.brand-logo {
  display: block;
  width: auto;
  height: 58px;
  max-width: 100%;
  object-fit: contain;
}

.language-toggle {
  position: absolute;
  top: 9px;
  inset-inline-end: 0;
  min-width: 76px;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-arabic);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.language-toggle:hover {
  background: var(--surface-soft);
  border-color: #92b8ab;
}

.language-toggle:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(36, 97, 79, 0.15);
}

.hero h1,
.hero-consultation,
.form-section h2,
.success-panel h2 {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 338px;
  margin: 30px 0;
  overflow: hidden;
  background: var(--hero);
  border: 1px solid rgba(36, 97, 79, 0.14);
  border-radius: var(--radius-section);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 68%;
  margin-inline-end: auto;
  padding: 38px 32px 34px;
}

.hero h1 {
  max-width: 590px;
  font-size: clamp(42px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero-description {
  max-width: 480px;
  margin: 19px 0 0;
  color: #294038;
  font-size: 17px;
  line-height: 1.55;
}

.hero-consultation {
  margin-top: 22px;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.hero-note {
  max-width: 480px;
  margin: 7px 0 0;
  color: #526b62;
  font-size: 12.5px;
  line-height: 1.5;
}

.hero-woman {
  position: absolute;
  inset-inline-end: 7px;
  bottom: 0;
  width: auto;
  height: 97%;
  max-width: 42%;
  object-fit: contain;
  object-position: bottom right;
  pointer-events: none;
  user-select: none;
}

.booking-form {
  display: grid;
  gap: 18px;
}

.form-section {
  min-width: 0;
  margin: 0;
  padding: 24px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-section);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.section-icon {
  display: inline-grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 12px;
}

.section-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-label {
  display: block;
  margin: 0 0 3px;
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-section h2 {
  font-size: 20px;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-stack {
  display: grid;
  gap: 16px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
}

.field label span {
  color: var(--muted);
  font-weight: 600;
}

.field label .field-label-main {
  color: var(--text);
  font-weight: 700;
}

.field input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.field input::placeholder {
  color: #83968f;
}

.date-input-wrap {
  position: relative;
}

.date-format {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 1;
  color: #83968f;
  pointer-events: none;
  transform: translateY(-50%);
}

#preferred-date.date-empty,
#preferred-date.date-empty::-webkit-datetime-edit {
  color: transparent;
}

#preferred-date:not(.date-empty) + .date-format {
  display: none;
}

.field input:hover {
  border-color: #92b8ab;
}

.field input:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(36, 97, 79, 0.15);
}

.field input[aria-invalid="true"] {
  border-color: var(--danger);
  background: var(--danger-bg);
}

.schedule-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid #f3c7c1;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.phone-input-wrap {
  display: flex;
  min-height: 52px;
  overflow: hidden;
  direction: ltr;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.phone-input-wrap:hover {
  border-color: #92b8ab;
}

.phone-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(36, 97, 79, 0.15);
}

.phone-input-wrap:has(input[aria-invalid="true"]) {
  background: var(--danger-bg);
  border-color: var(--danger);
}

.phone-prefix {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 14px;
  color: var(--text);
  background: var(--surface-soft);
  border-right: 1px solid var(--border);
  font-weight: 700;
}

.field .phone-input-wrap input {
  min-width: 0;
  min-height: 50px;
  padding-inline: 14px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  direction: ltr;
  text-align: left;
}

.field .phone-input-wrap input:hover,
.field .phone-input-wrap input:focus-visible,
.field .phone-input-wrap input[aria-invalid="true"] {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice-card {
  position: relative;
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  color: #263a33;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.choice-card:hover {
  border-color: #9fbfb4;
  transform: translateY(-1px);
}

.choice-card:has(input:checked) {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: var(--primary);
}

.choice-card:has(input:focus-visible) {
  box-shadow: 0 0 0 4px rgba(36, 97, 79, 0.15);
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-mark {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  background: var(--surface);
  border: 1.5px solid #9ab5ac;
  border-radius: 50%;
}

.choice-card input:checked + .radio-mark {
  border: 5px solid var(--primary);
}

.form-message {
  padding: 13px 15px;
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid #f3c7c1;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

.submit-button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 15px 24px;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 15px;
  box-shadow: 0 12px 28px rgba(36, 97, 79, 0.24);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.submit-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.submit-button:hover:not(:disabled) {
  background: var(--primary-hover);
  box-shadow: 0 14px 32px rgba(36, 97, 79, 0.30);
  transform: translateY(-1px);
}

.submit-button:hover:not(:disabled) svg {
  transform: translateX(2px);
}

.submit-button:focus-visible {
  outline: 3px solid rgba(36, 97, 79, 0.26);
  outline-offset: 3px;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.success-panel {
  padding: 72px 24px 54px;
  text-align: center;
}

.success-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  place-items: center;
  color: var(--success);
  background: var(--success-bg);
  border-radius: 50%;
}

.success-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-panel h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.success-panel p {
  max-width: 470px;
  margin: 12px auto 0;
  color: var(--muted);
}

html[dir="rtl"] body {
  font-family: var(--font-arabic);
}

html[dir="rtl"] .hero h1,
html[dir="rtl"] .hero-consultation,
html[dir="rtl"] .form-section h2,
html[dir="rtl"] .success-panel h2,
html[dir="rtl"] .field label,
html[dir="rtl"] .submit-button,
html[dir="rtl"] .step-label {
  font-family: var(--font-arabic);
  letter-spacing: 0;
}

html[dir="rtl"] .hero h1 {
  line-height: 1.2;
}

html[dir="rtl"] .step-label {
  text-transform: none;
}

html[dir="rtl"] #preferred-date,
html[dir="rtl"] #preferred-time {
  direction: ltr;
}

html[dir="rtl"] #name {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .submit-button svg {
  transform: scaleX(-1);
}

html[dir="rtl"] .submit-button:hover:not(:disabled) svg {
  transform: scaleX(-1) translateX(2px);
}

@media (max-width: 680px) {
  .page-shell {
    padding: 0;
  }

  .booking-card {
    min-height: 100vh;
    padding: 24px 18px 30px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .brand-header {
    min-height: 68px;
    padding-bottom: 20px;
  }

  .language-toggle {
    top: 5px;
    min-width: 68px;
    min-height: 36px;
    padding: 7px 9px;
    font-size: 12px;
  }

  .brand-logo {
    height: 50px;
  }

  .hero {
    min-height: 0;
    margin: 22px 0;
    border-radius: 17px;
  }

  .hero-copy {
    width: 100%;
    padding: 28px 20px 0;
  }

  .hero h1 {
    max-width: 310px;
    font-size: 38px;
  }

  .hero-description {
    max-width: 305px;
    margin-top: 15px;
    font-size: 14px;
  }

  .hero-consultation {
    margin-top: 18px;
    font-size: 16px;
  }

  .hero-note {
    max-width: 305px;
    font-size: 12px;
  }

  .hero-woman {
    position: relative;
    inset: auto;
    display: block;
    width: auto;
    height: 300px;
    max-width: 66%;
    margin: -14px 8px 0;
    margin-inline-start: auto;
    margin-inline-end: 8px;
  }

  .booking-form {
    gap: 14px;
  }

  .form-section {
    padding: 19px 16px;
    border-radius: 17px;
  }

  .section-heading {
    gap: 12px;
    margin-bottom: 18px;
  }

  .section-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .section-icon svg {
    width: 20px;
    height: 20px;
  }

  .form-section h2 {
    font-size: 17px;
  }

  .field-grid,
  .choice-list {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: 52px;
  }

  .submit-button {
    min-height: 56px;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
