/* ===========================================================================
   AL-SAEED ECONOMIC GROUP  —  pages/p-contact.css
   ---------------------------------------------------------------------------
   Contact. The sixteenth distinct visual key:
     Home             teal filled eyebrow, expanding six-panel strip
     About            gold filled eyebrow, timeline on one rule
     Chairman         gold-on-dark eyebrow, letter on the dark ground
     Leadership       outlined eyebrow, portrait grid with no card boxes
     Sectors          rule-and-label eyebrow, alternating full-width rows
     Sector detail    dark filled eyebrow pill, one page as a tab set
     Companies        underlined eyebrow, filterable directory of crest cards
     Projects         vertical bar eyebrow, staggered grid, caption plates
     Project detail   bracketed eyebrow, long-form copy beside a sticky rail
     Global Presence  flanking rules, two-column evidence comparison
     Sustainability   diamond marker, quadrant and an empty report table
     News             highlighter band, front page and a date-first archive
     News detail      corner ticks, no banner, a measured column with breakouts
     Gallery          2x2 dot grid glyph, albums drawn as stacks of prints
     Gallery album    three-sided frame, a mosaic with a 2x2 lead tile
     Contact          a TRAILING RULE that fills the rest of the line - every
                      earlier mark sits before, around, under or behind the
                      label, and this is the first that comes AFTER it and the
                      first that stretches - and the page's own component is a
                      form with FLOATING LABELS, which nothing else uses.

   The floating label is a real <label>, not a placeholder pressed into
   service: it sits over an empty field and rises out of the way once there is
   something in it. A placeholder would vanish the moment the visitor typed,
   leaving four unlabelled boxes for anyone who looked away mid-form, and a
   screen reader would have nothing to announce.
   =========================================================================== */

.page-contact{
  --eyebrow-fg:var(--teal-dp);
  --page-bg:var(--white);
}

/* The sixteenth eyebrow treatment: the label, then a rule to the end of the
   line. `flex:1` on the pseudo-element is what makes it stretch. */
.page-contact .eyebrow{
  display:flex;width:100%;
  background:none;box-shadow:none;border:0;border-radius:0;
  padding:0;gap:.875rem;
  color:var(--eyebrow-fg);
}
.page-contact .eyebrow::after{
  content:"";flex:1 1 auto;align-self:center;
  height:.0625rem;background:var(--line);
  /* it should stop short of the far edge rather than run into the gutter */
  max-width:22rem;
}
.page-contact .eyebrow--onDark{color:var(--gold-lt)}
.page-contact .eyebrow--onDark::after{background:rgba(255,255,255,.24)}

/* ---------------------------------------------------------------------------
   THE THREE CHANNELS
   ---------------------------------------------------------------------------
   Rows rather than cards: each is one way of reaching the group, and a row
   gives the four telephone lines the space to sit as a list instead of being
   squeezed into a tile.
   --------------------------------------------------------------------------- */
.channels{background:var(--white)}
.channels__list{
  margin:clamp(2rem,1.5rem + 2vw,3rem) 0 0;
  padding:0;list-style:none;
}
.channel{
  display:grid;gap:var(--s-2) var(--gutter);
  grid-template-columns:auto minmax(0,1fr);
  align-items:start;
  padding-block:clamp(1.5rem,1.25rem + 1vw,2rem);
  border-top:.0625rem solid var(--line);
}
.channel:last-child{border-bottom:.0625rem solid var(--line)}
@media (min-width:48rem){
  .channel{grid-template-columns:auto minmax(0,13rem) minmax(0,1fr)}
}

.channel__disc{
  width:3rem;height:3rem;border-radius:50%;
  display:grid;place-items:center;
  background:var(--teal-tint);
}
.channel__disc svg{
  width:1.25rem;height:1.25rem;
  fill:none;stroke:var(--teal-dp);stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;
}
.channel__key{
  margin:0;font-size:var(--fs-h4);line-height:1.25;color:var(--ink);
}
.channel__note{
  display:block;margin-top:.25rem;
  font-size:var(--fs-xs);color:var(--muted);
}
.channel__body{grid-column:2 / -1}
@media (min-width:48rem){ .channel__body{grid-column:3} }

/* the four telephone lines, as a list of equals - the design does not say
   which is which, so none of them is presented as the main one */
.lines{margin:0;padding:0;list-style:none;display:grid;gap:.5rem}
.lines a{
  font-family:var(--ff-head, inherit);font-weight:600;
  font-size:var(--fs-lg);color:var(--ink);
  transition:color var(--dur-fast) var(--ease);
}
.lines a:hover{color:var(--gold-dk)}
.channel__body > a{
  font-family:var(--ff-head, inherit);font-weight:600;
  font-size:var(--fs-lg);color:var(--ink);
  transition:color var(--dur-fast) var(--ease);
}
.channel__body > a:hover{color:var(--gold-dk)}
.channel__body p{margin:0;font-size:var(--fs-lg);color:var(--ink)}

/* ---------------------------------------------------------------------------
   THE FORM
   --------------------------------------------------------------------------- */
.enquiry{background:var(--cream)}
.enquiry__card{
  background:var(--white);
  border-radius:var(--r-lg);
  box-shadow:var(--sh-2);
  padding:clamp(1.5rem,1.25rem + 2vw,3rem);
  margin-top:clamp(2rem,1.5rem + 2vw,3rem);
}

.form-grid{
  display:grid;gap:var(--s-3) var(--gutter);
  grid-template-columns:1fr;
}
@media (min-width:48rem){
  .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .form-grid .field--wide{grid-column:1 / -1}
}

/* --- the floating label -------------------------------------------------- */
.field{position:relative}
.field input,
.field textarea{
  width:100%;
  font:inherit;color:var(--ink);
  background:var(--white);
  border:.0625rem solid var(--line);
  border-radius:var(--r-sm);
  padding:1.5rem .875rem .5rem;
  transition:border-color var(--dur-fast) var(--ease),
             box-shadow var(--dur-fast) var(--ease);
}
.field textarea{min-height:8.5rem;resize:vertical}

.field label{
  position:absolute;
  inset-inline-start:.9375rem;top:.9375rem;
  font-size:var(--fs-body);color:var(--muted);
  pointer-events:none;
  /* transform-origin takes no logical keyword, so the scale anchor is named
     for each direction rather than assumed */
  transform-origin:left top;
  transition:transform var(--dur-fast) var(--ease),
             color var(--dur-fast) var(--ease);
}
[dir="rtl"] .page-contact .field label{transform-origin:right top}
/* The field carries placeholder=" " - a single space - purely so
   :placeholder-shown can tell an empty field from a filled one. Without it
   the selector never matches and the label never comes back down. */
.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label{
  transform:translateY(-.5625rem) scale(.78);
  color:var(--teal-dp);
}
.field input:focus,
.field textarea:focus{
  outline:none;
  border-color:var(--teal);
  box-shadow:0 0 0 .1875rem var(--teal-tint);
}

/* the required mark, drawn from the attribute so it cannot disagree with it */
.field input[required] + label::after,
.field textarea[required] + label::after{
  content:"*";margin-inline-start:.1875rem;color:var(--gold-dk);
}

/* --- errors -------------------------------------------------------------- */
/* The error slot, the invalid control and the whole outcome line now live in
   core.css as shared form furniture, because Careers-apply uses them too.
   What is left here is the one part that belongs to a FLOATING label: the
   raised label turns with its field. */
.field.is-invalid label{color:var(--err-ink)}

/* ---------------------------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion:reduce){
  .field label,
  .field input,.field textarea,.field select,
  .lines a,.channel__body > a{transition:none}
}
