.roommates-wizard * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* ===== Design System Tokens ===== */
.roommates-wizard {
  --accent: #4F46E5;
  --accent-hover: #3730A3;
  --accent-light: #E0E7FF;
  --accent-ring: rgba(79, 70, 229, 0.10);
  --bg-hover: #F9FAFB;
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;
  --border: #E2E8F0;
  --border-dark: #CBD5E1;
  --border-light: #F1F5F9;
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --error: #DC2626;
  --error-bg: #FEF2F2;
  --primary: #0A0B0D;
  --primary-hover: #1A1D21;
  --radius-full: 9999px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --radius-xl: 16px;
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -1px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.03);
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --success: #0E9F6E;
  --success-bg: #ECFDF5;
  --text-inverse: #FFFFFF;
  --text-primary: #0A0B0D;
  --text-secondary: #475569;
  --text-tertiary: #6B7280;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  box-sizing: border-box;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 600px;
  overflow: hidden;
  position: relative;
  width: 100%;
}
/* ===== Header ===== */
.roommates-wizard .wizard-header {
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  align-items: center;
  backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 1.5rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 20;
}
.roommates-wizard .wizard-back-btn {
  align-items: center;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  font-size: 0.875rem;
  font-weight: 500;
  justify-content: center;
  min-height: 40px;
  min-width: 40px;
  padding: 0 0.875rem;
  transition: all 0.2s var(--ease-out);
}
.roommates-wizard .wizard-back-btn:hover {
  background: var(--bg-hover);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
  transform: translateX(-2px);
}
.roommates-wizard .wizard-back-btn:active {
  transform: translateX(-1px);
}
.roommates-wizard .wizard-title-section {
  flex: 1;
}
.roommates-wizard .wizard-title {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
}
.roommates-wizard .wizard-subtitle {
  color: var(--text-tertiary);
  display: block;
  font-size: 0.875rem;
  margin-top: 0.125rem;
}
/* ===== Stepper ===== */
.roommates-wizard .wizard-stepper {
  align-items: center;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 2rem 1.5rem;
}
.roommates-wizard .step {
  align-items: center;
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  gap: 0.625rem;
  overflow: hidden;
  padding: 0.5rem 1rem;
  position: relative;
  transition: all 0.3s var(--ease-out);
}
.roommates-wizard .step::before {
  background: linear-gradient(135deg, var(--accent-light), transparent);
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 0.3s var(--ease-out);
}
.roommates-wizard .step:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.roommates-wizard .step.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  color: var(--text-inverse);
}
.roommates-wizard .step.active::before {
  opacity: 0.2;
}
.roommates-wizard .step-number {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  display: grid;
  font-size: 0.8125rem;
  font-weight: 600;
  height: 24px;
  place-items: center;
  transition: all 0.3s var(--ease-out);
  width: 24px;
}
.roommates-wizard .step.active .step-number {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-inverse);
}
.roommates-wizard .step-label {
  display: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.roommates-wizard .step-connector {
  background: var(--border);
  border-radius: var(--radius-full);
  height: 2px;
  overflow: hidden;
  position: relative;
  width: 2.5rem;
}
/* ===== Error Summary ===== */
.roommates-wizard .wizard-error-summary {
  animation: slideDown 0.3s var(--ease-out);
  background: var(--error-bg);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-lg);
  color: var(--error);
  margin: 0 1.5rem 1.5rem;
  padding: 1rem 1.25rem;
  position: relative;
}
.roommates-wizard .wizard-error-summary::before {
  background: var(--error);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  top: 0;
  width: 3px;
}
.roommates-wizard .wizard-error-summary strong {
  font-weight: 600;
}
.roommates-wizard .wizard-error-summary ul {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
}
/* ===== Content Area ===== */
.roommates-wizard .wizard-content {
  flex: 1;
  margin: 0 auto;
  max-width: 1024px;
  padding: 2rem 1.5rem 5rem;
  width: 100%;
}
.roommates-wizard .wizard-step {
  animation: fadeIn 0.4s var(--ease-out);
}
/* ===== Form Grid ===== */
.roommates-wizard .form-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}
/* ===== Form Fields ===== */
.roommates-wizard .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.roommates-wizard .form-label {
  align-items: center;
  color: var(--text-primary);
  display: flex;
  font-size: 0.875rem;
  font-weight: 600;
  gap: 0.375rem;
  letter-spacing: -0.01em;
}
.roommates-wizard .required {
  color: var(--error);
  font-size: 0.75rem;
}
.roommates-wizard .form-input {
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9375rem;
  min-height: 44px;
  padding: 0.75rem 1rem;
  transition: all 0.2s var(--ease-out);
  width: 100%;
}
.roommates-wizard .contact-input {
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9375rem;
  min-height: 44px;
  padding: 0.75rem 1rem;
  transition: all 0.2s var(--ease-out);
  width: 100%;
}
.roommates-wizard .form-input::placeholder {
  color: var(--text-tertiary);
}
.roommates-wizard .contact-input::placeholder {
  color: var(--text-tertiary);
}
.roommates-wizard .form-textarea::placeholder {
  color: var(--text-tertiary);
}
.roommates-wizard .form-input:hover {
  border-color: var(--border-dark);
}
.roommates-wizard .contact-input:hover {
  border-color: var(--border-dark);
}
.roommates-wizard .form-textarea:hover {
  border-color: var(--border-dark);
}
.roommates-wizard .form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
  outline: none;
}
.roommates-wizard .contact-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
  outline: none;
}
.roommates-wizard .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
  outline: none;
}
/* ===== Select Fields ===== */
.roommates-wizard select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  cursor: pointer;
  padding-right: 2.5rem;
}
/* ===== Chips ===== */
.roommates-wizard .budget-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.roommates-wizard .availability-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.roommates-wizard .lifestyle-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.roommates-wizard .chip {
  align-items: center;
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 600;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
}
.roommates-wizard .chip:hover {
  background: var(--bg-hover);
  border-color: var(--border-dark);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.roommates-wizard .chip.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  color: var(--text-inverse);
}
.roommates-wizard .chip input[type="checkbox"] {
  height: 0;
  opacity: 0;
  position: absolute;
  width: 0;
}

