/* Contact page styles — interviews.dk
   Builds on styles.css (front-end tokens, topbar, buttons, footer).
   Reuses form classes from backend.css for input/textarea consistency. */

.contact {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 56px 80px;
}

.contact__head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 44px;
}
.contact__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 5.6vw, 80px);
  letter-spacing: -0.018em;
  line-height: 1.02;
  margin: 0;
}
.contact__title em { font-style: italic; color: var(--brown-orange); }
.contact__sub {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 52ch;
  margin: 0;
  line-height: 1.55;
}

/* Form card — paper with orange top accent */
.contact__card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brown-orange);
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  border-radius: 4px 4px var(--radius-lg) var(--radius-lg);
  padding: 44px 48px 40px;
  position: relative;
}

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

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

.cfield { display: flex; flex-direction: column; gap: 8px; }
.cfield__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.cfield__label .req { color: var(--brown-orange); margin-left: 2px; }

.cfield input[type="text"],
.cfield input[type="email"],
.cfield textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color .15s, box-shadow .15s;
}
.cfield input::placeholder,
.cfield textarea::placeholder { color: var(--ink-3); }
.cfield input:hover,
.cfield textarea:hover { border-color: rgba(43,71,92,0.28); }
.cfield input:focus,
.cfield textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(43,71,92,0.10);
}
.cfield textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.55;
}

/* Topic — segmented chips (radio) */
.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.topic {
  position: relative;
  cursor: pointer;
}
.topic input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.topic__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .12s, background .12s, color .12s, box-shadow .12s;
  user-select: none;
}
.topic:hover .topic__pill {
  border-color: rgba(43,71,92,0.32);
  color: var(--ink);
}
.topic input:focus-visible + .topic__pill {
  box-shadow: 0 0 0 3px rgba(43,71,92,0.12);
}
.topic input:checked + .topic__pill {
  background: var(--slate);
  border-color: var(--slate);
  color: #fff;
  box-shadow: 0 6px 14px -8px rgba(43,71,92,0.5);
}

/* Submit row */
.contact-form__submit {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* Success state */
.contact-thanks {
  text-align: center;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.contact-thanks__mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--dark-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px -10px rgba(59,101,98,0.55);
}
.contact-thanks__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.012em;
  margin: 0;
}
.contact-thanks__title em { font-style: italic; color: var(--brown-orange); }
.contact-thanks__sub {
  font-size: 15.5px;
  color: var(--ink-2);
  max-width: 44ch;
  margin: 0;
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 720px) {
  .contact { padding: 32px 20px 56px; }
  .contact__card { padding: 28px 22px 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form__submit .btn { justify-content: center; width: 100%; }
}
