/*
 * Contact page: the learn-x green hero, a dense message card with topic chips and a live count, and a side
 * column with the contact details and the pages that answer most questions. Tokens only, logical properties,
 * so dark mode and Arabic and Urdu need no rules of their own beyond the few below.
 */
.ct-promises {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--lx-on-jewel, rgba(255, 255, 255, .86));
  font-size: .88rem;
}
.ct-promises li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.ct-promises i {
  color: var(--lx-gold, #f1d59a);
}

.ct-body {
  padding-top: 1.5rem;
}
.ct-grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
@media (min-width: 992px) {
  .ct-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    margin-top: -3.25rem;
    position: relative;
    z-index: 2;
  }
}
.ct-card {
  position: relative;
  padding: clamp(1.1rem, .8rem + 1.2vw, 1.75rem);
  border: 1px solid var(--ip-line);
  border-radius: var(--ip-radius-lg);
  background: var(--ip-surface);
  box-shadow: var(--ip-shadow-md);
}
.ct-form-card::before {
  content: "";
  position: absolute;
  inset-inline: 1.5rem;
  top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--ip-grad-brand);
}
.ct-title {
  margin: 0 0 1rem;
  font-size: var(--ip-text-xl);
  font-weight: 700;
  color: var(--ip-ink);
}
.ct-subtitle {
  margin: 0 0 .85rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ip-ink);
}
.ct-label {
  margin-bottom: .5rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ip-ink-2);
}
.ct-topics {
  margin: 0 0 1.1rem;
  padding: 0;
  border: 0;
}
.ct-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.ct-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .3rem .85rem;
  border: 1px solid var(--ip-line-strong);
  border-radius: var(--ip-radius-pill);
  background: var(--ip-surface);
  color: var(--ip-ink-2);
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .25s var(--ip-spring);
}
.ct-chip:hover {
  border-color: var(--ip-primary);
  color: var(--ip-primary);
  transform: translateY(-1px);
}
.ct-chip[aria-pressed="true"] {
  border-color: var(--ip-primary);
  background: var(--ip-primary);
  color: var(--ip-primary-ink);
}
.ct-chip:focus-visible {
  outline: 3px solid var(--ip-focus);
  outline-offset: 2px;
}

.ct-fields {
  display: grid;
  gap: .85rem 1rem;
}
@media (min-width: 640px) {
  .ct-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ct-field--wide {
    grid-column: 1 / -1;
  }
}
.ct-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.ct-field label {
  font-size: .84rem;
  font-weight: 600;
  color: var(--ip-ink-2);
}
.ct-req {
  font-weight: 500;
  color: var(--ip-muted);
}
.ct-field input,
.ct-field textarea {
  width: 100%;
  min-height: 44px;
  padding: .6rem .85rem;
  border: 1px solid var(--ip-line-strong);
  border-radius: var(--ip-radius-btn);
  background: var(--ip-surface-2);
  color: var(--ip-ink);
  font: inherit;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.ct-field textarea {
  min-height: 150px;
  resize: vertical;
}
.ct-field input:focus,
.ct-field textarea:focus {
  outline: none;
  border-color: var(--ip-primary);
  background: var(--ip-surface);
  box-shadow: 0 0 0 4px var(--ip-primary-soft);
}
.ct-field [aria-invalid="true"] {
  border-color: var(--ip-danger);
  box-shadow: 0 0 0 4px var(--ip-danger-soft);
}
.ct-count {
  align-self: flex-end;
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
  color: var(--ip-muted);
}
.ct-count.is-near {
  color: var(--ip-accent-strong);
  font-weight: 600;
}

.ct-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  margin-top: 1.1rem;
}
.ct-send[aria-busy="true"] i {
  animation: ct-fly 1s var(--ip-ease) infinite;
}
@keyframes ct-fly {
  50% { transform: translate(3px, -3px); opacity: .5; }
}
.ct-status {
  margin: 0;
  font-size: .88rem;
}
.ct-status.is-error {
  color: var(--ip-danger);
}

.ct-sent {
  display: grid;
  justify-items: center;
  gap: .5rem;
  padding: 2rem 1rem;
  text-align: center;
}
.ct-sent[hidden] {
  display: none;
}
.ct-sent:focus {
  outline: none;
}
.ct-sent__seal {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--ip-tile-emerald-bg);
  color: var(--ip-success);
  font-size: 2.2rem;
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--ip-success) 10%, transparent);
  animation: ct-pop .5s var(--ip-spring) both;
}
@keyframes ct-pop {
  from { transform: scale(.4); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.ct-sent__text {
  max-width: 28rem;
  margin: 0 0 .5rem;
  color: var(--ip-ink-2);
}

.ct-side {
  display: grid;
  gap: 1.25rem;
}
.ct-details__list,
.ct-quick__list {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ct-details__list li {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .92rem;
  overflow-wrap: anywhere;
}
.ct-details__list a {
  color: var(--ip-ink);
  font-weight: 600;
  text-decoration: none;
}
.ct-details__list a:hover {
  color: var(--ip-primary);
  text-decoration: underline;
}
.ct-quick__link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .75rem;
  border: 1px solid var(--ip-line);
  border-radius: var(--ip-radius);
  background: var(--ip-surface);
  color: var(--ip-ink);
  text-decoration: none;
  transition: border-color .2s, transform .25s var(--ip-ease), box-shadow .25s;
}
.ct-quick__link:hover,
.ct-quick__link:focus-visible {
  border-color: color-mix(in srgb, var(--ip-primary) 40%, var(--ip-line));
  box-shadow: var(--ip-shadow-sm);
  color: var(--ip-ink);
  transform: translateY(-2px);
}
.ct-quick__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.ct-quick__text strong {
  font-size: .9rem;
}
.ct-quick__text small {
  font-size: .78rem;
  color: var(--ip-muted);
}
.ct-quick__go {
  color: var(--ip-primary);
  transition: transform .25s var(--ip-ease);
}
.ct-quick__link:hover .ct-quick__go {
  transform: translateX(3px);
}
[dir="rtl"] .ct-quick__link:hover .ct-quick__go {
  transform: translateX(-3px) scaleX(-1);
}
@media (prefers-reduced-motion: reduce) {
  .ct-send[aria-busy="true"] i,
  .ct-sent__seal {
    animation: none;
  }
}
