/* ─── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #eef2f6;
  --surface:     #ffffff;
  --surface-2:   #f6f8fb;
  --border:      rgba(15,23,42,.10);
  --border-strong: rgba(15,23,42,.18);
  --text:        #101726;
  --muted:       #5f6977;
  --faint:       #8591a1;
  --accent:      #01696f;
  --accent-h:    #0c4e54;
  --accent-glow: rgba(1,105,111,.15);
  --hero-bg:     #07101d;
  --hero-2:      #0b1628;
  --hero-text:   #eaf0f6;
  --shadow:      0 8px 30px rgba(15,23,42,.07);
  --shadow-lg:   0 16px 48px rgba(15,23,42,.12);
  --wrap:        860px;
  --radius:      10px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }


/* ─── Wrapper ───────────────────────────────────────────── */
.ff-wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin-inline: auto;
}


/* ─── Hero ──────────────────────────────────────────────── */
.rf-hero {
  background: linear-gradient(160deg, #07101d 0%, #0c1e34 60%, #071a18 100%);
  color: var(--hero-text);
  padding: 20px 0 36px;
  position: relative;
  overflow: hidden;
}

.rf-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 500px 300px at 80% 110%, rgba(1,105,111,.18) 0%, transparent 70%),
    radial-gradient(ellipse 300px 200px at 10% -20%, rgba(78,201,208,.07) 0%, transparent 70%);
  pointer-events: none;
}

.rf-hero-inner { position: relative; }

.rf-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: rgba(234,240,246,.45);
  margin-bottom: 18px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.rf-breadcrumb a { color: inherit; }
.rf-breadcrumb a:hover { color: rgba(234,240,246,.75); }
.rf-breadcrumb-sep { opacity: .4; }

.rf-kicker {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(78,201,208,.10);
  border: 1px solid rgba(78,201,208,.22);
  color: #8ee8ed;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 14px;
}

.rf-hero h1 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.9rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 12px;
  color: #eaf0f6;
}

.rf-hero p {
  max-width: 62ch;
  color: rgba(234,240,246,.68);
  font-size: 1rem;
  line-height: 1.75;
}

/* ─── Stats bar ─────────────────────────────────────────── */
.rf-stats {
  display: flex;
  gap: 0;
  margin-top: 28px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius);
  overflow: hidden;
}
.rf-stat {
  flex: 1;
  padding: 14px 18px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.rf-stat:last-child { border-right: none; }
.rf-stat-value {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #8ee8ed;
  line-height: 1;
}
.rf-stat-label {
  font-size: .75rem;
  color: rgba(234,240,246,.45);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  margin-top: 3px;
}


/* ─── Body ──────────────────────────────────────────────── */
.rf-body {
  padding: 36px 0 72px;
}

.rf-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}


/* ─── Card ──────────────────────────────────────────────── */
.rf-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.rf-card-title {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.rf-card-sub {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 24px;
}


/* ─── Form ──────────────────────────────────────────────── */
.rf-form { display: flex; flex-direction: column; gap: 16px; }

.rf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rf-field { display: flex; flex-direction: column; gap: 5px; }

.rf-label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .02em;
}
.rf-label .rf-req { color: var(--accent); margin-left: 2px; }
.rf-label .rf-opt { color: var(--faint); font-weight: 400; font-size: .78rem; margin-left: 4px; }

.rf-input,
.rf-select,
.rf-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: .93rem;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  appearance: none;
}
.rf-input:focus,
.rf-select:focus,
.rf-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: #fff;
}
.rf-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238591a1' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.rf-textarea { resize: vertical; min-height: 90px; line-height: 1.6; }

.rf-hint {
  font-size: .77rem;
  color: var(--faint);
  margin-top: 1px;
}

/* ─── Divider ───────────────────────────────────────────── */
.rf-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4px 0;
}

/* ─── Section label ─────────────────────────────────────── */
.rf-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--faint);
  margin-bottom: -4px;
}
.rf-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Checkbox row ──────────────────────────────────────── */
.rf-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rf-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
  user-select: none;
}
.rf-check-pill input { display: none; }
.rf-check-pill:has(input:checked) {
  border-color: var(--accent);
  background: rgba(1,105,111,.07);
  color: var(--accent);
}
.rf-check-pill svg { flex-shrink: 0; }

/* ─── Submit btn ────────────────────────────────────────── */
.rf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s, transform .1s;
  align-self: flex-start;
}
.rf-submit:hover { background: var(--accent-h); }
.rf-submit:active { transform: scale(.98); }
.rf-submit svg { flex-shrink: 0; }

/* ─── Error / Success banners ───────────────────────────── */
.rf-alert {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: .89rem;
  line-height: 1.5;
}
.rf-alert--error {
  background: rgba(220,38,38,.07);
  border: 1px solid rgba(220,38,38,.22);
  color: #991b1b;
}
.rf-alert--success {
  background: rgba(1,105,111,.07);
  border: 1px solid rgba(1,105,111,.22);
  color: var(--accent-h);
  font-weight: 600;
}
.rf-alert ul { padding-left: 18px; }
.rf-alert ul li { margin-top: 4px; }

/* ─── Sidebar ───────────────────────────────────────────── */
.rf-sidebar { display: flex; flex-direction: column; gap: 16px; }

.rf-side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.rf-side-card--accent {
  background: linear-gradient(160deg, rgba(1,105,111,.07), rgba(1,105,111,.02));
  border-color: rgba(1,105,111,.20);
}

.rf-side-title {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 12px;
}

.rf-brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.rf-brand-chip {
  padding: 6px 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted);
}

.rf-tip-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rf-tip-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.55;
}
.rf-tip-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: rgba(1,105,111,.12);
  color: var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .65rem;
  font-weight: 900;
  margin-top: 1px;
}

.rf-link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: border-color .12s, background .12s;
  margin-bottom: 8px;
}
.rf-link-btn:last-child { margin-bottom: 0; }
.rf-link-btn:hover {
  border-color: var(--accent);
  background: rgba(1,105,111,.04);
}
.rf-link-btn-arrow { color: var(--faint); font-size: .75rem; }


/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 780px) {
  .rf-layout {
    grid-template-columns: 1fr;
  }
  .rf-sidebar {
    order: -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .rf-row { grid-template-columns: 1fr; }
  .rf-stats { flex-wrap: wrap; }
  .rf-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .rf-stat:last-child { border-bottom: none; }
  .rf-sidebar { grid-template-columns: 1fr; }
}