/* ===== Chips (radios) — ocultar el radio nativo y usar solo el pill ===== */
.roommates-wizard .availability-chips input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  pointer-events: none;
}

/* El pill es el control visual */
.roommates-wizard .availability-chips .chip {
  position: relative;
  user-select: none;
}

/* Enfoque accesible con teclado */
.roommates-wizard .availability-chips .chip:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* (Opcional, por si un día quitamos el JS que añade .active) */
.roommates-wizard .availability-chips .chip:has(input:checked) {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  color: var(--text-inverse);
}


/* ===== Contact Toggle ===== */
.roommates-wizard .contact-field-container {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.roommates-wizard .contact-toggle-group {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  display: flex;
  gap: 0.5rem;
  padding: 0.25rem;
}
/* ===== Date & Area Inputs ===== */
.roommates-wizard .date-picker-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-top: 0.625rem;
  padding: 0.75rem;
}
.roommates-wizard .area-input-group {
  align-items: stretch;
  display: flex;
  gap: 0.875rem;
}
/* ===== Textarea ===== */
.roommates-wizard .form-textarea {
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9375rem;
  min-height: 120px;
  padding: 0.75rem 1rem;
  resize: vertical;
  transition: all 0.2s var(--ease-out);
  width: 100%;
}
.roommates-wizard .textarea-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
}
.roommates-wizard .char-count {
  color: var(--text-tertiary);
  font-size: 0.8125rem;
}
.roommates-wizard .field-error {
  color: var(--error);
  font-size: 0.8125rem;
  line-height: 1.3;
  margin-top: -0.25rem;
  min-height: 1.25rem;
}
.roommates-wizard .contact-error {
  color: var(--error);
  font-size: 0.8125rem;
  line-height: 1.3;
  margin-top: -0.25rem;
  min-height: 1.25rem;
}
/* ===== Review Section ===== */
.roommates-wizard .review-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-top: 1rem;
  padding: 1.5rem;
}
.roommates-wizard .review-section h3 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.roommates-wizard .review-list {
  display: grid;
  gap: 0.625rem 1rem;
  grid-template-columns: minmax(100px, auto) 1fr;
}
.roommates-wizard .review-list dt {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}
.roommates-wizard .review-list dd {
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
}
/* ===== Footer ===== */
.roommates-wizard .wizard-footer {
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid var(--border-light);
  bottom: 0;
  margin-top: auto;
  padding: 1.25rem 1.5rem;
  position: sticky;
  z-index: 20;
}
.roommates-wizard .wizard-footer-content {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}
.roommates-wizard .wizard-footer-info {
  align-items: center;
  color: var(--text-tertiary);
  display: flex;
  font-size: 0.8125rem;
  gap: 0.5rem;
}
.roommates-wizard .wizard-footer-actions {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}
/* ===== Buttons ===== */
.roommates-wizard .btn {
  align-items: center;
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 600;
  gap: 0.5rem;
  justify-content: center;
  letter-spacing: -0.01em;
  min-height: 40px;
  padding: 0.625rem 1.25rem;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
}
.roommates-wizard .btn:hover {
  background: var(--bg-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.roommates-wizard .btn:active {
  transform: translateY(0);
}
.roommates-wizard .btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}
.roommates-wizard .btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  color: var(--text-inverse);
}
.roommates-wizard .btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: var(--shadow-lg);
}
.roommates-wizard .btn--secondary {
  background: var(--accent-light);
  border-color: transparent;
  color: var(--accent-hover);
  font-weight: 600;
}
.roommates-wizard .btn--secondary:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}
.roommates-wizard .btn--secondary:disabled {
  background: var(--bg-tertiary);
  border-color: transparent;
  color: var(--text-tertiary);
}
/* ===== Confirmation Screen ===== */
.roommates-wizard .wizard-confirmation {
  align-items: center;
  animation: fadeIn 0.5s var(--ease-out);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 450px;
  padding: 4rem 1.5rem;
  text-align: center;
}
.roommates-wizard .confirmation-icon {
  animation: scaleIn 0.5s var(--ease-out) 0.1s both;
  background: var(--success-bg);
  border: 2px solid var(--success);
  border-radius: var(--radius-full);
  color: var(--success);
  display: grid;
  font-size: 2rem;
  font-weight: 600;
  height: 72px;
  margin-bottom: 1.5rem;
  place-items: center;
  width: 72px;
}
.roommates-wizard .wizard-confirmation h2 {
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
}
.roommates-wizard .wizard-confirmation p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 auto 2rem;
  max-width: 400px;
}
.roommates-wizard .confirmation-actions {
  display: flex;
  gap: 1rem;
}
/* ===== Accessibility ===== */
.roommates-wizard .screen-reader-text {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
.roommates-wizard *:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* ===== Invalid Field Highlight ===== */
.roommates-wizard .is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}
/* optional */
.roommates-wizard .contact-toggle-btn[role="radio"][aria-checked="true"] {
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
}
.roommates-wizard .contact-toggle-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.roommates-wizard .contact-hint {
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
  margin-top: 0.25rem;
}
.roommates-wizard .contact-toggle-btn {
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: calc(var(--radius-md) - 2px);
  color: var(--text-secondary);
  cursor: pointer;
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
  transition: all 0.2s var(--ease-out);
}
/* emphasize the selected mode with gentle accent ring */
.roommates-wizard .contact-toggle-btn.is-active {
  background: var(--bg-primary);
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 0 2px var(--accent-ring), var(--shadow-sm);
  color: var(--text-primary);
}
/* ===== Global Reset & Base ===== */
.roommates-container {
  --accent: #5EADBF;
  --accent-hover: #3892A6;
  --accent-light: #CFE6EC;
  --accent-ring: rgba(94, 173, 191, 0.28);
  --bg-primary: #0A0B0D;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --shadow-lg: 0 10px 15px -3px rgba(15,23,42,.08), 0 4px 6px -2px rgba(15,23,42,.04);
  --shadow-md: 0 4px 6px -1px rgba(15,23,42,.07), 0 2px 4px -1px rgba(15,23,42,.05);
  --text-primary: #0A0B0D;
  --text-secondary: #475569;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0 auto;
  max-width: 1200px;
  padding: 1.25rem;
}
/* ===============================================
Intro card (outside the form)
=============================================== */
.intro {
  position: relative;
}
.intro.is-hidden {
  display: none !important;
}
.intro .intro__inner {
  padding: 1.25rem 1.25rem;
}
.intro__list {
  color: var(--text-primary);
  margin: 0 0 .9rem 1.05rem;
}
.intro__trust {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .2rem 0 1rem;
}
.intro__cta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.intro__link {
  color: var(--accent);
  font-size: .9rem;
  text-decoration: none;
}
.intro__link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}
/* Reusa botones del wizard para coherencia */
.roommates-container .btn {
  align-items: center;
  background: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  gap: .5rem;
  justify-content: center;
  min-height: 40px;
  padding: .625rem 1.25rem;
  transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s;
}
.roommates-container .btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 0 0 3px var(--accent-ring), var(--shadow-lg);
  transform: translateY(-1px);
}
.roommates-container .btn:active {
  transform: translateY(0);
}
/* =========================================================
OUR-NEW-US Button — versión con efectos correctos y segura
(listo para usar en la intro fuera del form)
========================================================= */
/* ✅ Botón animado con gradiente multicolor */
.btn-our-new-us {
  --clr1: #F24464;
  --clr2: #BD6DF2;
  --clr3: #6F04D9;
  --clr4: #05F258;
  animation: gradientFlow 6s ease infinite;
  background: linear-gradient(135deg, var(--clr1), var(--clr2), var(--clr3), var(--clr4));
  background-size: 300% 300%;
  border: none;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.25) inset, 0 8px 22px rgba(111, 4, 217, 0.18);
  color: #fff;
  cursor: pointer;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  isolation: isolate;
  letter-spacing: 0.5px;
  padding: 0.9em 2em;
  text-transform: uppercase;
  transition: transform 0.4s ease, box-shadow 0.4s ease, background-position 0.4s ease, filter 0.4s ease;
}
/* Hover: corre el gradiente + glow exterior */
.btn-our-new-us:hover {
  background-position: 100% 0;
  box-shadow: 0 0 25px rgba(188, 109, 242, 0.8),
    0 0 50px rgba(5, 242, 88, 0.4),
    0 10px 26px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}
