/* ------------------------------------------------------------------ */
/* International Patient                                                */
/*                                                                      */
/* The hero, the photo-with-stat block and the four feature cards are   */
/* components that already live in style.css (.page-hero, .intl-photo,  */
/* .intl-photo__stat, .service-card) — this file only lays them out and */
/* adds the enquiry block underneath, which is new.                     */
/* Logical properties throughout, so Arabic mirrors on its own.         */
/* ------------------------------------------------------------------ */

/* With the photo-and-cards block gone, this section carries only the heading
   and its intro, so the full section gap underneath left the paragraph
   floating a long way above the form. The modifier keeps About Us — which
   uses .intl-section at full height — untouched. */
.intl-section--lead {
  padding-bottom: clamp(28px, 2.8vw, 52px);
}

.intl-intro {
  max-width: 900px;
  margin-top: clamp(12px, 1.2vw, 20px);
  font-size: clamp(13px, 1vw, 17px);
  line-height: 1.75;
  color: var(--text-soft);
}

/* ---- photo beside the four cards ------------------------------------ */

.intl-layout {
  display: grid;
  grid-template-columns: minmax(0, .73fr) minmax(0, 1fr);
  gap: clamp(12px, 1.1vw, 20px);
  margin-top: clamp(26px, 2.6vw, 48px);
  align-items: stretch;
}

.intl-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.1vw, 20px);
}

/* style.css gives .intl-photo `height: 100%`, which was right where it sat
   in a Bootstrap column. As a grid item that percentage resolves against an
   indefinite height and collapses the photo back to its own minimum, so the
   grid's own stretch is what should size it here. */
/* The picture an editor picks, laid over the stylesheet's own background so
   the box is never empty before the picker is filled in. An inline
   `background-image: url(...)` would be HTML-encoded by Razor, and a file name
   carrying an apostrophe then breaks the whole declaration. */
.intl-photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intl-layout .intl-photo {
  height: auto;
  /* Lower than style.css's floor: the row is as tall as its tallest item,
     so a 420px photo would stretch the four cards past their content and
     leave each one half empty. */
  min-height: clamp(300px, 25vw, 400px);
}

/* style.css sizes .service-card for the homepage, where three of them span
   the full width and carry a pink hairline. Four of them beside a photo is
   a tighter box: the floor on the height and the generous padding both
   have to come down, or each card ends up mostly empty space. */
.intl-cards .service-card {
  min-height: 0;
  padding: clamp(18px, 1.7vw, 30px);
  border-color: transparent;
  box-shadow: 0 6px 24px rgba(31, 49, 99, .07);
}

.intl-cards .service-card__icon {
  width: clamp(38px, 3vw, 52px);
  height: clamp(38px, 3vw, 52px);
  font-size: clamp(15px, 1.15vw, 20px);
}

.intl-cards .service-card h3 {
  margin: clamp(12px, 1.2vw, 20px) 0 clamp(8px, .8vw, 13px);
  font-size: clamp(15px, 1.25vw, 22px);
}

.intl-cards .service-card p {
  font-size: clamp(11px, .85vw, 14px);
}

/* ---- the enquiry block ---------------------------------------------- */

.intl-enquiry {
  padding-bottom: var(--section-gap);
}

.intl-panel {
  padding: clamp(14px, 1.4vw, 24px);
  border: 1px solid #E7E9F1;
  border-radius: var(--radius);
  background: var(--white);
}

/* ---- tabs ------------------------------------------------------------ */

/* A pill group rather than a full-width navy strip: the same control the
   Book an Appointment page uses, so the two tabbed forms on the site read
   as one component. */
.intl-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: clamp(14px, 1.4vw, 24px);
  padding: 5px;
  border-radius: 999px;
  background: #F2F4FA;
}

.intl-tab {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(9px, .85vw, 14px);
  padding: clamp(9px, .9vw, 15px) clamp(12px, 1.2vw, 22px);
  border: 0;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: clamp(12px, .98vw, 17px);
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}

.intl-tab.is-active {
  background: var(--white);
  font-weight: 600;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(31, 49, 99, .08);
}

