/* Ported from the prototype's contact.css — kept in the 'legacy' cascade layer so Tailwind utilities can override it. */
@layer legacy {
/* =========================================================
   الأترجة — تواصل معنا
   ---------------------------------------------------------
   From kidora.framer.website/contact: a wide photo across the
   top, then on a warm ground a two-column block — the heading,
   a short text and a small coloured "direct contact" card on one
   side, a large white rounded form on the other (fields in a two-
   column grid, the message full width, a pill button with a round
   arrow). Here: RTL, a deep-green veil on the photo carrying the
   title, ivory ground, sage card, forest/gold button. The FAQ at
   the end is the shared component (faq.css / faq.js).
   ========================================================= */

.ct-page{
  --ct-ink:   var(--u-forest);
  --ct-sub:   #56665F;
  --ct-muted: #87938D;
  --ct-line:  rgba(18,60,53,.12);
  --ct-field: #FCFAF5;
  --ct-err:   #A8452E;
  --ct-out:   cubic-bezier(.2,.7,.2,1);
  background:#F8F5ED;
  color:var(--ct-ink);
}
.ct-wrap{ max-width:var(--max); margin:0 auto; padding:0 34px; }

/* ---- 1 — hero: the photo, a green veil, the title ---- */
.ct-hero{
  position:relative;
  isolation:isolate;
  display:flex; align-items:flex-end;
  min-height:clamp(460px, 64vh, 600px);
  padding:150px 0 78px;
  overflow:hidden;
  color:#F8F5ED;
  background:#0B2923;
}
.ct-hero-bg{ position:absolute; inset:0; z-index:-2; }
.ct-hero-bg img{
  width:100%; height:100%;
  object-fit:cover; object-position:50% 45%;
  filter:saturate(.8);
  transform:scale(1.06);
  transition:transform 1.8s var(--ct-out);
}
.ct-go .ct-hero-bg img{ transform:scale(1); }
.ct-hero::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background:
    linear-gradient(to top, rgba(7,31,26,.9) 0%, rgba(11,41,35,.55) 48%, rgba(11,41,35,.35) 100%),
    linear-gradient(to left, rgba(18,60,53,.55), rgba(18,60,53,.08) 70%);
}
.ct-hero-copy{ max-width:760px; margin:0 auto; text-align:center; }
.ct-label{
  display:inline-flex; align-items:center; gap:9px;
  margin:0;
  padding:7px 16px;
  border-radius:99px;
  font-size:14px; font-weight:600;
  color:var(--gold-light);
  background:rgba(248,245,237,.08);
  border:1px solid rgba(212,175,90,.32);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
}
.ct-label span{ width:6px; height:6px; border-radius:50%; background:var(--u-gold); box-shadow:0 0 0 3px rgba(212,175,90,.22); }
.ct-hero h1{
  margin:20px 0 0;
  font-size:clamp(36px, 4.6vw, 64px);
  line-height:1.25; font-weight:700;
  letter-spacing:-1px;
}
.ct-hero p{
  max-width:600px;
  margin:18px auto 0;
  font-size:clamp(16px, 1.3vw, 19px); line-height:1.95;
  color:rgba(248,245,237,.82);
}