/* Active/click */
.btn-our-new-us:active {
  box-shadow: 0 0 10px rgba(242, 67, 99, 0.5);
  transform: scale(0.97);
}
/* Accesibilidad: focus ring visible en fondos oscuros y claros */
.btn-our-new-us:focus-visible {
  outline: 3px solid rgba(94, 173, 191, 0.95);
  outline-offset: 3px;
}
/* Disabled */
.btn-our-new-us:disabled {
  cursor: not-allowed;
  filter: grayscale(0.2);
  opacity: 0.6;
}
/* Variante opcional: flotante en esquina (como tu versión original) */
.btn-our-new-us.is-floating {
  bottom: 2rem;
  position: absolute;
  right: 2rem;
}
/* Pequeño ajuste si lo usas dentro del bloque de la intro */
.intro__cta .btn-our-new-us {
  margin-right: .25rem;
}
.intro__title {
  color: var(--text-primary);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 .5rem;
  margin-bottom: 0.75rem;
}
.intro__lead {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 .8rem;
  margin-bottom: 1.25rem;
}
.intro__eyebrow {
  color: var(--text-secondary);
  font-size: .75rem;
  letter-spacing: 0.14em;
  margin-bottom: .25rem;
  opacity: 0.8;
  text-transform: uppercase;
}
.intro__list li {
  line-height: 1.55;
  margin: 0.4rem 0;
  padding-left: 1.75rem;
  position: relative;
}
.pill {
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 9999px;
  color: var(--text-secondary);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  transition: background 0.2s var(--ease-out);
}
.pill:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  cursor: default;
}
.intro__inner {
  animation: fadeInUp 0.5s var(--ease-out);
}
.roommates-wizard .wizard-footer-actions .btn[hidden] {
  display: none !important;
}
.roommates-wizard .form-hint {
  color: var(--text-tertiary);
  font-size: 0.95rem;
  line-height: 1.5;
}
.nym-success-hub {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 0 auto;
  max-width: 900px;
  padding: 2rem 1.5rem;
}
/* Hero Section */
.success-hero {
  margin-bottom: 3rem;
  text-align: center;
}
.success-icon-wrapper {
  display: inline-block;
  margin-bottom: 1.5rem;
  position: relative;
}
.success-icon-bg {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  inset: -20px;
  opacity: 0.1;
  position: absolute;
}
.success-icon {
  align-items: center;
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  font-size: 4rem;
  height: 100px;
  justify-content: center;
  position: relative;
  width: 100px;
}
.success-title {
  color: #0A0B0D;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 0.5rem;
}
.success-subtitle {
  color: #64748B;
  font-size: 1.125rem;
  margin: 0;
}
/* Timeline */
.success-timeline-wrapper {
  background: linear-gradient(to bottom, #F8FAFC, #FFFFFF);
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  margin-bottom: 2rem;
  padding: 2rem;
}
.success-timeline {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  position: relative;
}
.timeline-step {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  position: relative;
  z-index: 2;
}
.timeline-icon {
  align-items: center;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 50%;
  display: flex;
  height: 48px;
  justify-content: center;
  margin-bottom: 0.75rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 48px;
}
.timeline-step.completed .timeline-icon {
  background: #ECFDF5;
  border-color: #10B981;
}
.timeline-step.active .timeline-icon {
  background: #4F46E5;
  border-color: #4F46E5;
  box-shadow: 0 0 0 8px rgba(79, 70, 229, 0.1);
  transform: scale(1.1);
}
.timeline-icon-content {
  filter: grayscale(100%);
  font-size: 1.25rem;
  opacity: 0.5;
  transition: all 0.3s;
}
.timeline-step.completed .timeline-icon-content {
  filter: grayscale(0%);
  opacity: 1;
}
.timeline-step.active .timeline-icon-content {
  filter: grayscale(0%);
  opacity: 1;
}
.timeline-pulse {
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
  background: #4F46E5;
  border-radius: 50%;
  inset: 0;
  opacity: 0.4;
  position: absolute;
}
.timeline-info {
  text-align: center;
}
.timeline-info h4 {
  color: #1E293B;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}
.timeline-eta {
  color: #94A3B8;
  font-size: 0.75rem;
}
.timeline-connector {
  background: #E2E8F0;
  height: 2px;
  position: absolute;
  top: 24px;
  width: calc(100% - 48px);
  z-index: 1;
}
.timeline-connector.completed {
  background: linear-gradient(90deg, #10B981, #10B981);
}
/* Status Card */
.status-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.75rem;
  transition: all 0.3s;
}
.status-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.status-icon {
  align-items: center;
  display: flex;
  font-size: 2.5rem;
  justify-content: center;
  min-width: 60px;
}
.status-content h3 {
  color: #0A0B0D;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.status-content p {
  color: #64748B;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}
.status-card.status-new {
  border-left: 3px solid #4F46E5;
}
.status-card.status-contacted {
  border-left: 3px solid #F59E0B;
}
.status-card.status-matched {
  border-left: 3px solid #10B981;
}
/* Action Buttons */
.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.btn-action {
  align-items: center;
  border: 2px solid transparent;
  border-radius: 10px;
  display: inline-flex;
  font-size: 0.9375rem;
  font-weight: 600;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary {
  background: #4F46E5;
  color: white;
}
.btn-primary:hover {
  background: #3730A3;
  box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.25);
  transform: translateY(-2px);
}
.btn-secondary {
  background: #E0E7FF;
  color: #4F46E5;
}
.btn-secondary:hover {
  background: #C7D2FE;
}
.btn-ghost {
  background: transparent;
  border-color: #E2E8F0;
  color: #64748B;
}
.btn-ghost:hover {
  background: #F8FAFC;
  color: #475569;
}
.btn-icon {
  transition: transform 0.2s;
}
.btn-primary:hover .btn-icon {
  transform: translateX(4px);
}
/* Quick Links */
.quick-links {
  margin-bottom: 3rem;
  text-align: center;
}
.quick-links a {
  color: #4F46E5;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.quick-links a:hover {
  color: #3730A3;
  text-decoration: underline;
}
.separator {
  color: #CBD5E1;
  margin: 0 1rem;
}
/* Info Sections */
.info-sections {
  margin-top: 3rem;
}
.info-section {
  border-top: 1px solid #E2E8F0;
  margin-bottom: 3rem;
  padding-top: 2rem;
}
.section-title {
  color: #0A0B0D;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 2rem;
}
/* Steps Grid */
.next-steps-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 2rem;
}
.next-step-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  transition: all 0.3s;
}
.next-step-card:hover {
  border-color: #4F46E5;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
  transform: translateY(-2px);
}
.next-step-number {
  align-items: center;
  background: #4F46E5;
  border-radius: 50%;
  color: white;
  display: flex;
  font-size: 0.875rem;
  font-weight: 700;
  height: 28px;
  justify-content: center;
  left: 20px;
  position: absolute;
  top: -12px;
  width: 28px;
}
.next-step-card h4 {
  color: #0A0B0D;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.next-step-card p {
  color: #64748B;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}
/* Documents Card */
.documents-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  color: white;
  margin-top: 2rem;
  padding: 1.75rem;
}
.documents-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1rem;
}
.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.doc-list li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
}
.doc-list li:before {
  content: "✓";
  font-weight: bold;
  left: 0;
  opacity: 0.9;
  position: absolute;
}
/* Guide Grid */
.guide-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.guide-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s;
}
.guide-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.guide-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.guide-card h4 {
  color: #0A0B0D;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.guide-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.guide-card li {
  color: #64748B;
  font-size: 0.875rem;
  padding: 0.375rem 0;
  padding-left: 1.25rem;
  position: relative;
}
.guide-card li:before {
  color: #4F46E5;
  content: "•";
  font-weight: bold;
  left: 0;
  position: absolute;
}
.pro-tip {
  background: linear-gradient(135deg, #E0E7FF, #F0F4FF);
  border-left: 4px solid #4F46E5;
  border-radius: 8px;
  color: #334155;
  font-size: 0.9375rem;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
}
.roommates-wizard .field-error:empty {
  display: block;
  height: 0;
  margin-top: 0;
  min-height: 0;
}
.roommates-wizard .contact-error:empty {
  display: block;
  height: 0;
  margin-top: 0;
  min-height: 0;
}
/* Inline help (inside the form, subtle) */
.roommates-wizard .wizard-inline-help {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
}
.roommates-wizard .wizard-inline-help ul {
  margin: 0;
  padding-left: 1.1rem;
}
.roommates-wizard .wizard-inline-help li {
  line-height: 1.45;
  margin: .25rem 0;
}
.roommates-wizard .wizard-inline-help strong {
  color: var(--text-primary);
  font-weight: 600;
}
.roommates-wizard .wizard-inline-help em {
  color: var(--text-primary);
  font-style: normal;
}

/* Asegura que, si marcamos aria-hidden, el wrapper se oculte sí o sí */
.contact-field-container .iti[aria-hidden="true"] { display: none !important; }

/* =========================================================
   NYM — intl-tel-input (minimal theme)
   Requiere que el wrapper tenga la clase .nym-iti (ver JS)
   ========================================================= */



/* Dropdown: ancho, sombra, bordes, z-index */
.iti__dropdown-content {
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.14) !important;
  z-index: 9999 !important; /* por encima del footer */
}