.intl-tab__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: clamp(24px, 1.95vw, 34px);
  height: clamp(24px, 1.95vw, 34px);
  border-radius: 50%;
  background: #EEF1F9;
  color: var(--navy);
  font-size: clamp(11px, .85vw, 15px);
}

.intl-tab__icon--green {
  background: #E4F3ED;
  color: #1a906e;
}

/* ---- panel: aside + form -------------------------------------------- */

.intl-panel__body {
  display: grid;
  grid-template-columns: clamp(220px, 21vw, 330px) minmax(0, 1fr);
  gap: clamp(14px, 1.4vw, 24px);
  align-items: start;
}

/* `[hidden]` alone loses to `display: grid`, so the hidden panel needs to
   be told again. */
.intl-panel__body[hidden] {
  display: none;
}

.intl-aside {
  /* Hugs its own content now that it is a card rather than a full-height
     column — stretching it left a tall empty grey block under the list. */
  align-self: start;
  padding: clamp(18px, 1.8vw, 32px);
  border-radius: var(--radius);
  background: #F6F7FA;
}

.intl-aside__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
  object-position: 50% 25%;
}

.intl-aside h3 {
  margin-top: clamp(14px, 1.4vw, 24px);
  font-size: clamp(16px, 1.35vw, 24px);
  font-weight: 700;
  color: #A11D2B;
}

/* Two-tone, like the sidebar headings elsewhere: first word navy, the
   rest maroon. */
.intl-aside h3 b {
  font-weight: 700;
  color: var(--navy);
}

.intl-aside__text {
  margin: clamp(8px, .8vw, 14px) 0 0;
  font-size: clamp(11px, .85vw, 14px);
  line-height: 1.6;
  color: var(--text-soft);
}

/* The same ticked list as the doctors' sidebar. Restated here rather than
   pulled in from doctors.css, so this page depends only on style.css and
   its own sheet. */
.intl-aside .check-list {
  display: flex;
  flex-direction: column;
  margin: clamp(10px, 1vw, 18px) 0 0;
  padding: 0;
  list-style: none;
}

.intl-aside .check-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding-block: clamp(7px, .62vw, 11px);
  font-size: clamp(11px, .85vw, 14px);
  line-height: 1.5;
  color: var(--text);
}

/* A hairline between rows rather than a plain gap. `li + li` keeps the
   first row flush with the text above and leaves no rule under the last. */
.intl-aside .check-list li + li {
  border-block-start: 1px solid rgba(31, 49, 99, .10);
}

.intl-aside .check-list i {
  flex-shrink: 0;
  margin-top: 2px;
  color: #1a906e;
  font-size: .95em;
}

/* ---- the form -------------------------------------------------------- */

/* Inside the enquiry panel the padding comes from the panel and the gap
   from the grid; the same class keeps its own padding on the career pages,
   where it sits directly in a card. */
.intl-panel .intl-form {
  padding: 0;
}

.intl-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.15vw, 20px);
  padding: clamp(18px, 1.8vw, 32px);
}

.intl-form__intro,
.intl-field--wide,
.intl-consent,
.btn-submit,
.intl-form__status {
  grid-column: 1 / -1;
}

.intl-form__intro {
  margin: 0;
  font-size: clamp(11px, .85vw, 14px);
  line-height: 1.6;
  color: var(--text-soft);
}

.intl-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.intl-field label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: clamp(11px, .85vw, 14px);
  font-weight: 500;
  color: var(--heading);
}

/* The small red marker the design puts before each label. It is decorative
   — `required` on the control is what actually carries the meaning. */
.intl-req {
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
}

/* `width: 100%` plus padding only stays inside the column under
   border-box. Bootstrap's reset sets that globally, but a control that
   spills its column whenever that sheet is slow, blocked or dropped is not
   worth the dependency — so it is stated here. */
.intl-field input,
.intl-field select,
.intl-field textarea {
  box-sizing: border-box;
  width: 100%;
  padding: clamp(9px, .85vw, 15px) clamp(14px, 1.15vw, 19px);
  border: 1px solid #E1E4ED;
  border-radius: 999px;
  background: var(--white);
  font: inherit;
  font-size: clamp(11px, .88vw, 15px);
  color: var(--text);
}

/* A pill is wrong for something several lines tall. */
.intl-field textarea {
  border-radius: 14px;
  resize: vertical;
  min-height: clamp(90px, 8vw, 140px);
}

