/* ============================================================
   JIVANTA Brand Discovery Form
   Signatures Designs and Communications Pvt. Ltd.
   Theme: White bg · Black text · Red accents · Inter font
============================================================ */

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

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

:root {
  --red:        #CC0000;
  --red-dark:   #a00000;
  --red-light:  rgba(204,0,0,0.07);
  --red-border: rgba(204,0,0,0.22);
  --bg:         #f7f7f7;
  --white:      #ffffff;
  --border:     #e8e8e8;
  --border2:    #ddd;
  --text:       #111111;
  --text2:      #555555;
  --text3:      #aaaaaa;
  --radius:     10px;
  --shadow:     0 2px 16px rgba(0,0,0,0.07);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}

/* ── HEADER ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  background: var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.brand-text .brand-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.brand-text .brand-sub {
  font-size: 10px;
  color: var(--text3);
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--red-light);
  border: 1px solid var(--red-border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.03em;
}

.header-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── MAIN WRAPPER ── */
.form-outer {
  max-width: 740px;
  margin: 0 auto;
  padding: 44px 24px 80px;
}

/* ── PAGE INTRO ── */
.page-intro {
  margin-bottom: 36px;
}

.intro-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--red-light);
  border: 1px solid var(--red-border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 18px;
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.page-title span { color: var(--red); }

.page-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  max-width: 580px;
}

/* ── DISCLAIMER BANNER ── */
.disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 32px;
}

.disclaimer-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.disclaimer-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 4px;
}

.disclaimer-text p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  margin: 0;
}

/* ── PROGRESS ── */
.progress-wrap {
  margin-bottom: 28px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.progress-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
}

.progress-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
}

.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--red);
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* ── STEP DOTS ── */
.step-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.step-dot {
  height: 6px;
  width: 6px;
  border-radius: 3px;
  background: var(--border2);
  transition: all 0.3s ease;
}

.step-dot.done   { background: #ddd; }
.step-dot.active { background: var(--red); width: 20px; }

/* ── FORM SECTIONS ── */
.form-section {
  display: none;
  animation: fadeUp 0.25s ease;
}

.form-section.active { display: block; }

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

/* ── SECTION HEADER ── */
.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1.5px solid var(--border);
}

.section-num {
  width: 38px;
  height: 38px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.section-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}

.section-sub {
  font-size: 12px;
  color: var(--text3);
  margin-top: 2px;
}

/* ── CONTACT ROW ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── QUESTION BLOCK ── */
.q-block {
  margin-bottom: 28px;
}

.q-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.5;
}

.q-label .req { color: var(--red); margin-left: 2px; }

.q-hint {
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 10px;
  line-height: 1.5;
  font-style: italic;
}

/* ── TEXT INPUTS ── */
textarea,
input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.6;
}

textarea:focus,
input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204,0,0,0.08);
}

textarea::placeholder,
input::placeholder {
  color: #c0c0c0;
}

/* ── OPTION CARDS (single/multi) ── */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}

.opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
  line-height: 1.4;
}

.opt:hover {
  border-color: #bbb;
  color: var(--text);
  background: #fafafa;
}

.opt.selected {
  border-color: var(--red);
  background: var(--red-light);
  color: var(--red);
  font-weight: 600;
}

.opt-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-size: 10px;
  font-weight: 700;
}

.opt.selected .opt-dot {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.opt.selected .opt-dot::after {
  content: '✓';
}

/* ── TAG OPTIONS ── */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--border2);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
}

.tag:hover { border-color: #bbb; color: var(--text); }

.tag.selected {
  border-color: var(--red);
  background: var(--red-light);
  color: var(--red);
  font-weight: 600;
}

/* ── VALIDATION ERROR ── */
.field-error {
  font-size: 12px;
  color: var(--red);
  font-weight: 500;
  margin-top: 6px;
  display: none;
  align-items: center;
  gap: 4px;
}

.field-error.show { display: flex; }

/* ── NAVIGATION ── */
.form-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1.5px solid var(--border);
}

.btn-back {
  padding: 11px 22px;
  background: transparent;
  border: 1.5px solid var(--border2);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.15s;
}

.btn-back:hover {
  background: #f5f5f5;
  border-color: #bbb;
  color: var(--text);
}

.btn-next,
.btn-submit {
  margin-left: auto;
  padding: 11px 28px;
  background: var(--red);
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.01em;
}

.btn-next:hover,
.btn-submit:hover {
  background: var(--red-dark);
}

.btn-next:active,
.btn-submit:active {
  transform: scale(0.98);
}

.btn-next svg,
.btn-submit svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ── SUCCESS SCREEN ── */
.success-screen {
  display: none;
  text-align: center;
  padding: 60px 20px;
  animation: fadeUp 0.3s ease;
}

.success-screen.show { display: block; }

.success-circle {
  width: 80px;
  height: 80px;
  background: rgba(0,160,80,0.1);
  border: 2px solid rgba(0,160,80,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 24px;
}

.success-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.success-sub {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.8;
  max-width: 460px;
  margin: 0 auto 28px;
}

.success-brand {
  font-size: 12px;
  color: var(--text3);
  margin-top: 32px;
}

/* ── ERROR TOAST ── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #111;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 999;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.toast.error { background: var(--red); }
.toast.show  { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f5f5f5; }
::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .form-outer { padding: 24px 16px 60px; }
  .page-title { font-size: 24px; }
  .options-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-header { padding: 12px 16px; }
  .header-badge span { display: none; }
}