/* Buscador del dropdown */
.iti__search-input-wrapper {
  height: 32px !important;
  margin: 8px 8px 6px !important;
}

.iti__search-input{
  height: 100% !important;
  font-size: 18px !important;
}
.nym-iti .iti__search-input:focus {
  border-color: var(--iti-accent);
  box-shadow: 0 0 0 3px var(--iti-accent-soft);
}

/* Items del país */
.nym-iti .iti__country {
  padding: 10px 12px;
  gap: 8px;
}
.nym-iti .iti__country-name { color: var(--iti-text); }
.nym-iti .iti__dial-code   { color: var(--iti-muted); font-weight: 500; }

.nym-iti .iti__country:hover,
.nym-iti .iti__country.iti__highlight {
  background: var(--iti-accent-soft);
}

/* Divider del listado, más sutil */
.nym-iti .iti__divider {
  height: 1px;
  background: var(--iti-border-light);
  margin: 4px 8px;
}

/* Evitar cortes del dropdown por contenedores con overflow */
.roommates-wizard,
.contact-field-container {
  overflow: visible;
}

/* Asegura el input + dial code se vean integrados */
.nym-iti .iti__selected-flag,
.nym-iti input[type="tel"] {
  background-clip: padding-box;
}


/* ===== Both Contact Fields Required Styles ===== */
.roommates-wizard .form-field .form-label {
  margin-bottom: 0.5rem;
}

