/* ============================================================
   Takeover Marketing — GHL Client Onboarding Form
   styles.css
   ============================================================ */

/* --- RESET & BASE ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0a0a0f;
  --bg-panel: #0d0d14;
  --bg-card:  #111118;
  --border:   #1e1e2e;
  --text:     #e8e8f0;
  --muted:    #6b6b80;
  --subtle:   #333344;
  --accent:   #F97316;
  --font-display: 'Syne', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --radius: 8px;
  --sidebar-w: 220px;
  --right-w: 240px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  min-height: 100vh;
}

/* --- HEADER ----------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
}

.header-agency {
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.header-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.header-progress-wrap { text-align: right; }

.header-pct {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.header-pct-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}

.overall-bar {
  margin-top: 6px;
  width: 130px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-left: auto;
}

.overall-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.5s ease, background 0.3s;
}

/* --- LAYOUT ----------------------------------------------- */
.layout {
  display: flex;
  min-height: calc(100vh - 70px);
}

/* --- SIDEBAR ---------------------------------------------- */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-inner { padding: 16px 0; }

.nav-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  padding: 12px 18px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
  color: var(--text);
  font-family: var(--font-mono);
}

.nav-tab:hover { background: #14141f; }

.nav-tab.active {
  background: #14141f;
  border-left-color: var(--accent);
}

.nav-icon { font-size: 16px; flex-shrink: 0; }

.nav-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}

.nav-tab.active .nav-label { color: #fff; font-weight: 700; }

.nav-progress {
  display: block;
  font-size: 10px;
  color: var(--subtle);
  margin-top: 2px;
}

.nav-tab.active .nav-progress { color: var(--accent); }

/* --- MAIN CONTENT ----------------------------------------- */
.main-content {
  flex: 1;
  padding: 32px 36px 120px;
  overflow-y: auto;
  min-width: 0;
}

/* --- FORM SECTION ----------------------------------------- */
.section-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
  font-weight: 500;
}

.section-hint {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}

/* --- FIELD CARDS ------------------------------------------ */
.fields-list { display: flex; flex-direction: column; gap: 14px; }

.field-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color 0.2s, background 0.2s;
}

.field-card.filled {
  background: #0d1a10;
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

.field-card.error {
  border-color: #ef4444 !important;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.field-card label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #ccc;
  margin-bottom: 4px;
}

.field-card.filled label { color: #fff; }

.req-star { margin-right: 4px; }

.field-note {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.5;
}

/* --- INPUTS ----------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 9px 12px;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

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

textarea { resize: vertical; min-height: 80px; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
  cursor: pointer;
}

select option { background: #111; color: var(--text); }

input::placeholder,
textarea::placeholder { color: var(--subtle); }

/* --- SECTION NAV BUTTONS ---------------------------------- */
.section-nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.btn-prev {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-prev:hover { border-color: #fff; color: #fff; }

.btn-next {
  background: var(--accent);
  border: none;
  color: #000;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: auto;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.3px;
}

.btn-next:hover { opacity: 0.88; transform: translateX(2px); }
.btn-finish { background: #10B981; }

/* --- RIGHT PANEL ------------------------------------------ */
.right-panel {
  width: var(--right-w);
  background: var(--bg-panel);
  border-left: 1px solid var(--border);
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
  flex-shrink: 0;
}

.right-panel-inner { padding: 24px 16px; }

.panel-heading {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 14px;
}

/* --- SECTION PROGRESS (right panel) ----------------------- */
.prog-row {
  margin-bottom: 14px;
  transition: opacity 0.15s;
}

.prog-row:hover { opacity: 0.8; }

.prog-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.prog-label { font-size: 11px; color: #777; }
.prog-pct { font-size: 11px; font-weight: 600; }

.prog-track {
  height: 3px;
  background: #1a1a26;
  border-radius: 2px;
}

.prog-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* --- BLOCKERS --------------------------------------------- */
.blockers-wrap {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.blockers-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blockers-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: #666;
  line-height: 1.4;
}

.blockers-list li span { font-size: 13px; flex-shrink: 0; }

/* --- SUBMIT BAR ------------------------------------------- */
.submit-bar {
  position: fixed;
  bottom: -80px;
  left: 0;
  right: 0;
  z-index: 200;
  background: #0d1a10;
  border-top: 1px solid #10B981;
  padding: 14px 32px;
  transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.submit-bar.visible { bottom: 0; }

.submit-bar-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.submit-msg {
  font-size: 13px;
  color: #a0e0b0;
}

.btn-submit {
  background: #10B981;
  border: none;
  color: #000;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-submit:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* --- MODALS ----------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 36px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { transform: scale(0.92) translateY(10px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-icon {
  width: 56px;
  height: 56px;
  background: #0d1a10;
  border: 2px solid #10B981;
  border-radius: 50%;
  font-size: 22px;
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-weight: 700;
}

.modal-icon--error {
  background: #1a0d0d;
  border-color: #EF4444;
  color: #EF4444;
}

.modal-box h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}

.modal-box p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.btn-close-modal {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.btn-close-modal:hover { border-color: #fff; }

/* --- RESPONSIVE ------------------------------------------- */
@media (max-width: 1100px) {
  .right-panel { display: none; }
}

@media (max-width: 760px) {
  .sidebar { display: none; }
  .main-content { padding: 20px 16px 100px; }
  .header-inner { padding: 12px 16px; }
  .header-title { font-size: 16px; }
  .submit-bar-inner { flex-direction: column; gap: 10px; text-align: center; }
  .btn-submit { width: 100%; }
}
