/* ── FT Brand — Source Response Page ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ft-salmon:  #FFF1E5;
  --ft-wheat:   #F2DFCE;
  --ft-border:  #E9DDD6;
  --ft-border-dk: #CCC0B5;
  --ft-text:    #33302E;
  --ft-slate:   #66605C;
  --ft-muted:   #92847A;
  --ft-claret:  #990F3D;
  --ft-claret-dk: #7A0C30;
  --ft-teal:    #0D7680;
  --ft-surface: #FFFFFF;
  --ft-danger:  #CC0000;
  --ft-warning: #E87722;
}

body {
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  background: var(--ft-salmon);
  color: var(--ft-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.respond-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── Header ── */
.respond-header {
  padding: 20px 0 20px;
  margin-bottom: 40px;
  border-bottom: 3px solid var(--ft-text);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.respond-logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ft-text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.respond-byline {
  font-size: 12px;
  color: var(--ft-muted);
  letter-spacing: 0.01em;
  margin-top: 2px;
}

.respond-strapline {
  font-size: 13px;
  color: var(--ft-slate);
  font-style: italic;
}

/* ── Sections ── */
.respond-section {
  margin-bottom: 48px;
}

.respond-section-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--ft-text);
}

.respond-intro {
  font-size: 14px;
  color: var(--ft-slate);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ── Confirmation grid ── */
.confirm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: var(--ft-surface);
  border: 1px solid var(--ft-border);
  padding: 20px;
}

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

.form-group { display: flex; flex-direction: column; gap: 6px; }

label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ft-slate);
}

.form-hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ft-muted); }

input[type="text"] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--ft-border-dk);
  font-size: 14px;
  font-family: inherit;
  background: var(--ft-surface);
  color: var(--ft-text);
  border-radius: 0;
}

input:focus { outline: none; border-color: var(--ft-teal); }

/* ── Questions ── */
.question-form-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--ft-border);
  background: var(--ft-surface);
}

.question-form-item {
  padding: 24px;
  border-bottom: 1px solid var(--ft-border);
}

.question-form-item:last-child { border-bottom: none; }

.qf-label {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 14px;
  color: var(--ft-text);
}

.q-mandatory {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  font-weight: 700;
  font-family: -apple-system, Arial, sans-serif;
  background: #F9EEF3;
  color: var(--ft-claret);
  padding: 2px 7px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid #E5BDD0;
  vertical-align: middle;
}

.qf-input-wrap { position: relative; }

.qf-textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--ft-border-dk);
  font-size: 15px;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.75;
  resize: vertical;
  min-height: 160px;
  background: var(--ft-salmon);
  color: var(--ft-text);
  border-radius: 0;
  transition: border-color 0.1s, background 0.1s;
}

.qf-textarea:focus {
  outline: none;
  border-color: var(--ft-teal);
  background: var(--ft-surface);
}

.qf-textarea.missing { border-color: var(--ft-danger); background: #fff8f8; }

.word-counter {
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ft-muted);
  margin-top: 6px;
}

.word-counter.over-limit .wc-count { color: var(--ft-danger); }

/* ── Welcome page ── */
.welcome-bio {
  background: var(--ft-surface);
  border-top: 3px solid var(--ft-text);
  padding: 32px 36px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ft-text);
  margin-bottom: 32px;
}

.welcome-bio p { margin-bottom: 1em; }
.welcome-bio p:last-child { margin-bottom: 0; }

.welcome-bio a {
  color: var(--ft-claret);
  text-decoration: underline;
}

.welcome-bio a:hover { color: var(--ft-claret-dk); }

.welcome-actions {
  padding: 8px 0 40px;
}

/* ── Actions ── */
.respond-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  border-top: 2px solid var(--ft-text);
  margin-top: 8px;
  flex-wrap: wrap;
}

.autosave-status {
  flex: 1;
  font-size: 12px;
  color: var(--ft-muted);
  font-style: italic;
}

.btn-respond {
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: background 0.1s;
  border-radius: 0;
}

.btn-respond-primary {
  background: var(--ft-claret);
  color: #fff;
  border-color: var(--ft-claret);
}

.btn-respond-primary:hover { background: var(--ft-claret-dk); border-color: var(--ft-claret-dk); }

.btn-respond-secondary {
  background: var(--ft-surface);
  color: var(--ft-text);
  border-color: var(--ft-border-dk);
}

.btn-respond-secondary:hover { background: var(--ft-wheat); }

/* ── Return note ── */
.return-note {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--ft-surface);
  border-left: 3px solid var(--ft-teal);
}

.return-note-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--ft-teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.return-note-body {
  font-size: 13px;
  color: var(--ft-slate);
  line-height: 1.6;
  margin-bottom: 10px;
}

.return-note-url {
  font-size: 12px;
  color: var(--ft-muted);
  font-family: 'Courier New', monospace;
  word-break: break-all;
  background: var(--ft-salmon);
  padding: 8px 12px;
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(51,48,46,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal {
  background: var(--ft-surface);
  padding: 28px;
  width: 440px;
  max-width: calc(100vw - 40px);
  box-shadow: 0 4px 32px rgba(51,48,46,0.3);
  border-top: 3px solid var(--ft-claret);
}

.modal-header { margin-bottom: 12px; }

.modal-header h3 {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
}

/* ── Confirmation & locked pages ── */
.confirmation-box {
  padding: 64px 0;
  border-top: 3px solid var(--ft-text);
  margin-top: 40px;
}

.confirmation-box h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.3;
  color: var(--ft-text);
}

.confirmation-box p {
  font-size: 16px;
  color: var(--ft-slate);
  line-height: 1.7;
}

.already-submitted {
  padding: 28px;
  background: var(--ft-surface);
  border: 1px solid var(--ft-border);
  border-top: 3px solid var(--ft-teal);
}

.already-submitted h2 {
  font-family: Georgia, serif;
  margin-bottom: 8px;
  font-size: 18px;
}