.roommates-wizard .contact-input,
.roommates-wizard .form-input[type="email"],
.roommates-wizard .form-input[type="tel"] {
  width: 100%;
}

/* Make sure ITI wrapper doesn't break layout */
.roommates-wizard .iti {
  width: 100%;
  display: block;
}

.roommates-wizard .iti__flag-container {
  z-index: 50;
}

/* =========================================================
   NYM — intl-tel-input (Enhanced Theme)
   ========================================================= */

/* Wrapper styling */
.iti {
  width: 100% !important;
  display: block !important;
  position: relative !important;
}

.iti__flag-container {
  z-index: 50 !important;
}

.iti__selected-flag {
  padding: 0 0 0 12px !important;
  background: var(--bg-primary) !important;
  border-radius: var(--radius-md) 0 0 var(--radius-md) !important;
}

/* ✅ FIX: Input integration with proper padding for dial code */
.iti input[type="tel"],
.nym-iti input[type="tel"] {
  padding-left: 92px !important; /* ← Increased from 60px to 92px */
  width: 100% !important;
  border-radius: var(--radius-md) !important;
}

/* When showing dial code separately */
.iti--separate-dial-code input[type="tel"],
.iti--separate-dial-code.nym-iti input[type="tel"] {
  padding-left: 92px !important; /* Space for flag + dial code */
}

