/* ========================================
   MEND & RISE — Theme CSS
   ======================================== */

:root {
  --bg: #F7F2EA;
  --fg: #1A1A1A;
  --accent: #1E3A2F;
  --accent-light: #2D5242;
  --gold: #C4934A;
  --gold-light: #D4A85A;
  --cream-dark: #EDE5D8;
  --border: #D9CEBF;
  --text-muted: #6B6358;
  --white: #FFFFFF;
  --error: #b84a3a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- Layout ---- */
.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- Header ---- */
.site-header {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--fg); }

/* ---- Page intro ---- */
.page-intro {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 6vw, 58px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 18px;
}

.page-title em {
  font-style: italic;
  color: var(--accent);
}

.page-subtitle {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 500px;
}

/* ---- Form section ---- */
.form-section {
  padding: 56px 0 80px;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 44px 48px;
}

.form-group {
  margin-bottom: 28px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--fg);
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
}

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

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6358' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.readiness-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.readiness-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.readiness-option input[type="radio"] {
  margin-top: 4px;
  accent-color: var(--accent);
  transform: scale(1.2);
}

.readiness-option-content {}

.readiness-label {
  font-size: 15px;
  font-weight: 400;
  color: var(--fg);
}

.readiness-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 3px;
  padding: 15px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.form-submit:hover { background: var(--accent-light); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-arrow {
  font-size: 18px;
  line-height: 1;
}

/* ---- Error ---- */
.form-error {
  background: #fdf0ee;
  border: 1px solid var(--error);
  border-radius: 3px;
  color: var(--error);
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 24px;
}

/* ---- Footer ---- */
.site-footer {
  margin-top: auto;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- Scheduled confirmation ---- */
.confirmation-wrap {
  padding: 80px 0;
  text-align: center;
}

.confirmation-icon {
  font-size: 48px;
  margin-bottom: 24px;
  display: block;
}

.confirmation-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 16px;
}

.confirmation-body {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 36px;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .form-card { padding: 28px 24px; }
  .page-title { font-size: 36px; }
}