.intl-field input::placeholder,
.intl-field textarea::placeholder {
  color: #9AA3BA;
}

/* An empty select still shows its hidden placeholder option, so it is
   greyed to match the inputs' placeholder until something is chosen. */
.intl-field select:invalid {
  color: #9AA3BA;
}

/* `background-position` takes no logical keyword, so the chevron is
   mirrored by hand at the end of this file. */
.intl-field select {
  padding-inline-end: clamp(34px, 2.6vw, 42px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23141C38' stroke-width='1.6' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 11px 7px;
  background-position: right clamp(14px, 1.15vw, 19px) center;
  appearance: none;
  cursor: pointer;
}

.intl-field input:focus-visible,
.intl-field select:focus-visible,
.intl-field textarea:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* Marked only once the field has been touched and left, so the form is not
   red before anyone has typed. */
.intl-field input.is-invalid,
.intl-field select.is-invalid,
.intl-field textarea.is-invalid {
  border-color: var(--red);
}

/* ---- upload ----------------------------------------------------------- */

.intl-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1vw, 16px);
  padding: clamp(18px, 1.8vw, 32px);
  border: 1.5px dashed #C9CFE0;
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.intl-drop:hover,
.intl-drop.is-dragging {
  border-color: var(--navy);
  background: #F7F9FD;
}

.intl-drop i {
  font-size: clamp(16px, 1.3vw, 22px);
  color: var(--text-soft);
}

.intl-drop span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.intl-drop b {
  font-size: clamp(11px, .88vw, 15px);
  font-weight: 600;
  color: var(--navy);
}

.intl-drop small {
  font-size: clamp(10px, .78vw, 13px);
  color: var(--text-soft);
}

.intl-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.intl-files:empty {
  display: none;
}

.intl-files li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid #E1E4ED;
  border-radius: 999px;
  font-size: clamp(10px, .78vw, 13px);
  color: var(--text-soft);
}

/* ---- consent + submit -------------------------------------------------- */

.intl-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: clamp(11px, .85vw, 14px);
  line-height: 1.5;
  color: var(--text-soft);
  cursor: pointer;
}

.intl-consent input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: var(--navy);
}

.btn-submit {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: clamp(11px, 1vw, 17px) clamp(20px, 1.9vw, 34px);
  border: 0;
  border-radius: 999px;
  background: var(--red);
  font: inherit;
  font-size: clamp(11px, .88vw, 15px);
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  transition: opacity .2s;
}

.btn-submit:hover {
  opacity: .9;
}

.intl-form__status {
  margin: 0;
  font-size: clamp(11px, .85vw, 14px);
  color: #1a906e;
}

.intl-form__status--error {
  color: var(--red);
}

/* ---- RTL --------------------------------------------------------------- */

[dir="rtl"] .intl-field select {
  background-position: left clamp(14px, 1.15vw, 19px) center;
}

[dir="rtl"] .btn-submit i {
  transform: scaleX(-1);
}

/* ---- responsive --------------------------------------------------------- */

@media (max-width: 1199.98px) {
  .intl-layout {
    grid-template-columns: 1fr;
  }

  .intl-photo {
    min-height: 360px;
  }
}

@media (max-width: 991.98px) {
  /* The aside becomes a banner above the form rather than a column beside
     it, so its portrait stops being a tall strip. */
  .intl-panel__body {
    grid-template-columns: 1fr;
  }

  .intl-aside__photo {
    aspect-ratio: 16 / 7;
  }
}

@media (max-width: 575.98px) {
  .intl-cards,
  .intl-form {
    grid-template-columns: 1fr;
  }

  /* Two pills side by side on a phone leave each one about half a word
     wide; stacked, they keep the icon beside the label. Same shape the
     Book an Appointment page takes at this width. */
  .intl-tabs {
    flex-direction: column;
    border-radius: 16px;
  }

  .intl-tab {
    border-radius: 12px;
  }
}

@media (max-width: 600px) {
    .intl-cards .service-card .service-card__icon {
        float: inline-start;
        margin-inline-end: 17px;
    }
    .intl-cards .service-card h3 {
        float: inline-start;
    }

}