/* ═══════════════════════════════════════════════════════════════
   CONTACT VIEW - /contact
   Editorial layout: hero → direct action cards → form → FAQ.
   All selectors prefixed .contact-* / .channel-card / .field / etc.
   ═══════════════════════════════════════════════════════════════ */


/* ═══ § Page scaffolding ═════════════════════════════════════ */

.contact-view {
  direction: rtl;
  background: var(--bg-primary);
}

.contact-view__top-rule {
  height: 1px;
  background: linear-gradient(90deg,
    #0894FF 0%,
    #BD32D6 35%,
    #6462EA 50%,
    #0894FF 70%,
    #FFA304 100%);
}

.contact-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.18);
  border-radius: var(--radius-full);
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-display);
}


/* ═══ § Hero ═════════════════════════════════════════════════ */

.contact-hero {
  padding: 96px 24px 56px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.contact-hero__inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.contact-hero__title {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-color);
  font-family: var(--font-display);
  margin-top: 18px;
}

.contact-hero__lead {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 640px;
  margin: 18px auto 0;
}


/* ═══ § Channel cards ════════════════════════════════════════ */

.contact-channels {
  padding: 16px 24px 72px;
}

.contact-channels__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text-color);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.channel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-border);
}

.channel-card__icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  background: linear-gradient(135deg, #0894FF 0%, #6462EA 100%);
}

.channel-card--whatsapp .channel-card__icon {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}
.channel-card--email .channel-card__icon {
  background: linear-gradient(135deg, #0894FF 0%, #6462EA 100%);
}
.channel-card--openday .channel-card__icon {
  background: linear-gradient(135deg, #FFA304 0%, #C4551A 100%);
}

.channel-card__body {
  flex: 1;
  min-width: 0;
}

.channel-card__label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.channel-card__value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.3;
  margin-bottom: 4px;
  text-align: right;
}

.channel-card__hint {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  min-height: 1.5em;
}

.channel-card__copied {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #16A34A;
  font-weight: 600;
  animation: channel-card-copied-in 0.2s ease-out;
}

@keyframes channel-card-copied-in {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

.channel-card__arrow {
  flex: 0 0 auto;
  font-size: 22px;
  color: var(--text-tertiary);
  transition: transform 0.25s ease, color 0.25s ease;
}

.channel-card:hover .channel-card__arrow {
  color: var(--primary-color);
  transform: translateX(-4px);
}


/* ═══ § Form section ═════════════════════════════════════════ */

.contact-form-section {
  padding: 72px 24px 96px;
  background: linear-gradient(180deg, #EFF6FF 0%, #F5F9FF 100%);
}

.contact-form-section__grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.contact-form-section__aside {
  position: sticky;
  top: 100px;
}

.contact-form-section__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text-color);
  font-family: var(--font-display);
  margin-top: 16px;
}

.contact-form-section__lead {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-top: 14px;
}

.contact-form-section__bullets {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.contact-form-section__bullets li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  color: var(--text-color);
  font-size: 15px;
  line-height: 1.5;
  flex-direction: column;
}

.contact-form-section__bullets i {
  color: var(--primary-color);
  font-size: 16px;
  margin-top: 3px;
  flex: 0 0 18px;
}


/* ═══ § Form card ════════════════════════════════════════════ */

.contact-form-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

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

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  letter-spacing: -0.005em;
}

.field__req {
  color: var(--accent-warm);
  margin-inline-start: 2px;
}

.field__optional {
  color: var(--text-tertiary);
  font-weight: 400;
  font-size: 13px;
  margin-inline-start: 4px;
}

.field__input {
  width: 100%;
  padding: 13px 14px;
  font-size: 15.5px;
  font-family: var(--font-body);
  color: var(--text-color);
  background: #fff;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field__input:hover {
  border-color: #B8C8E0;
}

.field__input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.field__input--ltr {
  text-align: left;
}

.field__input--error {
  border-color: #D14343;
  background: #FFF8F8;
}

.field__input--error:focus {
  box-shadow: 0 0 0 4px rgba(209, 67, 67, 0.12);
}

.field__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-tertiary) 50%),
                    linear-gradient(135deg, var(--text-tertiary) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(1.2em + 2px),
                       calc(100% - 13px) calc(1.2em + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-left: 40px;
}

/* RTL: dropdown arrow on the left. The two triangles are NOT interchangeable -
   the 45deg half (first layer) has to sit to the LEFT of the 135deg half or the
   caret comes out as a broken upward wedge instead of a "v". */
[dir="rtl"] .field__select {
  background-position: 13px calc(1.2em + 2px),
                       18px calc(1.2em + 2px);
  padding-left: 14px;
  padding-right: 14px;
}

.field__textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
  font-family: var(--font-body);
}

.field__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.field__error {
  color: #D14343;
  font-size: 13px;
  font-weight: 500;
}

