/* =========================================================
   Zoie — contact page (content from zoie.ai/contact). Builds on
   styles.css, pricing.css (dark header, channels section) and
   compare.css (header sizes, closing card).
   ========================================================= */

/* ---------- Form + other ways to reach us ---------- */
.ct-main { padding: 110px 0 0; }
.ct-grid {
  width: 1180px; max-width: calc(100% - 64px); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 40px; align-items: start;
}
.ct-form {
  display: grid; gap: 20px; padding: 40px; border-radius: 28px; background: #fff;
  box-shadow: inset 0 0 0 1px #e6e8ec, 0 30px 60px -40px rgba(20, 24, 32, .35);
}
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ct-row--phone { grid-template-columns: 1.3fr 1fr; }
.ct-field { display: grid; gap: 8px; min-width: 0; }
.ct-field > span, .ct-field > label { font-size: 14px; line-height: 18px; font-weight: 500; color: #2b2f33; }
.ct-field i, .ct-consent i { font-style: normal; color: #d64545; }
.ct-field input, .ct-field select, .ct-field textarea, .ct-phone {
  width: 100%; min-width: 0; height: 48px; padding: 0 16px; border-radius: 12px; border: 0;
  font: inherit; font-size: 15px; color: #0b0c0e; background: #f6f7f9;
  box-shadow: inset 0 0 0 1px #e1e4e9; transition: box-shadow .2s, background-color .2s;
}
.ct-field textarea { height: auto; min-height: 132px; padding: 14px 16px; line-height: 22px; resize: vertical; }
.ct-field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: #f6f7f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.ct-field select:invalid, .ct-field select:has(option[value=""]:checked) { color: #8a9097; }   /* placeholder option, required or not */
.ct-field input::placeholder, .ct-field textarea::placeholder { color: #9aa0a8; }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus, .ct-phone:focus-within {
  outline: none; background-color: #fff; box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px rgba(23, 25, 26, .06);
}
.ct-phone { display: flex; align-items: center; padding: 0; }
.ct-phone select { flex: none; width: auto; height: 100%; padding: 0 26px 0 12px; border-radius: 12px 0 0 12px; background-color: transparent; background-position: right 10px center; box-shadow: none; }
.ct-phone input { flex: 1; height: 100%; padding-left: 12px; border-radius: 0 12px 12px 0; background: transparent; box-shadow: none; border-left: 1px solid #e1e4e9; }
.ct-phone input:focus, .ct-phone select:focus { box-shadow: none; background-color: transparent; }
.ct-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 21px; color: #2b2f33; cursor: pointer; }
.ct-consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }
.ct-fine { margin-top: -8px; padding-left: 30px; font-size: 12.5px; line-height: 19px; color: #8a9097; }
.ct-form .is-invalid, .ct-form .is-invalid.ct-phone { box-shadow: inset 0 0 0 1.5px #d64545; }
.ct-form .ct-field.is-invalid > input,
.ct-form .ct-field.is-invalid > select,
.ct-form .ct-field.is-invalid > textarea { box-shadow: inset 0 0 0 1.5px #d64545; background: #fff; }
.ct-form .ct-field.is-invalid > input:focus,
.ct-form .ct-field.is-invalid > select:focus,
.ct-form .ct-field.is-invalid > textarea:focus,
.ct-form .ct-phone.is-invalid:focus-within { box-shadow: inset 0 0 0 1.5px #d64545, 0 0 0 4px rgba(214, 69, 69, .16); }
.ct-form .ct-consent.is-invalid { color: #b42f2f; box-shadow: none; }
.ct-consent.is-invalid input { outline: 2px solid #d64545; outline-offset: 1px; }
.ct-submit { width: 100%; height: 52px; margin-top: 4px; gap: 14px; justify-content: center; }
.ct-legal { margin-top: -6px; text-align: center; font-size: 13px; line-height: 18px; color: #8a9097; }
.ct-legal a { color: #0b0c0e; text-decoration: underline; text-underline-offset: 3px; }
.ct-status { padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 21px; color: #1d4d2c; background: #e9f6ee; box-shadow: inset 0 0 0 1px #c7e8d3; }
.ct-status.is-error { color: #8a2222; background: #fdeeee; box-shadow: inset 0 0 0 1px #f2c9c9; }
.ct-status a { color: inherit; font-weight: 600; text-decoration: underline; }

/* the side column, pinned while the long form scrolls */
.ct-side { position: sticky; top: 110px; padding: 36px 32px; border-radius: 28px; background: #f6f7f9; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); }
.ct-side-title { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -.02em; color: #0b0c0e; }
.ct-side-sub { margin-top: 8px; font-size: 15px; line-height: 22px; color: #5b6168; }
.ct-ways { display: grid; gap: 12px; margin-top: 26px; }
.ct-way { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px #e6e8ec; transition: transform .3s var(--ease-out), box-shadow .3s; }
a.ct-way:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px #d3d7dd, 0 16px 30px -24px rgba(20, 24, 32, .5); }
.ct-way-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: #fff; background: var(--ink); }
.ct-way-txt strong { display: block; font-size: 16px; line-height: 21px; font-weight: 600; color: #0b0c0e; }
.ct-way-txt span { display: block; margin-top: 2px; font-size: 14px; line-height: 19px; color: #6b7280; }

/* Arabic: the phone field keeps its code-then-number order */
[dir="rtl"] .ct-phone { direction: ltr; }
[dir="rtl"] .ct-fine { padding-left: 0; padding-right: 30px; }

/* closing card: a short paragraph instead of the check points */
.cmp-final-text { margin-top: 22px; max-width: 420px; font-size: 18px; line-height: 28px; color: #4a5054; }
.page-contact .cmp-final { padding-bottom: 120px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1219px) {
  .ct-grid { width: calc(min(760px, 100%) - 64px); max-width: none; grid-template-columns: 1fr; }
  .ct-side { position: static; }
}

@media (max-width: 640px) {
  .ct-main { padding-top: 64px; }
  .ct-grid { width: calc(100% - 32px); gap: 24px; }
  .ct-form { padding: 24px 18px; border-radius: 22px; gap: 18px; }
  .ct-row, .ct-row--phone { grid-template-columns: 1fr; gap: 18px; }
  .ct-side { padding: 26px 18px; border-radius: 22px; }
  .ct-side-title { font-size: 24px; line-height: 30px; }
  .cmp-final-text { font-size: 16px; line-height: 25px; }
  .page-contact .cmp-final { padding-bottom: 84px; }
}
