/* ==========================================================================
   Solvyn Group — Malik Group Client Content Form
   Design: deep navy + brushed gold, corporate/editorial register
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600&display=swap');

:root {
  --ink:        #14161c;
  --ink-soft:   #4a4e5a;
  --paper:      #faf9f6;
  --surface:    #ffffff;
  --line:       #e4e1d8;
  --navy:       #101c33;
  --navy-soft:  #1c2c4d;
  --gold:       #b8963f;
  --gold-soft:  #e7d5a3;
  --success:    #1c7c4d;
  --radius:     3px;
  --shadow:     0 1px 2px rgba(16,28,51,0.06), 0 8px 24px rgba(16,28,51,0.05);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold-soft); }

a { color: var(--navy); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #fff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 3px solid var(--gold);
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.6px;
}
.topbar .brand .mark {
  width: 26px; height: 26px;
  border-radius: 5px;
  background: linear-gradient(135deg, #2563eb, #1a3a6b);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 800;
}
.topbar .subtitle {
  font-size: 11.5px;
  color: var(--gold-soft);
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  display: none;
}
@media (min-width: 720px) {
  .topbar .subtitle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 56px 24px 88px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(184,150,63,0.25);
}
.hero::before {
  content: '';
  position: absolute;
  right: 20px; top: 40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(184,150,63,0.18);
}
.hero-inner { max-width: 760px; position: relative; z-index: 1; }
.hero .eyebrow {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  color: var(--gold-soft);
  font-size: 14px;
  margin-bottom: 10px;
}
.hero h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 14px 0;
}
.hero p {
  font-size: 14.5px;
  line-height: 1.7;
  color: #cfd4e0;
  margin: 0 0 4px 0;
  max-width: 560px;
}
.hero .badge-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 22px;
}
.hero .badge {
  border: 1px solid rgba(255,255,255,0.18);
  color: #e9ecf3;
  font-size: 11.5px;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 500;
}

/* ---------- Layout ---------- */
.layout {
  max-width: 1080px;
  margin: -48px auto 80px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  position: relative;
  z-index: 2;
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; margin-top: -30px; }
}

/* ---------- Section nav (progress rail) ---------- */
.rail {
  position: sticky;
  top: 92px;
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 0;
  box-shadow: var(--shadow);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
@media (max-width: 860px) {
  .rail {
    position: static;
    display: flex;
    overflow-x: auto;
    padding: 10px;
    gap: 6px;
    max-height: none;
  }
}
.rail a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  border-left: 2px solid transparent;
  white-space: nowrap;
}
.rail a .num {
  font-family: 'Source Serif 4', serif;
  color: var(--gold);
  font-weight: 600;
  font-size: 11px;
  width: 16px;
}
.rail a.active {
  color: var(--navy);
  font-weight: 700;
  border-left-color: var(--gold);
  background: #faf6ea;
}
@media (max-width: 860px) {
  .rail a { border-left: none; border-radius: 20px; border: 1px solid var(--line); }
  .rail a.active { border-color: var(--gold); }
}

/* ---------- Form card ---------- */
.form-wrap { min-width: 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  scroll-margin-top: 90px;
  overflow: hidden;
}
.card-head {
  padding: 22px 26px 16px;
  border-bottom: 1px solid var(--line);
}
.card-head .kicker {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 12.5px;
  margin-bottom: 4px;
}
.card-head h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--navy);
}
.card-head p {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}
.card-body { padding: 22px 26px 26px; }

/* company accordion */
.company-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.company-block summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--navy);
  background: #faf9f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
.company-block summary::-webkit-details-marker { display: none; }
.company-block summary::after {
  content: '+';
  font-size: 18px;
  color: var(--gold);
  font-weight: 400;
}
.company-block[open] summary::after { content: '−'; }
.company-block .company-body {
  padding: 18px;
  border-top: 1px solid var(--line);
}

/* ---------- Form fields ---------- */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.field .hint {
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 400;
  display: block;
  margin-top: 2px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="number"],
.field textarea,
.field select {
  width: 100%;
  padding: 10px 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,150,63,0.15);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- File upload ---------- */
.dropzone {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  cursor: pointer;
  background: #fcfbf8;
  transition: border-color .15s ease, background .15s ease;
  position: relative;
}
.dropzone.dragover {
  border-color: var(--gold);
  background: #faf6ea;
}
.dropzone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.dropzone .dz-icon {
  font-size: 20px; color: var(--gold); margin-bottom: 6px;
}
.dropzone .dz-text {
  font-size: 12.5px; font-weight: 600; color: var(--navy);
}
.dropzone .dz-sub {
  font-size: 11px; color: var(--ink-soft); margin-top: 2px;
}
.preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.preview-grid .thumb {
  width: 64px; height: 64px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  background: #f2f1ec;
}
.preview-grid .thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.preview-grid .thumb .fname {
  font-size: 8px;
  padding: 2px;
  color: var(--ink-soft);
  text-align: center;
  word-break: break-all;
}

/* ---------- Repeatable rows ---------- */
.repeat-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}
@media (max-width: 560px) {
  .repeat-row { grid-template-columns: 1fr; }
}
.btn-add, .btn-remove {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--navy);
}
.btn-add { border-color: var(--gold); color: var(--gold); }
.btn-add:hover { background: #faf6ea; }
.btn-remove { color: #a33; border-color: #eccfcf; padding: 8px 10px; }
.btn-remove:hover { background: #fdf3f3; }

/* ---------- Submit bar ---------- */
.submit-bar {
  position: sticky;
  bottom: 0;
  background: rgba(250,249,246,0.92);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
  padding: 14px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
  border-radius: var(--radius);
}
.submit-bar .note { font-size: 11.5px; color: var(--ink-soft); }
.btn-submit {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 13px 28px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background .15s ease, transform .1s ease;
  white-space: nowrap;
}
.btn-submit:hover { background: var(--navy-soft); }
.btn-submit:active { transform: scale(0.98); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Success screen ---------- */
.success-wrap {
  max-width: 560px;
  margin: 90px auto;
  text-align: center;
  padding: 0 24px;
}
.success-wrap .icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #eaf5ee;
  color: var(--success);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-size: 26px;
}
.success-wrap h1 { font-size: 22px; color: var(--navy); margin-bottom: 10px; }
.success-wrap p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; }

/* ---------- Footer ---------- */
.page-footer {
  text-align: center;
  font-size: 11px;
  color: var(--ink-soft);
  padding: 24px;
}

/* optional pill */
.optional-pill {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
}