/* Style the dial code display */
.iti--separate-dial-code .iti__selected-dial-code {
  font-weight: 500 !important;
  color: var(--text-primary) !important;
  margin-left: 4px !important;
}

/* Dropdown styling */
.iti__dropdown-content {
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.14) !important;
  z-index: 9999 !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border) !important;
  max-height: 300px !important;
}

/* Search input in dropdown */
.iti__search-input-wrapper {
  height: 32px !important;
  margin: 8px 8px 6px !important;
  padding: 0 !important;
}

.iti__search-input {
  height: 100% !important;
  font-size: 14px !important;
  padding: 0 35px !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border) !important;
}

.iti__search-input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-ring) !important;
  outline: none !important;
}

/* Country items */
.iti__country {
  padding: 10px 12px !important;
  gap: 8px !important;
}

.iti__country-name { 
  color: var(--text-primary) !important; 
}

.iti__dial-code { 
  color: var(--text-secondary) !important; 
  font-weight: 500 !important; 
}

.iti__country:hover,
.iti__country.iti__highlight {
  background: var(--accent-light) !important;
}

/* Divider in list */
.iti__divider {
  height: 1px !important;
  background: var(--border-light) !important;
  margin: 4px 8px !important;
}

/* Arrow icon */
.iti__arrow {
  border-left: 4px solid transparent !important;
  border-right: 4px solid transparent !important;
  border-top: 5px solid var(--text-secondary) !important;
}