/* ---- 2 — intro + card on one side, the form on the other ---- */
.ct-main{ padding:110px 0 120px; background:#F8F5ED; }
.ct-grid{
  display:grid;
  grid-template-columns:minmax(0, .82fr) minmax(0, 1.18fr);   /* RTL: the intro sits on the right */
  grid-template-areas:"intro form" "card form";
  grid-template-rows:auto 1fr;
  gap:0 64px;
  align-items:start;
}
.ct-intro{ grid-area:intro; padding-top:10px; }
.ct-intro h2{
  margin:0;
  font-size:clamp(30px, 3.3vw, 46px);
  line-height:1.3; font-weight:700;
  letter-spacing:-.6px;
}
.ct-intro p{ max-width:440px; margin:16px 0 0; font-size:17px; line-height:1.95; color:var(--ct-sub); }
.ct-intro .ct-note{
  display:flex; gap:10px; align-items:flex-start;
  margin-top:22px;
  font-size:15px; line-height:1.85;
  color:var(--ct-ink);
}
.ct-note svg{ width:18px; height:18px; margin-top:5px; color:var(--gold-deep); }

/* direct contact — the reference's small coloured card at the foot of the column */
/* the cards fill the column down to the foot of the form:
   each grows by the same amount, so the gaps stay equal */
.ct-cards{
  grid-area:card;
  align-self:stretch;
  display:flex; flex-direction:column; gap:16px;
  max-width:440px;
  margin-top:32px;
}
.ct-cards > .ct-card{ flex:1 1 auto; }
.ct-card{
  display:flex; align-items:center; gap:18px;
  padding:18px 18px 18px 26px;
  border-radius:24px;
  background:#E3EDE5;
  border:1px solid rgba(18,60,53,.08);
}
.ct-card-ico{
  flex:none;
  width:84px; height:84px;
  display:grid; place-items:center;
  border-radius:18px;
  color:var(--gold-light);
  background:linear-gradient(150deg, #1B4A42, #0E322C);
  box-shadow:0 14px 28px -18px rgba(18,60,53,.8);
}
.ct-card-ico svg{ width:32px; height:32px; }
.ct-card h3{ margin:0; font-size:19px; font-weight:700; }
.ct-card p{ margin:4px 0 0; font-size:14px; line-height:1.7; color:var(--ct-sub); }
.ct-mail{
  display:inline-block;
  margin-top:8px;
  font-size:16.5px; font-weight:600;
  color:var(--ct-ink);
  direction:ltr;
  border-bottom:1px solid rgba(176,143,62,.45);
  transition:border-color .3s var(--ct-out), color .3s var(--ct-out);
}
.ct-mail:hover{ color:var(--gold-deep); border-color:var(--gold-deep); }
/* phone: warm sand with a gold tile */
.ct-card--phone{ background:#F2E8D2; border-color:rgba(176,143,62,.2); }
.ct-card--phone .ct-card-ico{ color:#0E322C; background:linear-gradient(150deg, var(--gold-light), var(--u-gold)); box-shadow:0 14px 28px -18px rgba(176,143,62,.9); }

/* social: deep forest, ivory text, gold-ringed icons */
.ct-card--social{ justify-content:space-between; gap:20px; padding:24px 26px; color:#F8F5ED; background:linear-gradient(150deg, #1B4A42, #0E322C); border-color:transparent; box-shadow:0 22px 40px -28px rgba(18,60,53,.9); }
.ct-card--social p{ color:rgba(248,245,237,.72); }
.ct-socials{ display:flex; gap:8px; margin:0; padding:0; list-style:none; flex:none; }
.ct-soc{
  width:42px; height:42px;
  display:grid; place-items:center;
  border-radius:50%;
  color:var(--gold-light);
  border:1px solid rgba(212,175,90,.35);
  transition:background .3s var(--ct-out), color .3s var(--ct-out), transform .3s var(--ct-out);
}
.ct-soc svg{ width:18px; height:18px; }
.ct-soc:hover{ color:#0E322C; background:var(--u-gold); transform:translateY(-2px); }
.ct-soc:focus-visible{ outline:2px solid var(--u-gold); outline-offset:3px; }

.ct-mail:focus-visible{ outline:2px solid var(--u-gold); outline-offset:4px; border-radius:4px; }

/* ---- the form ---- */
.ct-form-box{
  grid-area:form;
  position:relative;
  padding:46px 44px 44px;
  border-radius:32px;
  background:#FFFFFF;
  border:1px solid rgba(18,60,53,.06);
  box-shadow:0 40px 80px -60px rgba(18,60,53,.45);
}
.ct-form-box h2{ margin:0; font-size:clamp(24px, 2.2vw, 30px); font-weight:700; }
.ct-form-box > .ct-form > p, .ct-form-sub{ margin:10px 0 0; font-size:16px; line-height:1.85; color:var(--ct-sub); }

.ct-fields{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:22px 20px;
  margin-top:32px;
}
.ct-fld{ display:flex; flex-direction:column; gap:8px; min-width:0; }
.ct-fld--wide{ grid-column:1 / -1; }
.ct-fld > label{ font-size:14.5px; font-weight:600; color:var(--ct-ink); }
.ct-fld > label small{ font-size:13px; font-weight:400; color:var(--ct-muted); }
.ct-box{ position:relative; }
.ct-fld input, .ct-fld select, .ct-fld textarea{
  width:100%;
  box-sizing:border-box;
  height:56px;
  padding:0 18px;
  border-radius:18px;
  border:1px solid var(--ct-line);
  background:var(--ct-field);
  font:inherit; font-size:16px;
  color:var(--ct-ink);
  outline:none;
  transition:border-color .3s var(--ct-out), box-shadow .3s var(--ct-out), background .3s var(--ct-out);
}
.ct-fld textarea{ height:auto; min-height:170px; padding:16px 18px; line-height:1.85; resize:vertical; }
.ct-fld select{ appearance:none; -webkit-appearance:none; padding-inline-end:48px; cursor:pointer; }
.ct-fld select:invalid{ color:#A3ACA7; }
.ct-fld select option{ color:var(--ct-ink); }
.ct-chev{
  position:absolute; top:50%; inset-inline-end:18px;
  width:18px; height:18px; margin-top:-9px;
  color:var(--ct-muted);
  pointer-events:none;
}
.ct-fld input::placeholder, .ct-fld textarea::placeholder{ color:#A3ACA7; }
.ct-fld input[dir="ltr"]{ text-align:right; }
.ct-fld input[dir="ltr"]::placeholder{ text-align:right; }
.ct-fld input:hover, .ct-fld select:hover, .ct-fld textarea:hover{ border-color:rgba(18,60,53,.28); }
.ct-fld input:focus, .ct-fld select:focus, .ct-fld textarea:focus{
  border-color:var(--ct-ink);
  background:#FFFFFF;
  box-shadow:0 0 0 4px rgba(18,60,53,.08);
}

.ct-err{
  display:none; align-items:center; gap:6px;
  font-size:13.5px; font-weight:500;
  color:var(--ct-err);
}
.ct-err svg{ width:15px; height:15px; flex:none; }
.ct-fld.is-bad .ct-err{ display:flex; animation:ct-err .35s var(--ct-out) both; }
.ct-fld.is-bad input, .ct-fld.is-bad select, .ct-fld.is-bad textarea{ border-color:rgba(168,69,46,.55); background:#FFFBF8; }
.ct-fld.is-bad input:focus, .ct-fld.is-bad select:focus, .ct-fld.is-bad textarea:focus{ box-shadow:0 0 0 4px rgba(168,69,46,.1); }
@keyframes ct-err{ from{ opacity:0; transform:translateY(-3px); } }

/* the one button: the reference's pill with a round arrow */
.ct-submit{
  position:relative;
  display:inline-flex; align-items:center; justify-content:center; gap:14px;
  height:58px;
  margin-top:30px;
  padding-inline:28px 6px;
  border:0;
  border-radius:99px;
  font:inherit; font-size:16.5px; font-weight:600;
  color:#F8F5ED;
  background:var(--ct-ink);
  box-shadow:0 18px 32px -22px rgba(18,60,53,.9);
  cursor:pointer;
  transition:background .35s var(--ct-out), transform .35s var(--ct-out);
}
.ct-submit-ico{
  width:46px; height:46px;
  display:grid; place-items:center;
  border-radius:50%;
  color:var(--ct-ink);
  background:linear-gradient(140deg, var(--gold-light), var(--u-gold));
  transition:transform .4s var(--ct-out);
}
.ct-submit-ico svg{ width:18px; height:18px; }
.ct-submit:hover{ background:#0E322C; }
.ct-submit:hover .ct-submit-ico{ transform:translateX(-4px); }
.ct-submit:active{ transform:translateY(1px); }
.ct-submit:focus-visible{ outline:2px solid var(--u-gold); outline-offset:3px; }
.ct-submit .spin{
  display:none;
  position:absolute; top:50%; left:50%;
  width:22px; height:22px; margin:-11px 0 0 -11px;
  border-radius:50%;
  border:2px solid rgba(248,243,231,.3);
  border-top-color:var(--gold-light);
  animation:ct-spin .8s linear infinite;
}
.ct-submit.is-busy{ cursor:progress; background:#24524A; }
.ct-submit.is-busy .lbl, .ct-submit.is-busy .ct-submit-ico{ visibility:hidden; }
.ct-submit.is-busy .spin{ display:block; }
@keyframes ct-spin{ to{ transform:rotate(360deg); } }

.ct-fail{ display:none; margin:14px 0 0; font-size:14.5px; color:var(--ct-err); }
.ct-fail.is-on{ display:block; }

/* success: replaces the form inside the same white box */
.ct-done{
  display:none;
  flex-direction:column; align-items:flex-start; gap:14px;
  min-height:460px; justify-content:center;
}
.ct-form-box.is-done .ct-form{ display:none; }
.ct-form-box.is-done .ct-done{ display:flex; animation:ct-in .7s var(--ct-out) both; }
.ct-done-ico{
  width:68px; height:68px;
  display:grid; place-items:center;
  border-radius:50%;
  color:var(--gold-light);
  background:var(--ct-ink);
  box-shadow:0 0 0 10px rgba(168,199,181,.3);
}
.ct-done-ico svg{ width:30px; height:30px; }
.ct-done h2{ margin:14px 0 0; }
.ct-done p{ max-width:440px; margin:0; font-size:16.5px; line-height:1.9; color:var(--ct-sub); }
.ct-again{
  margin-top:10px;
  padding:0;
  border:0; background:none;
  font:inherit; font-size:15.5px; font-weight:600;
  color:var(--ct-ink);
  border-bottom:1px solid rgba(176,143,62,.5);
  cursor:pointer;
}
.ct-again:hover{ color:var(--gold-deep); }
.ct-again:focus-visible{ outline:2px solid var(--u-gold); outline-offset:4px; }
@keyframes ct-in{ from{ opacity:0; transform:translateY(12px); } }

/* ---- 3 — FAQ on soft cream (the component itself is faq.css) ---- */
.ct-page .hw-faq{ padding:110px 0 130px; }

/* ---- motion: the hero copy rises in, the rest fades up on arrival ---- */
.ct-go .ct-hero-copy > *{ animation:ct-up .9s var(--ct-out) both; }
.ct-go .ct-hero-copy > :nth-child(2){ animation-delay:.08s; }
.ct-go .ct-hero-copy > :nth-child(3){ animation-delay:.16s; }
@keyframes ct-up{ from{ opacity:0; transform:translateY(18px); } }
.ct-js .ct-up{ opacity:0; transform:translateY(26px); transition:opacity .9s var(--ct-out), transform .9s var(--ct-out); transition-delay:var(--d, 0s); }
.ct-js .ct-up.is-in{ opacity:1; transform:none; }

/* ---- responsive ---- */
@media (max-width:1000px){
  .ct-grid{ grid-template-columns:minmax(0, 1fr); grid-template-areas:"intro" "form" "card"; grid-template-rows:auto; gap:0; }
  .ct-intro p{ max-width:none; }
  .ct-form-box{ margin-top:36px; }
  .ct-cards{ max-width:none; margin-top:24px; }
  .ct-cards > .ct-card{ flex:none; }
}
@media (max-width:640px){
  .ct-wrap{ padding:0 16px; }
  .ct-hero{ min-height:0; padding:132px 0 52px; }
  .ct-main{ padding:64px 0 80px; }
  .ct-form-box{ padding:30px 20px 26px; border-radius:26px; }
  .ct-fields{ grid-template-columns:minmax(0, 1fr); gap:18px; margin-top:26px; }
  .ct-submit{ width:100%; justify-content:space-between; }
  .ct-card{ padding:16px; gap:14px; }
  .ct-card--social{ flex-direction:column; align-items:flex-start; padding:22px 20px; }
  .ct-card-ico{ width:64px; height:64px; border-radius:16px; }
  .ct-card-ico svg{ width:26px; height:26px; }
  .ct-done{ min-height:340px; }
  .ct-page .hw-faq{ padding:76px 0 90px; }
}
@media (prefers-reduced-motion:reduce){
  .ct-go .ct-hero-copy > *{ animation:none; }
  .ct-hero-bg img{ transform:none; transition:none; }
  .ct-js .ct-up{ opacity:1; transform:none; transition:none; }
  .ct-form-box.is-done .ct-done, .ct-fld.is-bad .ct-err{ animation:none; }
}

}
