/* Contact — compact Intel Advisor page (matches homepage_v3 tokens) */

:root {
  --ct-deep: #0a2f29;
  --ct-forest: #0f3531;
  --ct-ink: #e6ece9;
  --ct-muted: #a3b8b2;
  --ct-accent: #c9a227;
  --ct-on-accent: #0c332c;
  --ct-line: rgba(255, 255, 255, 0.12);
  --ct-soft: rgba(255, 255, 255, 0.06);
  --ct-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ct-display: Estedad, Vazirmatn, Tahoma, sans-serif;
  --ct-body: Vazirmatn, Tahoma, sans-serif;
  --ct-wide: 72rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.ct {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ct-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ct-ink);
  background: var(--ct-deep);
  overflow-x: hidden;
}

body.ct::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 85% 10%, rgba(201, 162, 39, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 45% at 8% 90%, rgba(31, 122, 102, 0.22), transparent 50%),
    linear-gradient(165deg, #062722 0%, var(--ct-deep) 45%, var(--ct-forest) 100%);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button,
a { -webkit-tap-highlight-color: transparent; cursor: pointer; }

.ct-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.ct-skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--ct-accent);
  color: var(--ct-on-accent);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.ct-skip:focus { top: 1rem; }

.ct-inner {
  width: min(100% - 2rem, var(--ct-wide));
  margin-inline: auto;
}

/* Clear fixed hp3-nav (same pill as homepage) */
body.ct .hp3-nav-links a[aria-current="page"] {
  color: var(--hp3-accent, var(--ct-accent));
}
body.ct .hp3-nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* —— Stage (one composition) —— */
.ct-stage {
  display: grid;
  gap: 1rem;
  padding: 5.25rem 0 1.75rem;
  align-content: start;
}

.ct-intro {
  max-width: none;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--ct-line);
}

.ct-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ct-accent);
}

.ct-intro h1 {
  margin: 0 0 0.3rem;
  font-family: var(--ct-display);
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}

.ct-intro p {
  margin: 0;
  color: var(--ct-muted);
  font-size: 0.9rem;
}

.ct-layout {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.ct-form-panel,
.ct-side {
  border: 1px solid var(--ct-line);
  border-radius: 1.35rem;
  background: var(--ct-soft);
  backdrop-filter: blur(14px);
}

.ct-form-panel {
  order: 1;
  padding: 1.25rem 1.15rem 1.35rem;
}

.ct-side {
  order: 2;
  padding: 1.15rem 1.1rem 1.25rem;
  display: grid;
  gap: 0.95rem;
  align-content: start;
}

.ct-panel-title {
  margin: 0 0 1rem;
  font-family: var(--ct-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.ct-phone-block {
  display: grid;
  gap: 0.25rem;
}

.ct-phone-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ct-muted);
}

.ct-phone-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}

.ct-phone {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  font-family: var(--ct-display);
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  direction: ltr;
  unicode-bidi: plaintext;
  transition: color 0.2s var(--ct-ease);
}
.ct-phone:hover { color: var(--ct-accent); }

.ct-copy {
  min-height: 36px;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--ct-line);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 0.2s var(--ct-ease), border-color 0.2s var(--ct-ease);
}
.ct-copy:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(201, 162, 39, 0.45);
}
.ct-copy:focus-visible {
  outline: 2px solid var(--ct-accent);
  outline-offset: 2px;
}

.ct-phone-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ct-muted);
}

.ct-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.ct-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 68px;
  padding: 0.55rem 0.4rem;
  border-radius: 0.9rem;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: var(--ct-ink);
  font-weight: 700;
  font-size: 0.82rem;
  text-align: center;
  transition: background 0.2s var(--ct-ease), border-color 0.2s var(--ct-ease), transform 0.2s var(--ct-ease);
}
.ct-action:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--ct-line);
  transform: translateY(-1px);
}

.ct-action svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--ct-accent);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ct-meta {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--ct-muted);
}
.ct-meta li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.ct-meta svg {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  flex-shrink: 0;
  stroke: var(--ct-muted);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ct-meta strong {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.1rem;
}

/* —— Form —— */
.ct-form {
  display: grid;
  gap: 0.95rem;
}

.ct-field {
  display: grid;
  gap: 0.35rem;
}

.ct-field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}

.ct-field input,
.ct-field select,
.ct-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(243, 245, 242, 0.08);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s var(--ct-ease), background 0.2s var(--ct-ease), box-shadow 0.2s var(--ct-ease);
  color-scheme: dark;
}

.ct-field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

.ct-field select option {
  background: #0f3531;
  color: #fff;
}

.ct-field input::placeholder,
.ct-field textarea::placeholder {
  color: rgba(163, 184, 178, 0.7);
}

.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  outline: none;
  border-color: rgba(201, 162, 39, 0.65);
  background: rgba(6, 39, 34, 0.75);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.ct-row {
  display: grid;
  gap: 0.95rem;
}

.ct-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  width: 100%;
  margin-top: 0.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--ct-accent);
  color: var(--ct-on-accent);
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  transition: transform 0.2s var(--ct-ease), box-shadow 0.2s var(--ct-ease), opacity 0.2s var(--ct-ease);
}
.ct-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(201, 162, 39, 0.3);
}
.ct-submit:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.ct-submit:focus-visible,
.ct-action:focus-visible,
.ct-phone:focus-visible,
.ct-copy:focus-visible {
  outline: 2px solid var(--ct-accent);
  outline-offset: 3px;
}

@media (max-width: 420px) {
  .ct-actions {
    grid-template-columns: 1fr;
  }
  .ct-action {
    flex-direction: row;
    justify-content: flex-start;
    min-height: 44px;
    padding-inline: 0.85rem;
    text-align: start;
  }
}

.ct-footer {
  padding: 0 0 1.75rem;
  text-align: center;
  color: rgba(163, 184, 178, 0.75);
  font-size: 0.8rem;
}

@media (min-width: 900px) {
  .ct-stage {
    padding-top: 5.5rem;
    gap: 0.85rem;
  }

  .ct-layout {
    grid-template-columns: minmax(17rem, 0.9fr) minmax(0, 1.2fr);
    gap: 1.15rem;
  }

  .ct-form-panel {
    order: 2;
    padding: 1.35rem 1.5rem 1.5rem;
  }

  .ct-side {
    order: 1;
    padding: 1.25rem 1.35rem;
  }

  .ct-row {
    grid-template-columns: 1fr 1fr;
  }

  .ct-field textarea {
    min-height: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ct-action,
  .ct-submit,
  .ct-phone,
  .ct-copy {
    transition: none;
  }
  .ct-action:hover,
  .ct-submit:hover {
    transform: none;
  }
}
