/* =========================================================
   UniMate — contact.css  (Contact page only)

   1. Page hero
   2. Message builder (form + live preview)
   ========================================================= */


/* ---------- 1. PAGE HERO ---------- */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 0 40px;
  text-align: center;
}

.page-hero h1 {
  margin: 18px auto 20px;
  max-width: 14ch;
  font-size: clamp(2.7rem, 8vw, 5.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}

.page-hero p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}


/* ---------- 2. MESSAGE BUILDER ---------- */
.builder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.panel {
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
}

.panel h3 {
  margin-bottom: 6px;
  font-size: 1.35rem;
  font-weight: 800;
}

.panel__sub {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Form fields */
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field label,
.field__label {
  font-size: 0.92rem;
  font-weight: 600;
}

.select,
.textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0b1120;
  color: var(--text);
  font: inherit;
}

.select option {
  background: #0b1120;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.select:focus,
.textarea:focus {
  outline: 2px solid var(--a2);
  outline-offset: 0;
  border-color: transparent;
}

/* "I am a ... Business owner | Student" switch */
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0b1120;
}

.seg button {
  padding: 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.seg button:hover {
  color: var(--text);
}

.seg button.is-active {
  background: var(--grad);
  color: #06080f;
}

/* Message preview */
.preview {
  min-height: 250px;
  margin-bottom: 20px;
  padding: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: #0b1120;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.preview-actions {
  display: grid;
  gap: 12px;
}

.btn.is-done {
  background: #16a34a;
  border-color: transparent;
  color: #fff;
}

/* Small green note when a plan was pre-selected */
.notice {
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 14px;
  background: rgba(52, 211, 153, 0.1);
  color: #a7f3d0;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .builder {
    grid-template-columns: 1fr;
  }
}
