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

:root {
  --pink: #ea1877;
  --orange: #ff6b3c;
  --gradient: linear-gradient(266.43deg, #ff2667 -3.2%, #ff6b3c 102.08%);
  --dark: #2d2c2b;
  --light-bg: #fbfbfb;
  --input-bg: #f2f1ef;
  --teal: #0a98b3;
  --white: #ffffff;
  --error-border: #e74c3c;
  --error-bg: #f2d0d0;
  --radius: 8px;
  --radius-pill: 100px;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  background: var(--light-bg);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== HEADER ===== */
.header {
  background: var(--dark);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-family: 'ITC Avant Garde Gothic Pro', 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.header__logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header__badge {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}

/* ===== LAYOUT ===== */
.page-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.page-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 4px;
}

.page-subtitle {
  color: #777;
  font-size: 0.95rem;
  margin-bottom: 36px;
}

/* ===== FORM CARD ===== */
.form-card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

/* ===== FORM ELEMENTS ===== */
.form-section {
  margin-bottom: 32px;
}

.form-section__title {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--pink);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row.single {
  grid-template-columns: 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: #555;
}

.form-group label .required {
  color: var(--pink);
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: var(--dark);
  background: var(--input-bg);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(234, 24, 119, 0.1);
  background: var(--white);
}

.form-group textarea {
  height: 120px;
  padding: 12px 16px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23777' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

/* ===== DEMO ACTION SELECTOR ===== */
.demo-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 0;
}

.demo-option {
  position: relative;
}

.demo-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.demo-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  min-height: 100px;
  background: var(--white);
}

.demo-option label:hover {
  border-color: var(--pink);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(234, 24, 119, 0.12);
}

.demo-option input:checked + label {
  border-color: var(--pink);
  background: linear-gradient(135deg, rgba(234,24,119,0.04), rgba(255,107,60,0.04));
  box-shadow: 0 4px 16px rgba(234, 24, 119, 0.15);
}

.demo-option__icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--pink);
}

.demo-option__title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dark);
  margin-bottom: 2px;
}

.demo-option__desc {
  font-size: 0.72rem;
  color: #999;
}

/* Self-serve: only 1 option = Book Demo */
.demo-options.single-option {
  grid-template-columns: 1fr;
  max-width: 280px;
}

/* ===== CALENDAR EMBED AREA ===== */
.calendar-section {
  margin-top: 24px;
  display: none;
  animation: fadeIn 0.4s ease;
}

.calendar-section.visible {
  display: block;
}

.calendar-placeholder {
  border: 2px dashed #ddd;
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  background: #fafafa;
}

.calendar-placeholder__icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
  color: var(--teal);
}

.calendar-placeholder__text {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 4px;
}

.calendar-placeholder__url {
  font-size: 0.75rem;
  color: var(--teal);
  word-break: break-all;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 36px;
  border: none;
  border-radius: var(--radius-pill);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn--primary {
  background: var(--gradient);
  color: var(--white);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(234, 24, 119, 0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--dark);
  border: 2px solid #ddd;
}

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

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

/* ===== THANK YOU STATE ===== */
.thank-you {
  display: none;
  text-align: center;
  padding: 60px 24px;
}

.thank-you.visible {
  display: block;
  animation: fadeIn 0.5s ease;
}

.thank-you__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.thank-you__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.thank-you__message {
  color: #777;
  font-size: 0.95rem;
  margin-bottom: 32px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.thank-you__demo-badge {
  display: inline-block;
  background: rgba(234, 24, 119, 0.08);
  color: var(--pink);
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

/* ===== INDEX / LANDING ===== */
.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 70px);
  text-align: center;
  padding: 48px 24px;
}

.landing__title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.landing__subtitle {
  color: #777;
  margin-bottom: 48px;
  font-size: 1rem;
}

.landing__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 640px;
  width: 100%;
}

.landing-card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px 28px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  text-decoration: none;
  color: var(--dark);
  transition: all 0.3s;
  border: 2px solid transparent;
}

.landing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border-color: var(--pink);
}

.landing-card__icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  color: var(--pink);
}

.landing-card__title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.landing-card__desc {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.5;
}

/* ===== STEP INDICATOR ===== */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #bbb;
  transition: color 0.3s;
}

.step.active {
  color: var(--pink);
}

.step.completed {
  color: var(--teal);
}

.step__number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  background: #eee;
  color: #bbb;
  transition: all 0.3s;
}

.step.active .step__number {
  background: var(--gradient);
  color: var(--white);
}

.step.completed .step__number {
  background: var(--teal);
  color: var(--white);
}

.step-line {
  width: 60px;
  height: 2px;
  background: #e0e0e0;
  margin: 0 16px;
}

/* ===== STEP 2 HEADER ===== */
.step2-header {
  text-align: center;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
}

.step2-lead-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark);
}

.step2-lead-email {
  font-size: 0.85rem;
  color: #888;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .demo-options { grid-template-columns: 1fr; }
  .landing__cards { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .page-title { font-size: 1.5rem; }
  .form-actions { flex-direction: column; }
  .btn { width: 100%; }
  .header { padding: 16px 20px; }
}