/* Hide country list when input is hidden */
.iti[aria-hidden="true"] { 
  display: none !important; 
}

/* Ensure dropdown doesn't get clipped */
.roommates-wizard,
.wizard-content,
.form-field {
  overflow: visible !important;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .iti__dropdown-content {
    max-width: 90vw !important;
  }
  
  /* Slightly less padding on mobile if needed */
  .iti input[type="tel"],
  .nym-iti input[type="tel"] {
    padding-left: 85px !important;
  }
}


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

@keyframes bounceIn {
  from {
    transform: scale(0);
  }
  50% {
    transform: scale(1.05);
  }
  to {
    transform: scale(1);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes ping {
  75% {
    opacity: 0;
    transform: scale(2);
  }
  100% {
    opacity: 0;
    transform: scale(2);
  }
}

@media (max-width: 768px) {
  .success-timeline {
    flex-direction: column;
    gap: 1rem;
  }
  .timeline-connector {
    display: none;
  }
  .timeline-step {
    flex-direction: row;
    gap: 1rem;
    justify-content: flex-start;
    width: 100%;
  }
  .timeline-info {
    text-align: left;
  }
  .status-card {
    flex-direction: column;
    text-align: center;
  }
  .success-actions {
    flex-direction: column;
  }
  .btn-action {
    justify-content: center;
    width: 100%;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nym-success-hub {
    padding: 1.5rem 1rem;
  }
  .success-title {
    font-size: 1.5rem;
  }
  .success-icon {
    font-size: 3rem;
    height: 80px;
    width: 80px;
  }
  .success-timeline-wrapper {
    padding: 1.5rem 1rem;
  }
}

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

@media (min-width: 640px) {
  .roommates-wizard .step-label {
    display: block;
  }
  .intro .intro__inner {
    padding: 0rem;
  }
}

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

@media (min-width: 768px) {
  .roommates-wizard .form-grid {
    gap: 2rem;
    grid-template-columns: 1fr 1fr;
  }
  .roommates-wizard .full-width {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .roommates-container {
    align-items: start;
    gap: 1.5rem;
    grid-template-columns: .9fr 1.1fr;
    margin: 0 15%;
  }
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-our-new-us {
    animation: none;
    transition: none;
  }
}

@media (max-width: 1023px) {
  .roommates-container > .roommates-wizard {
    grid-column: 1 / -1;
  }
  .roommates-container > .intro {
    grid-column: 1 / -1;
  }
}

@media (max-width: 639px) {
  /* 1. Reduce padding on the main container */
  .roommates-container {
    max-width: -webkit-fill-available;
    padding: 0rem;
  }
  .roommates-wizard .wizard-header {
    padding: 1.25rem 1rem;
  }
  .roommates-wizard .wizard-title {
    font-size: 1.25rem;
  }
  /* 2. Reduce padding on the stepper */
  .roommates-wizard .wizard-stepper {
    padding: 1.5rem 1rem;
  }
  .roommates-wizard .wizard-content {
    padding: 1.5rem 1rem 5rem;
  }
  /* 3. Reduce padding on the contact box */
  .roommates-wizard .contact-field-container {
    padding: 1rem;
  }
  /* 4. Stack contact buttons vertically */
  .roommates-wizard .contact-toggle-group {
    flex-direction: column;
    gap: 0.75rem;
  }
  .roommates-wizard .wizard-footer {
    padding: 1rem;
  }
  .roommates-wizard .wizard-footer-content {
    align-items: stretch;
    flex-direction: column;
  }
  .roommates-wizard .wizard-footer-info {
    justify-content: center;
    margin-bottom: 0.75rem;
  }
  .roommates-wizard .wizard-footer-actions {
    justify-content: stretch;
  }
  .roommates-wizard .btn {
    flex: 1;
  }
  .roommates-wizard .area-input-group {
    flex-direction: column;
  }
  .intro__title {
    font-size: 1.4rem;
  }
  .intro__lead {
    font-size: 0.9rem;
  }
  .intro .intro__inner {
    padding: 0.5rem;
  }
}
