@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #E86464;
  --primary-dark: #d45050;
  --primary-light: #fdf0f0;
  --text-dark: #1a1a2e;
  --text-mid: #4a4a68;
  --text-light: #8888a8;
  --border: #e8e8f0;
  --white: #ffffff;
  --bg: #f9f9fc;
  --success: #2ecc71;
  --error: #e74c3c;
  --shadow: 0 4px 24px rgba(232, 100, 100, 0.08);
  --shadow-hover: 0 8px 32px rgba(232, 100, 100, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* ── Header ── */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.header-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Main Layout ── */
main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1rem 4rem;
}

.container {
  width: 100%;
  max-width: 620px;
}

/* ── Card ── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* ── Page Title ── */
.page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.page-header .eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.page-header p {
  font-size: 0.95rem;
  color: var(--text-mid);
  max-width: 400px;
  margin: 0 auto;
}

/* ── Home Page – Path Buttons ── */
.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

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

.path-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s ease;
  color: var(--text-dark);
}

.path-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.path-card.primary-path {
  border-color: var(--primary);
  background: linear-gradient(135deg, #fff5f5 0%, #fff 60%);
}

.path-card .path-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.path-card .path-icon.coral {
  background: var(--primary-light);
}

.path-card .path-icon.teal {
  background: #f0f8ff;
}

.path-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.path-card p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ── Step Progress ── */
.step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-light);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.step-dot.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.step-dot.completed {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  max-width: 48px;
}

.step-line.completed {
  background: var(--primary);
}

/* ── Form Elements ── */
.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
  -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 100, 100, 0.12);
}

input::placeholder {
  color: #c0c0d0;
}

/* ── Checkbox ── */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--primary-light);
  border: 1.5px solid rgba(232,100,100,0.2);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.1rem;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-group label {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.5;
  cursor: pointer;
}

/* ── Seal Options ── */
.seal-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.seal-option {
  display: none;
}

.seal-option + label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.18s;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-mid);
  text-align: center;
}

.seal-option + label .seal-icon {
  font-size: 2rem;
}

.seal-option:checked + label {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.seal-option + label:hover {
  border-color: var(--primary);
}

/* ── Seal Visual ── */
.seal-visual {
  background: linear-gradient(135deg, #f8f8fb 0%, #fff 100%);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.75rem;
}

.seal-visual .seal-img-placeholder {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  gap: 0.5rem;
}

.seal-visual .seal-img-placeholder .seal-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c8daf5, #a0b8e8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.seal-visual p {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ── Yes/No Questions ── */
.policy-question {
  padding: 1.1rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.875rem;
  transition: border-color 0.15s;
}

.policy-question:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
}

.policy-question p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.yn-group {
  display: flex;
  gap: 0.75rem;
}

.yn-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  transition: all 0.15s;
}

.yn-label:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.yn-label input {
  display: none;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  width: 100%;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(232,100,100,0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-mid);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.15s;
}

.btn-back:hover {
  color: var(--primary);
}

/* ── Alert / Error ── */
.alert {
  padding: 0.875rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.alert-error {
  background: #fff5f5;
  border: 1.5px solid #fecaca;
  color: #c0392b;
}

.alert-warning {
  background: #fffbeb;
  border: 1.5px solid #fed7aa;
  color: #b45309;
}

.alert-info {
  background: #f0f9ff;
  border: 1.5px solid #bae6fd;
  color: #0369a1;
}

/* ── Success Screen ── */
.success-card {
  text-align: center;
  padding: 2rem 2.5rem 2.5rem;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4edda, #a8d5b5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

.success-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.success-card .subtitle {
  font-size: 0.92rem;
  color: var(--text-mid);
  margin-bottom: 1.75rem;
}

.rma-badge {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary-light);
  border: 2px dashed var(--primary);
  border-radius: var(--radius-sm);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.info-box {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.info-box .info-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.info-box .info-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* ── Ineligible Screen ── */
.ineligible-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  border: 2px solid #fecaca;
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* ── Helper text ── */
.helper-text {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.3rem;
  line-height: 1.5;
}

/* ── Note box ── */
.note-box {
  background: var(--bg);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.875rem 1.1rem;
  font-size: 0.83rem;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ── Footer ── */
footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-light);
}

footer a {
  color: var(--primary);
  text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  main {
    padding: 1.5rem 0.75rem 3rem;
  }

  .card {
    padding: 1.75rem 1.25rem;
  }

  .page-header h1 {
    font-size: 1.4rem;
  }
}
