/* DOCTI CONNECT — LANDING PAGE (LIGHT MODE, PATIENT-FACING) */

body {
  background: var(--bg-light) !important;
  color: var(--ink) !important;
}

/* === NAV === */
.connect-nav {
  background: rgba(247,247,250,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}

.connect-nav.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* === HERO === */
.connect-hero {
  background: linear-gradient(135deg, #EBF4FA 0%, #F7F7FA 70%);
  padding-top: 112px;
  padding-bottom: 80px;
}

/* === STEP FLOW === */
.connect-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.step-number {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--docti-blue);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.step-arrow {
  color: var(--docti-blue);
  font-size: 24px;
  font-weight: 600;
  opacity: 0.5;
}

/* === CARDS === */
.connect-card {
  background: var(--surface-light);
  border: 1px solid var(--divider);
  border-radius: var(--r-card);
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: all var(--t-normal);
}
.connect-card:hover {
  box-shadow: 0 8px 32px rgba(119,177,204,0.15);
  transform: translateY(-2px);
}

.connect-form-card {
  background: var(--surface-light);
  border: 1px solid var(--divider);
  border-radius: var(--r-card);
  box-shadow: 0 20px 60px rgba(119,177,204,0.12);
}

/* === PAIN CARDS === */
.pain-card {
  background: var(--surface-light);
  border: 1px solid var(--divider);
  border-radius: var(--r-card);
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.pain-stat-connect {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--docti-orange);
  line-height: 1;
}

/* === FORM INPUTS === */
.connect-input {
  background-color: var(--bg-light);
  background-image: none;
  border: 1.5px solid var(--divider);
  border-radius: var(--r-input);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 12px 16px;
  width: 100%;
  outline: none;
  transition: border-color var(--t-fast);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  -webkit-text-fill-color: var(--ink);
  box-shadow: none;
}
.connect-input::-ms-expand { display: none; }
.connect-input::placeholder { color: var(--muted); }
.connect-input:focus {
  border-color: var(--docti-blue);
  box-shadow: 0 0 0 3px rgba(119,177,204,0.12);
}
/* iOS zooms inputs below 16px on focus → bump on phones to prevent
   focus-zoom artifacts under selects. */
@media (max-width: 640px) {
  .connect-input { font-size: 16px; }
}

.connect-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--bg-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%234A4A4F' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 40px;
  cursor: pointer;
  box-shadow: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.connect-select::-ms-expand { display: none; }

/* === AVAILABILITY DOT === */
.availability-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* === SPECIALTY TAGS === */
.specialty-tag {
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-badge);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  letter-spacing: 0.03em;
}

.specialty-tag-blue {
  background: rgba(119,177,204,0.12);
  color: var(--docti-blue-dark);
}

.specialty-tag-orange {
  background: rgba(242,179,113,0.15);
  color: var(--docti-orange-dark);
}

/* === STEP CARDS (how it works) === */
.how-step-card {
  background: var(--surface-light);
  border: 1px solid var(--divider);
  border-radius: var(--r-card);
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  text-align: center;
}

.how-step-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(119,177,204,0.10);
  color: var(--docti-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.how-step-icon svg { width: 26px; height: 26px; }
.how-step-icon-orange {
  background: rgba(242,179,113,0.10);
  color: var(--docti-orange);
}

/* === PAIN-CARD ICONS (Connect) === */
.pain-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(242,179,113,0.10);
  color: var(--docti-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.pain-icon-circle svg { width: 26px; height: 26px; }

/* === LOCATION BADGE (replaces flag emoji) === */
.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.location-badge svg { width: 12px; height: 12px; }

.how-step-number {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--docti-blue);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 16px;
}

/* === DOCTOR AVATAR === */
.doctor-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: white;
  flex-shrink: 0;
}

/* === SECTION ALT === */
.section-alt {
  background: #EBF4FA;
}

/* === STAR RATING === */
.star-rating {
  color: var(--docti-orange);
  font-size: 14px;
  letter-spacing: 1px;
}

/* === SUCCESS STATE === */
.success-state {
  display: none;
}
.success-state.show {
  display: flex;
}

/* === FADE-IN ANIMATION === */
.fade-in-section {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .pain-stat-connect { font-size: 2rem; }
  .connect-hero { padding-top: 96px; padding-bottom: 60px; }
  .step-flow-row { flex-direction: column; align-items: center; }
  .step-flow-row .step-arrow { transform: rotate(90deg); }
}

/* === MOBILE OPTIMIZATIONS (≤640px) === */
@media (max-width: 640px) {
  /* Tighter section padding so content breathes on phones */
  .docti-section { padding-top: 48px; padding-bottom: 48px; }
  .docti-container { padding-left: 16px; padding-right: 16px; }

  /* Hero — smaller padding, font scaling already via clamp() */
  .connect-hero { padding-top: 88px; padding-bottom: 48px; }
  .connect-hero h1 { font-size: clamp(2.2rem, 8vw, 3rem) !important; }

  /* Step-flow on mobile — keep numbers compact */
  .step-number { width: 38px; height: 38px; font-size: 16px; }
  .step-arrow { font-size: 20px; margin-top: 0 !important; transform: rotate(90deg); }

  /* Pain cards — smaller stat numbers, tighter padding */
  .pain-card { padding: 20px; }
  .pain-icon-circle { width: 48px; height: 48px; }
  .pain-icon-circle svg { width: 22px; height: 22px; }

  /* How-step cards — compact */
  .how-step-card { padding: 24px 18px; }
  .how-step-icon { width: 48px; height: 48px; }
  .how-step-icon svg { width: 22px; height: 22px; }

  /* Doctor cards — compact */
  .connect-card { padding: 16px; }
  .doctor-avatar { width: 44px; height: 44px; font-size: 15px; }

  /* "Filtra y encuentra" search mockup — compact */
  .connect-card[style*="max-width: 380px"] { padding: 16px !important; }

  /* Form card — full bleed */
  .connect-form-card { border-radius: 20px; }

  /* CTAs full-width */
  .btn-lg { width: 100%; justify-content: center; }
}

/* === MOBILE — very narrow (≤380px) === */
@media (max-width: 380px) {
  .pain-stat-connect { font-size: 1.7rem; }
  .step-number { width: 34px; height: 34px; font-size: 14px; }
}
