/* ── ONBOARDING PAGE STYLES ────────────────────────────────────────── */
/* Extends theme.css design tokens. Must stay consistent with the     */
/* CreceYa brand (--orange, --dark, --font-display, --font-body).   */

/* ── WRAP ── */
.onboarding-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── HERO (form) ── */
.ob-hero {
  padding: 64px 0 40px;
  text-align: center;
}

.ob-badge {
  display: inline-block;
  background: var(--warm);
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ob-badge-done {
  background: #E8FBF0;
  color: #16A34A;
}

.ob-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.ob-sub {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto;
}

/* ── FORM SECTION ── */
.ob-form-section {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 64px;
}

.ob-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.ob-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ob-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ob-field label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--dark);
}

.ob-req {
  color: var(--orange);
}

.ob-field input[type="text"],
.ob-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--light);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.ob-field input[type="text"]:focus,
.ob-field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.12);
  background: var(--white);
}

.ob-field input[type="text"]::placeholder,
.ob-field textarea::placeholder {
  color: #B0A8A0;
}

.ob-hint {
  font-size: 0.8rem;
  color: var(--gray);
}

/* ── RADIO CARDS ── */
.ob-radios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ob-radio-card {
  display: block;
  cursor: pointer;
}

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

.ob-radio-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--light);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.ob-radio-card input[type="radio"]:checked + .ob-radio-label {
  border-color: var(--orange);
  background: var(--warm);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.1);
}

.ob-radio-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark);
}

.ob-radio-desc {
  font-size: 0.8rem;
  color: var(--gray);
}

/* ── SUBMIT BUTTON ── */
.ob-submit-btn {
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background 0.2s, transform 0.15s;
  align-self: flex-start;
}

.ob-submit-btn:hover:not(:disabled) {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.ob-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── RESULT HERO ── */
.ob-result-hero {
  padding: 64px 0 40px;
  text-align: center;
}

/* ── WHATSAPP CARD ── */
.ob-result-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 56px;
}

.ob-whatsapp-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.ob-wa-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: #F0FDF4;
  border-bottom: 1px solid #BBF7D0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #16A34A;
}

.ob-wa-icon {
  font-size: 1.1rem;
}

.ob-wa-message {
  padding: 28px 24px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--dark);
  font-style: italic;
}

.ob-wa-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: var(--light);
  border-top: 1px solid var(--border);
}

.ob-wa-tag {
  font-size: 0.78rem;
  font-weight: 600;
  background: #DCFCE7;
  color: #15803D;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.03em;
}

.ob-wa-len {
  font-size: 0.8rem;
  color: var(--gray);
}

/* ── COPY BUTTON ── */
.ob-copy-row {
  display: flex;
  justify-content: flex-start;
}

.ob-copy-btn {
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: -0.01em;
}

.ob-copy-btn:hover {
  background: #2D2D4A;
}

.ob-copy-btn.copied {
  background: #16A34A;
}

/* ── VIDEOS SECTION ── */
.ob-videos-section {
  margin-top: 8px;
  padding: 48px;
  background: var(--warm);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
}

.ob-videos-header {
  text-align: center;
  margin-bottom: 36px;
}

.ob-videos-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
  margin-bottom: 12px;
}

.ob-videos-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.ob-videos-sub {
  font-size: 0.95rem;
  color: var(--gray);
}

.ob-videos-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.ob-video-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.ob-video-card:hover {
  box-shadow: 0 4px 16px rgba(255, 90, 31, 0.1);
  transform: translateY(-1px);
}

.ob-video-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  background: var(--dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ob-video-play {
  font-size: 1.4rem;
  color: var(--orange);
}

.ob-video-num {
  position: absolute;
  bottom: 4px;
  right: 6px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(255,255,255,0.4);
}

.ob-video-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ob-video-info h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
}

.ob-video-info p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.5;
}

.ob-video-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.03em;
}

.ob-videos-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ob-videos-note {
  font-size: 0.9rem;
  color: var(--gray);
}

.ob-cta-btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: -0.01em;
}

.ob-cta-btn:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

/* ── FOOTER ── */
.ob-footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 0.8rem;
  color: var(--gray);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

/* ── NEXT STEP ROW ── */
.ob-next-step-row {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.ob-next-btn {
  display: inline-block;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s;
}

.ob-next-btn:hover {
  background: #2D2D4A;
}

/* ── BACK LINK ── */
.ob-back-row {
  margin-top: 20px;
}

.ob-back-link {
  font-size: 0.88rem;
  color: var(--gray);
  text-decoration: none;
}

.ob-back-link:hover {
  color: var(--orange);
}

/* ── ASSETS TIP ── */
.ob-assets-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

.ob-tip-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ob-assets-tip p {
  font-size: 0.88rem;
  color: var(--gray);
  margin: 0;
}

/* ── STEP PROGRESS STEPPER ── */
.ob-steps-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 24px 0 0;
}

.ob-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--white);
  border: 2px solid var(--border);
  color: var(--gray);
  flex-shrink: 0;
}

.ob-step-dot.ob-step-done {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.ob-step-dot.ob-step-active {
  background: var(--white);
  border-color: var(--orange);
  color: var(--orange);
}

.ob-step-line {
  width: 24px;
  height: 2px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── FILE UPLOAD ZONES ── */
.ob-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--light);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
  margin-top: 8px;
}

.ob-upload-zone:hover,
.ob-upload-zone.drag-over {
  border-color: var(--orange);
  background: var(--warm);
}

.ob-upload-zone.has-file {
  border-color: #16A34A;
  background: #F0FDF4;
}

.ob-upload-icon {
  font-size: 1.8rem;
}

.ob-upload-text {
  font-size: 0.88rem;
  color: var(--gray);
}

.ob-upload-link {
  color: var(--orange);
  font-weight: 600;
  cursor: pointer;
}

.ob-upload-link:hover {
  text-decoration: underline;
}

.ob-file-input {
  display: none;
}

.ob-upload-status {
  font-size: 0.82rem;
  font-weight: 600;
  color: #16A34A;
  min-height: 20px;
}

.ob-field input[type="url"] {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--light);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ob-field input[type="url"]:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.12);
  background: var(--white);
}

.ob-field input[type="url"]::placeholder {
  color: #B0A8A0;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .onboarding-wrap {
    padding: 0 16px 60px;
  }

  .ob-form-section {
    padding: 28px 20px;
  }

  .ob-radios {
    grid-template-columns: 1fr;
  }

  .ob-submit-btn {
    width: 100%;
  }

  .ob-videos-section {
    padding: 32px 20px;
  }

  .ob-video-card {
    flex-direction: column;
    gap: 14px;
  }

  .ob-video-thumb {
    width: 100%;
    height: 48px;
  }
}