.field__error--consent {
  display: block;
  margin-top: -12px;
  /* Pulled up over the consent label - must not swallow checkbox clicks. */
  pointer-events: none;
}

.field__counter {
  font-size: 12.5px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  margin-inline-start: auto;
}


/* ═══ § Consent ══════════════════════════════════════════════ */

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  user-select: none;
}

.consent__checkbox {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.consent__text {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Contact-permission variant: the sentence is two clauses long and the tick
   is what lets us reach the person at all, so the box gets a finger-sized
   target instead of the 18px one the shorter enrollment/contract consents
   use. Scoped to the modifier - .consent__checkbox is shared with /e/* and
   /sign/*, and those rows are not changing.
   RTL note: the box lands at the reading start (right) from `display: flex`
   under the page's `direction: rtl` - no side-specific rule needed. */
.consent--wa .consent__checkbox {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-top: 1px;
}

.consent--wa .consent__text {
  /* Prefer a balanced last line over a single stranded word - the inline
     brand mark must never end up alone on it. */
  text-wrap: pretty;
}


/* ═══ § Server error ═════════════════════════════════════════ */

.server-error {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: #FFF4F4;
  border: 1px solid #F5C6C6;
  border-radius: var(--radius-md);
  color: #9B2C2C;
  font-size: 14px;
  line-height: 1.5;
}

.server-error i {
  font-size: 16px;
  margin-top: 2px;
}


/* ═══ § Submit ═══════════════════════════════════════════════ */

.contact-form__submit {
  margin-top: 8px;
  width: 100%;
}

.contact-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.contact-form__fallback {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin: 0;
  line-height: 1.6;
}

.contact-form__fallback a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.contact-form__fallback a:hover {
  text-decoration: underline;
}


/* ═══ § Success state ════════════════════════════════════════ */

.contact-success {
  position: relative;
  text-align: center;
  padding: 20px 10px;
}

.contact-success__close {
  position: absolute;
  top: 6px;
  inset-inline-start: 6px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-tertiary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.contact-success__close:hover,
.contact-success__close:focus-visible {
  background: var(--fsp-hover-bg);
  color: var(--primary-color);
  border-color: var(--primary-border);
  outline: none;
}

.contact-success__dismiss {
  /* extends .btn-secondary; no overrides needed, but keep the selector for future tweaks */
}

.contact-success__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, #0894FF 0%, #25D366 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
}

.contact-success__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-color);
  font-family: var(--font-display);
  margin-bottom: 10px;
}

.contact-success__text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 24px;
}

.contact-success__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-success__actions .btn-primary i {
  margin-inline-end: 8px;
}


/* ═══ § FAQ ══════════════════════════════════════════════════ */

.contact-faq {
  padding: 96px 24px 120px;
}

.contact-faq__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.contact-faq__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-color);
  font-family: var(--font-display);
  margin-top: 16px;
  margin-bottom: 40px;
}

.contact-faq__list {
  display: grid;
  gap: 14px;
  text-align: start;
}

.contact-faq__item {
  padding: 22px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-faq__item:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
}

.contact-faq__q {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-color);
  font-family: var(--font-display);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.contact-faq__a {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}


/* ═══ § Responsive ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .contact-hero {
    padding: 72px 20px 48px;
  }
  .contact-hero__title {
    font-size: 22px;
  }
  .contact-channels__inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .contact-form-section {
    padding: 56px 20px 72px;
  }
  .contact-form-section__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-form-section__aside {
    position: static;
  }
  .contact-form-wrap {
    padding: 32px 24px;
  }
  .contact-faq {
    padding: 72px 20px 96px;
  }
}

@media (max-width: 767px) {
  .contact-hero {
    padding: 56px 16px 40px;
  }
  .contact-hero__title {
    font-size: 17px;
  }
  .contact-hero__lead {
    font-size: 17px;
  }
  .contact-channels {
    padding: 8px 16px 56px;
  }
  .channel-card {
    padding: 18px 16px;
    gap: 14px;
  }
  .channel-card__icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
  .channel-card__value {
    font-size: 16px;
  }
  .channel-card__hint {
    font-size: 13px;
  }
  .contact-form-section {
    padding: 48px 16px 64px;
  }
  .contact-form-section__title {
    font-size: 14px;
  }
  .contact-form-wrap {
    padding: 24px 18px;
    border-radius: var(--radius-lg);
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .field__input {
    font-size: 16px;
    padding: 14px;
  }
  .contact-success__title {
    font-size: 11px;
  }
  .contact-faq {
    padding: 56px 16px 72px;
  }
  .contact-faq__title {
    font-size: 13px;
    margin-bottom: 28px;
  }
  .contact-faq__item {
    padding: 18px 18px;
  }
}


.contact-hero__title.logo-10x.logo-10x-inline {}

.contact-hero__title .logo-10x.logo-10x-inline {
    height: 1em;
    top: 8px;
}
