/**
 * Travel Assistance Page Styles
 * Cotizador PAX - Diseño híbrido (moderno + colores USAVisa)
 */

/* ===== PAGE WRAPPER ===== */
.ta-page {
  min-height: 100vh;
  background-image: url('/assets/images/travel-assistance/hero-bg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Fallback for browsers without WebP support */
@supports not (background-image: url('/assets/images/travel-assistance/hero-bg.webp')) {
  .ta-page {
    background-image: url('/assets/images/travel-assistance/hero-bg.jpg');
  }
}

/* Results mode: remove background image, use solid color */
.ta-page--results {
  background-image: none;
  background-color: #f8fafc;
}

/* ===== HERO SECTION ===== */
/* Hero is now hidden - quoter floats directly over background */
.ta-hero {
  display: none;
}

.ta-hero__container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.ta-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.ta-hero__eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.ta-hero__title {
  margin: 0 0 16px;
  font-size: var(--text-5xl);
  line-height: 1.15;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.5px;
}

.ta-hero__subtitle {
  margin: 0;
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

/* ===== QUOTER SECTION ===== */
.ta-quoter {
  /* Padding top to compensate for fixed navbar (~120px) + extra spacing */
  padding: 160px 0 80px;
  background: transparent;
  margin-top: 0;
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.ta-quoter__card {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: white;
  border-radius: 20px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.04),
    0 10px 40px rgba(0, 0, 0, 0.1);
}

.ta-quoter__title {
  margin: 0 0 6px;
  font-size: var(--text-3xl);
  font-weight: 700;
  color: #0f172a;
  text-align: center;
}

.ta-quoter__subtitle {
  margin: 0 0 28px;
  font-size: var(--text-lg);
  color: #64748b;
  text-align: center;
}

/* ===== FORM ===== */
.ta-form__group {
  margin-bottom: 20px;
}

.ta-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ta-form__helper {
  margin: 12px 0 0;
  font-size: var(--text-xs);
  color: #94a3b8;
}

/* ===== TRAVELER SECTION (Segmented + Stepper) ===== */
.ta-traveler-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Segmented Control (The "Switch") */
.ta-segmented-control {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 999px; /* Pill shape */
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  position: relative;
  isolation: isolate;
  margin-bottom: 20px; /* Space before quantity */
}

.ta-segmented__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.ta-segmented__option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.ta-segmented__label {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #64748b;
  font-weight: 600;
  font-size: var(--text-base);
}

.ta-segmented__icon {
  color: #94a3b8;
  transition: color 0.3s;
  flex-shrink: 0;
}

.ta-segmented__text {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.ta-segmented__sub {
  font-size: 0.85em;
  font-weight: 500;
  opacity: 0.8;
}

/* Checked State */
.ta-segmented__input:checked + .ta-segmented__label {
  background: white;
  color: #0f172a;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.ta-segmented__input:checked + .ta-segmented__label .ta-segmented__icon {
  color: #3b82f6;
}

/* Hover State */
.ta-segmented__label:hover:not(:active) {
  color: #334155;
  background: rgba(255, 255, 255, 0.7);
}

/* Focus State */
.ta-segmented__input:focus-visible + .ta-segmented__label {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Stepper Full Width */
.ta-stepper {
  display: flex;
  align-items: center;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  background: white;
  overflow: hidden;
  height: 64px; /* Taller for easier touch */
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ta-stepper:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.ta-stepper__btn {
  width: 64px;
  height: 100%;
  border: none;
  background: #f8fafc;
  color: #1e293b;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ta-stepper__btn:first-child {
  border-right: 1px solid #e2e8f0;
}

.ta-stepper__btn:last-child {
  border-left: 1px solid #e2e8f0;
}

.ta-stepper__btn svg {
  pointer-events: none;
}

.ta-stepper__btn:hover {
  background: #e2e8f0;
  color: #1d4ed8;
}

.ta-stepper__btn:active {
  background: #e2e8f0;
}

.ta-stepper__btn:disabled {
  cursor: not-allowed;
  opacity: 0.4;
  color: #cbd5e1;
}

.ta-stepper__btn:disabled:hover {
  background: transparent;
  color: #cbd5e1;
}

.ta-stepper__input {
  flex: 1;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  padding: 0;
  height: 100%;
  pointer-events: none;
}

.ta-stepper__input:focus {
  outline: none;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  .ta-segmented__text {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
    font-size: 0.9em;
  }

  .ta-segmented__label {
    padding: 10px 12px;
    min-height: 48px;
  }

  .ta-segmented__icon {
    display: none; /* Hide icon on very small screens if needed, or keep it */
  }

  /* Fix stepper buttons visibility on mobile */
  .ta-stepper {
    min-width: 100%;
    width: 100%;
  }

  .ta-stepper__btn {
    flex-shrink: 0; /* Prevent buttons from shrinking */
    min-width: 56px; /* Slightly smaller on mobile but still touchable */
    width: 56px;
  }

  .ta-stepper__input {
    min-width: 0; /* Allow input to shrink if needed */
    font-size: 20px; /* Slightly smaller on mobile */
  }
}

.ta-form__input-wrapper {
  position: relative;
}

.ta-form__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  z-index: 1;
}

.ta-form__input,
.ta-form__select {
  width: 100%;
  padding: 14px 16px 14px 44px; /* Increased left padding for icon */
  font-size: var(--text-lg);
  font-family: inherit;
  color: #0f172a;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

/* Ensure select options also have readable text size */
.ta-form__select option {
  font-size: var(--text-lg);
}

.ta-form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
  cursor: pointer;
}

.ta-form__input:focus,
.ta-form__select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.ta-form__input:hover,
.ta-form__select:hover {
  border-color: #cbd5e1;
}

.ta-form__input-wrapper:hover .ta-form__icon,
.ta-form__input-wrapper:focus-within .ta-form__icon {
  color: #3b82f6;
}

.ta-form__error {
  display: block;
  margin-top: 6px;
  font-size: 0.8125rem;
  color: #dc2626;
  min-height: 18px;
}

.ta-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 24px;
  margin-top: 28px;
  font-size: var(--text-lg);
  font-weight: 600;
  font-family: inherit;
  color: white;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.ta-form__submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.ta-form__submit:active:not(:disabled) {
  transform: translateY(0);
}

.ta-form__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ta-form__disclaimer {
  margin: 20px 0 0;
  font-size: var(--text-sm);
  color: #94a3b8;
  text-align: center;
}

/* ===== FLATPICKR CUSTOMIZATION ===== */
.flatpickr-calendar {
    font-family: inherit;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 16px;
    padding: 10px;
    width: auto !important; /* Permitir que crezca para 2 meses */
}

.flatpickr-months {
    margin-bottom: 10px;
    align-items: center; /* Alinear meses verticalmente */
}

.flatpickr-month {
    color: #0f172a;
    fill: #0f172a;
    height: 40px; /* Altura fija para el header del mes */
}

.flatpickr-current-month {
    font-weight: 600;
    font-size: 1.1em;
    padding-top: 0; /* Centrar texto */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    left: 0;
    padding-left: 28px;
    padding-right: 28px;
    white-space: nowrap;
}

.flatpickr-current-month .cur-month {
    margin-left: 0;
    margin-right: 6px;
}

.flatpickr-current-month .cur-month::after {
    content: '';
}

.flatpickr-current-month .numInputWrapper {
    width: auto;
    display: inline-flex;
    align-items: center;
}

.flatpickr-current-month .numInputWrapper span {
    display: none;
}

.flatpickr-current-month input.cur-year {
    font-weight: 600;
    padding: 0;
    width: 4ch;
    text-align: left;
    pointer-events: none;
    background: transparent;
    cursor: default;
}

.flatpickr-weekday {
    font-weight: 600;
    color: #64748b;
}

.dayContainer {
    min-width: 280px; /* Prevenir que se aplaste */
    justify-content: flex-start;
}

.flatpickr-day {
    border-radius: 8px;
    color: #334155;
    border: 1px solid transparent;
    height: 38px; /* Altura fija para evitar estiramiento */
    line-height: 38px; /* Centrado vertical */
    margin-top: 2px; /* Pequeño espacio vertical */
    flex: 0 0 calc(100% / 7);
    max-width: calc(100% / 7);
}

.flatpickr-day.today {
    border-color: #e2e8f0;
}

.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover,
.flatpickr-day:focus {
    background: #eff6ff;
    border-color: transparent;
}

.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange, 
.flatpickr-day.selected.inRange, 
.flatpickr-day.startRange.inRange, 
.flatpickr-day.endRange.inRange, 
.flatpickr-day.selected:focus, 
.flatpickr-day.startRange:focus, 
.flatpickr-day.endRange:focus, 
.flatpickr-day.selected:hover, 
.flatpickr-day.startRange:hover, 
.flatpickr-day.endRange:hover, 
.flatpickr-day.selected.prevMonthDay, 
.flatpickr-day.startRange.prevMonthDay, 
.flatpickr-day.endRange.prevMonthDay, 
.flatpickr-day.selected.nextMonthDay, 
.flatpickr-day.startRange.nextMonthDay, 
.flatpickr-day.endRange.nextMonthDay {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    box-shadow: none; /* Limpiar sombras default */
}

.flatpickr-day.inRange {
    background: #eff6ff;
    border-color: transparent;
    box-shadow: -5px 0 0 #eff6ff, 5px 0 0 #eff6ff;
}


/* ===== BENEFITS ===== */
.ta-benefits {
  padding: 48px 0 64px;
  background: #f8fafc;
}

.ta-benefits__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 48px;
  max-width: 900px;
  margin: 0 auto;
}

.ta-benefits__item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ta-benefits__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  color: #3b82f6;
  flex-shrink: 0;
}

.ta-benefits__icon svg {
  width: 24px;
  height: 24px;
}

.ta-benefits__text {
  font-size: var(--text-lg);
  font-weight: 500;
  color: #334155;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .ta-hero {
    padding: 140px 0 60px;
    min-height: 350px;
  }

  .ta-hero__title {
    font-size: 32px;
  }

  .ta-quoter__title {
    font-size: 26px;
  }

  .ta-quoter__subtitle {
    font-size: var(--text-base);
  }

  .ta-quoter {
    padding: 100px 16px 40px;
    margin-top: 0;
  }

  .ta-quoter__card {
    padding: 28px 24px;
    border-radius: 16px;
  }

  /* Ensure stepper fits properly in reduced padding */
  .ta-stepper {
    width: 100%;
  }

  .ta-stepper__btn {
    flex-shrink: 0; /* Prevent buttons from being compressed */
  }

  .ta-benefits {
    padding: 32px 16px 48px;
  }

  .ta-benefits__grid {
    gap: 20px 32px;
  }
}

@media (max-width: 540px) {
  .ta-hero {
    padding: 130px 16px 50px;
  }

  .ta-form__row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ta-benefits__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .ta-benefits__item {
    width: 100%;
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .ta-benefits__text {
    font-size: var(--text-base);
  }
}

/* ===== LOADING STATE ===== */
.ta-loading {
  padding: 2rem 0;
  min-height: 600px;
}

.ta-loading__header {
  text-align: center;
  margin-bottom: 2rem;
}

.ta-loading__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.ta-loading__subtitle {
  color: #64748b;
  font-size: var(--text-sm);
  margin: 0;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.ta-loading__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Skeleton Card */
.ta-skeleton-card {
  background: white;
  border: 2px solid #f1f5f9;
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.ta-skeleton-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  to {
    left: 100%;
  }
}

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

.ta-skeleton-card__header {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ta-skeleton-badge {
  height: 24px;
  width: 70px;
  background: #e5e7eb;
  border-radius: 6px;
}

.ta-skeleton-badge--wide {
  width: 100px;
}

.ta-skeleton-title {
  height: 28px;
  background: #e5e7eb;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  width: 75%;
}

/* Removed old coverage skeleton styles */

.ta-skeleton-coverage-badge {
  height: 32px;
  width: 140px;
  background: #f1f5f9;
  border-radius: 8px;
  margin-bottom: auto;
  border: 1px solid #e2e8f0;
}

.ta-skeleton-price {
  margin-bottom: 1.5rem;
}

.ta-skeleton-price__installments {
  height: 14px;
  background: #e5e7eb;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  width: 60%;
}

.ta-skeleton-price__monthly {
  height: 36px;
  background: #e5e7eb;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  width: 50%;
}

.ta-skeleton-price__total {
  height: 14px;
  background: #e5e7eb;
  border-radius: 4px;
  width: 40%;
}

.ta-skeleton-button {
  height: 48px;
  background: #e5e7eb;
  border-radius: 10px;
}

/* Legacy spinner (fallback) */
.ta-loading__spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: ta-spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes ta-spin {
  to { transform: rotate(360deg); }
}

.ta-loading p {
  color: #64748b;
  font-size: var(--text-base);
  margin: 0;
}

/* Loading skeleton responsive */
@media (max-width: 1024px) {
  .ta-loading__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ta-skeleton-card:nth-child(3) {
    display: none;
  }
}

@media (max-width: 640px) {
  .ta-loading {
    min-height: 500px;
  }

  .ta-loading__grid {
    grid-template-columns: 1fr;
  }

  .ta-skeleton-card:nth-child(2),
  .ta-skeleton-card:nth-child(3) {
    display: none;
  }
}

/* ===== ERROR STATE ===== */
.ta-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
}

.ta-error__message {
  color: #dc2626;
  margin: 0 0 1rem;
  font-size: var(--text-base);
}

.ta-error__retry {
  background: #dc2626;
  color: white;
  border: none;
  padding: 0.625rem 1.5rem;
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.ta-error__retry:hover {
  background: #b91c1c;
}

/* ===== RESULTS SECTION ===== */
.ta-results {
  margin-top: 2rem;
}

.ta-results__header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.ta-results__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.ta-results__meta {
  color: #64748b;
  font-size: var(--text-sm);
  margin: 0;
}

.ta-results__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* ===== PLAN CARD ===== */
.ta-plan-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.5rem;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.ta-plan-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.ta-plan-card--recommended {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
  position: relative;
}

.ta-plan-card--recommended::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 14px 14px 0 0;
}

.ta-plan-card__header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ta-plan-card__badge {
  display: inline-flex;
  align-items: center;
  background: #dcfce7;
  color: #16a34a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.ta-plan-card__recommended {
  display: inline-flex;
  align-items: center;
  background: #3b82f6;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
}

.ta-plan-card__name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem;
}

.ta-plan-card__coverage {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.ta-plan-card__coverage-label {
  display: block;
  color: #64748b;
  font-size: var(--text-sm);
  margin-bottom: 0.25rem;
}

.ta-plan-card__coverage-value {
  display: block;
  font-size: var(--text-xl);
  font-weight: 700;
  color: #0f172a;
}

.ta-plan-card__price {
  margin-bottom: 1.25rem;
}

.ta-plan-card__price-total {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.ta-plan-card__price-installments {
  display: block;
  color: #16a34a;
  font-size: var(--text-sm);
  font-weight: 500;
}

.ta-plan-card__cta {
  width: 100%;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ta-plan-card__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.ta-plan-card__cta:active {
  transform: translateY(0);
}

/* ===== RESULTS RESPONSIVE ===== */
@media (max-width: 768px) {
  .ta-results__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ta-plan-card {
    padding: 1.25rem;
  }

  .ta-results__title {
    font-size: var(--text-xl);
  }
}

@media (max-width: 540px) {
  .ta-loading {
    padding: 2rem 1rem;
  }

  .ta-plan-card__price-total {
    font-size: var(--text-xl);
  }

  .ta-plan-card__coverage-value {
    font-size: var(--text-lg);
  }
}

/* ===== SUMMARY BAR (NEW) ===== */
.ta-summary {
  position: sticky;
  top: 120px; /* Match navbar height */
  z-index: 40;
  background: white;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  margin-bottom: 0.75rem;
  animation: slideDown 0.3s ease-out;
}

/* Hide summary bar when form is being edited (prevents redundant info display) */
.ta-page--results.ta-page--form-editing .ta-summary {
  display: none;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.ta-summary__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 1rem;
}

.ta-summary__info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.ta-summary__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #334155;
  font-size: var(--text-base);
  font-weight: 500;
}

.ta-summary__icon {
  width: 18px;
  height: 18px;
  color: #94a3b8;
}

.ta-summary__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid #e2e8f0;
  color: #3b82f6;
  font-weight: 600;
  font-size: var(--text-base);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.ta-summary__btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

/* ===== RESULTS MODE MODIFICATIONS ===== */
.ta-page--results {
  padding-top: 120px; /* Compensate for fixed navbar */
}

@media (max-width: 640px) {
  .ta-page--results {
    padding-top: 84px;
  }
  
  .ta-summary {
    top: 64px; /* Mobile navbar height */
  }
}

.ta-page--results .ta-hero,
.ta-page--results .ta-quoter__title,
.ta-page--results .ta-quoter__subtitle,
.ta-page--results .ta-form:not(.ta-form--visible) {
  display: none;
}

.ta-page--results .ta-quoter {
  padding-top: 2rem;
  margin-top: 0;
  background: transparent;
}

.ta-page--results .ta-quoter__card {
  max-width: 1200px; /* Ancho completo para resultados */
  padding: 0;
  box-shadow: none;
  background: transparent;
}

.ta-results__grid {
  display: grid;
  /* 3 columnas por defecto en desktop */
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Ajustes responsive para el grid */
@media (max-width: 1024px) {
  .ta-results__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ta-results__grid {
    grid-template-columns: 1fr;
  }
  
  .ta-summary__container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .ta-summary__btn {
    width: 100%;
    justify-content: center;
  }

  .ta-summary {
    position: static;
    top: auto;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  }
}

/* Formulario desplegable en modo resultados */
.ta-form--visible {
  display: block !important;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-top: 1.5rem; /* Space below summary bar */
  margin-bottom: 2rem;
  animation: fadeIn 0.3s ease;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  scroll-margin-top: 200px; /* Account for sticky navbar + summary bar */
}

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

/* ===== FEATURED PLANS (3 TIERS) ===== */
.ta-featured {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ta-featured__subtitle {
  text-align: center;
  font-size: var(--text-lg);
  color: #64748b;
  margin: 0 0 1.5rem;
  font-weight: 500;
}

.ta-featured__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  width: 100%;
}

/* Featured Card Base */
.ta-featured-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  text-align: center; /* Center text */
  align-items: center; /* Center flex children */
  overflow: hidden; /* Ensure badges don't overflow rounded corners if needed, or keep it visible */
}

/* Discount Badge (Top Left) */
.ta-featured-card__discount,
.ta-other-card__discount {
  position: absolute;
  top: 0;
  left: 0;
  background: #10b981; /* Emerald 500 */
  color: white;
  font-size: 0.875rem;
  font-weight: 800;
  padding: 0.5rem 1rem;
  border-radius: 14px 0 14px 0;
  z-index: 10;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Add padding-top to cards with discount badge to prevent overlap */
.ta-featured-card:has(.ta-featured-card__discount),
.ta-other-card:has(.ta-other-card__discount) {
  padding-top: 2.75rem; /* Room for the discount badge */
}

.ta-featured-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Tier label */
.ta-featured-card__tier {
  display: flex;
  align-items: center;
  justify-content: center; /* Center content */
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  width: 100%;
}

.ta-featured-card__tier-icon {
  font-size: 1.25rem;
}

.ta-featured-card__tier-label {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tier colors */
.ta-featured-card--basic .ta-featured-card__tier-label {
  color: #059669;
}

.ta-featured-card--ideal .ta-featured-card__tier-label {
  color: #2563eb;
}

.ta-featured-card--experto .ta-featured-card__tier-label {
  color: #4f46e5;
}

/* Recommended badge */
.ta-featured-card__recommended {
  position: absolute;
  top: 0;
  right: 1rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.375rem 0.75rem;
  border-radius: 0 0 8px 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Badges row */
.ta-featured-card__badges {
  display: flex;
  justify-content: center; /* Center content */
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  width: 100%;
}

.ta-featured-card__badge {
  display: inline-flex;
  align-items: center;
  background: #dcfce7;
  color: #16a34a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.ta-featured-card__name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.25rem;
}

/* Removed old coverage styles */

.ta-featured-card__tagline {
  color: #64748b;
  font-size: var(--text-sm);
  margin: 0 0 1.5rem;
  /* Tagline now acts as subtitle to Name */
}

/* Price Section */
.ta-featured-card__price {
  margin-bottom: 1.5rem;
  /* Price is now the hero content */
}

/* Highlights List (Featured Cards) */
.ta-featured-card__highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  width: 100%;
}

.ta-highlight {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.ta-highlight:last-child {
  margin-bottom: 0;
}

.ta-highlight__icon {
  width: 18px;
  height: 18px;
  color: #0ea5e9; /* Sky blue - professional look */
  flex-shrink: 0;
  margin-top: 2px;
}

.ta-highlight__value {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.ta-highlight__name {
  font-size: var(--text-sm);
  color: #64748b;
}

.ta-featured-card__price-installments {
  display: block;
  color: #16a34a;
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.125rem;
}

.ta-featured-card__price-monthly {
  display: block;
  font-size: var(--text-4xl);
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.ta-featured-card__price-total {
  display: block;
  color: #64748b;
  font-size: var(--text-sm);
  font-weight: 500;
}

.ta-featured-card__cta {
  width: 100%;
  background: white;
  color: #3b82f6;
  border: 2px solid #3b82f6;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: auto;
}

.ta-featured-card__cta:hover {
  background: #eff6ff;
}

/* IDEAL card special styling */
.ta-featured-card--ideal {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6, 0 8px 24px rgba(59, 130, 246, 0.15);
  transform: scale(1.02);
  z-index: 1;
}

.ta-featured-card--ideal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 14px 14px 0 0;
}

.ta-featured-card--ideal:hover {
  transform: scale(1.02) translateY(-2px);
}

.ta-featured-card--ideal .ta-featured-card__cta {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
}

.ta-featured-card--ideal .ta-featured-card__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* ===== SHOW MORE BUTTON ===== */
.ta-show-more {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.ta-show-more__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 2px solid #e2e8f0;
  color: #64748b;
  font-size: var(--text-base);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
}

.ta-show-more__btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

.ta-show-more__count {
  color: #94a3b8;
  font-weight: 500;
}

.ta-show-more__icon {
  transition: transform 0.3s ease;
}

/* ===== OTHER PLANS ===== */
.ta-other-plans {
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
  animation: fadeInUp 0.3s ease;
}

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

.ta-other-plans__title {
  text-align: center;
  font-size: var(--text-lg);
  color: #64748b;
  margin: 0 0 1.5rem;
  font-weight: 500;
}

.ta-other-plans__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Reduced from 4 to 3 for better width */
  gap: 1.5rem; /* Increased gap */
}

/* Other Plan Card */
.ta-other-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px; /* Slightly rounder */
  padding: 1.5rem; /* Increased padding */
  transition: box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  text-align: center; /* Center text */
  align-items: center; /* Center flex children */
  position: relative; /* Ensure absolute children (badge) are contained */
  overflow: hidden; /* optional: clip badge corners */
}

.ta-other-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.ta-other-card__header {
  margin-bottom: 0.75rem;
  width: 100%;
  display: flex;
  justify-content: center; /* Center badge */
}

.ta-other-card__badge {
  display: inline-flex;
  align-items: center;
  background: #dcfce7;
  color: #16a34a;
  font-size: 0.75rem; /* Slightly larger */
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
}

.ta-other-card__name {
  font-size: var(--text-lg); /* Increased from base to lg */
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem;
  white-space: normal; /* Allow wrap if name is long */
  overflow: visible;
  text-overflow: clip;
}

/* Removed old coverage styles */

.ta-other-card__price {
  margin-bottom: 1.25rem; /* Increased spacing */
  width: 100%;
}

/* Highlights List (Other Cards) */
.ta-other-card__highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  width: 100%;
  margin-top: auto; /* Push to bottom section */
}

.ta-other-card__price-installments {
  display: block;
  color: #16a34a;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.ta-other-card__price-monthly {
  display: block;
  font-size: var(--text-3xl); /* Increased from 2xl */
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.ta-other-card__price-total {
  display: block;
  color: #64748b;
  font-size: var(--text-sm);
  font-weight: 500;
}

.ta-other-card__cta {
  width: 100%;
  background: white;
  color: #3b82f6;
  border: 2px solid #3b82f6;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.ta-other-card__cta:hover {
  background: #eff6ff;
}

/* ===== RESPONSIVE FOR FEATURED & OTHER PLANS ===== */
@media (max-width: 1024px) {
  .ta-featured__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .ta-other-plans__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .ta-featured__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .ta-featured-card {
    padding: 1.25rem;
  }

  .ta-featured-card--ideal {
    transform: scale(1);
  }

  .ta-featured-card--ideal:hover {
    transform: translateY(-2px);
  }

  .ta-other-plans__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ta-featured__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Reorder: Ideal first on mobile */
  .ta-featured-card--ideal {
    order: -1;
  }

  .ta-featured-card--ideal {
    transform: none;
  }

  .ta-featured-card--ideal:hover {
    transform: translateY(-2px);
  }

  .ta-other-plans__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 540px) {
  .ta-other-plans__grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  .ta-other-card {
    padding: 1rem;
  }

  .ta-other-card__name {
    font-size: var(--text-base); /* Larger font since single column */
  }

  .ta-other-card__price-total {
    font-size: var(--text-lg);
  }

  /* Compact highlights on mobile */
  .ta-highlight {
    gap: 5px;
    margin-bottom: 8px;
  }

  .ta-highlight__icon {
    width: 16px;
    height: 16px;
  }

  .ta-highlight__name,
  .ta-highlight__value {
    font-size: 0.8rem;
  }
}

/* ===== BOTONES "VER DETALLES" EN TARJETAS ===== */

.ta-featured-card__details,
.ta-other-card__details {
  width: 100%;
  background: white;
  color: #3b82f6;
  border: 2px solid #3b82f6;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 0.75rem;
}

.ta-featured-card__details:hover,
.ta-other-card__details:hover {
  background: #eff6ff;
  transform: translateY(-1px);
}

.ta-featured-card__details:active,
.ta-other-card__details:active {
  transform: translateY(0);
}

/* ===== MODAL DE DETALLES DEL PLAN ===== */

/* Modal Container */
.ta-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.ta-modal--visible {
  opacity: 1;
}

/* Backdrop */
.ta-modal__backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: -1;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Modal Container (inner box) */
.ta-modal__container {
  position: relative;
  z-index: 1;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease-out;
  overflow: hidden;
}

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

/* Header */
.ta-modal__header {
  position: relative;
  padding: 2rem;
  border-bottom: 2px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, white 100%);
}

.ta-modal__header-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ta-modal__tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 999px;
}

.ta-modal__tier-icon {
  font-size: 1.5rem;
}

.ta-modal__tier-label {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #3b82f6;
}

.ta-modal__title {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.ta-modal__subtitle {
  margin: 0;
  font-size: 1.125rem;
  color: #64748b;
}

.ta-modal__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ta-modal__close:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
  transform: rotate(90deg);
}

/* Price Section */
.ta-modal__price {
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border-bottom: 1px solid #e0f2fe;
  text-align: center;
}

.ta-modal__price-installments {
  display: block;
  color: #059669;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.ta-modal__price-monthly {
  display: block;
  font-size: 3.5rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.ta-modal__price-total {
  display: block;
  color: #64748b;
  font-size: 1.125rem;
  font-weight: 600;
}

/* Body (Scrollable) */
.ta-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  min-height: 300px;
}

/* Loading State */
.ta-modal__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
}

.ta-modal__spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ta-modal__loading p {
  margin: 0;
  color: #64748b;
  font-size: 1rem;
}

/* Error State */
.ta-modal__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
}

.ta-modal__error svg {
  color: #ef4444;
  margin-bottom: 1.5rem;
}

.ta-modal__error p {
  margin: 0 0 1.5rem;
  color: #475569;
  font-size: 1rem;
}

.ta-modal__retry {
  background: #ef4444;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ta-modal__retry:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Benefits Table */
.ta-benefits-table {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ta-benefits-category {
  /* Each category section */
}

.ta-benefits-category__title {
  margin: 0 0 1.25rem;
  font-size: 1.625rem;
  font-weight: 700;
  color: #0f172a;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #3b82f6;
  display: inline-block;
}

.ta-benefits-category__table {
  width: 100%;
  border-collapse: collapse;
}

.ta-benefits-category__table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s ease;
}

.ta-benefits-category__table tbody tr:last-child {
  border-bottom: none;
}

.ta-benefits-category__table tbody tr:hover {
  background: #f8fafc;
}

.ta-benefit__name {
  padding: 1.125rem 1rem;
  color: #475569;
  font-size: 1.125rem;
  font-weight: 500;
  width: 60%;
  vertical-align: top;
  line-height: 1.5;
}

.ta-benefit__value {
  padding: 1.125rem 1rem;
  color: #0f172a;
  font-size: 1.125rem;
  font-weight: 700;
  text-align: right;
  width: 40%;
  vertical-align: top;
  line-height: 1.5;
}

.ta-modal__empty {
  text-align: center;
  padding: 3rem;
  color: #64748b;
  font-size: 1rem;
}

/* Footer */
.ta-modal__footer {
  padding: 1.5rem 2rem;
  border-top: 2px solid #f1f5f9;
  background: linear-gradient(180deg, white 0%, #f8fafc 100%);
}

.ta-modal__cta {
  width: 100%;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  padding: 1.125rem 2rem;
  border-radius: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ta-modal__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.ta-modal__cta:active {
  transform: translateY(0);
}

/* Scrollbar customization for modal body */
.ta-modal__body::-webkit-scrollbar {
  width: 8px;
}

.ta-modal__body::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.ta-modal__body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.ta-modal__body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .ta-modal {
    padding: 1rem;
  }

  .ta-modal__container {
    max-height: 95vh;
    border-radius: 0.75rem;
  }

  .ta-modal__header {
    padding: 1.5rem;
  }

  .ta-modal__title {
    font-size: 1.75rem;
  }

  .ta-modal__price {
    padding: 1.25rem 1.5rem;
  }

  .ta-modal__price-monthly {
    font-size: 2.75rem;
  }

  .ta-modal__body {
    padding: 1.5rem;
  }

  .ta-benefits-category__title {
    font-size: 1.375rem;
  }

  .ta-benefit__name,
  .ta-benefit__value {
    font-size: 1.0625rem;
    padding: 1rem 0.75rem;
  }

  .ta-modal__footer {
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 540px) {
  .ta-modal {
    padding: 0;
    align-items: flex-end;
  }

  .ta-modal__container {
    max-height: 95vh;
    border-radius: 0.75rem 0.75rem 0 0;
    animation: slideUpMobile 0.3s ease-out;
  }

  @keyframes slideUpMobile {
    from {
      opacity: 0;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .ta-modal__header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .ta-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .ta-modal__price-monthly {
    font-size: 2rem;
  }

  /* Make benefits table stack on mobile */
  .ta-benefit__name,
  .ta-benefit__value {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0;
  }

  .ta-benefit__value {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
  }

  .ta-benefits-category__table tbody tr {
    display: block;
    padding: 1rem 0;
  }
}

/* ===== LEAD MODAL ===== */
.ta-lead-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.ta-lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
}

.ta-lead-modal__container {
  position: relative;
  background: #ffffff;
  border-radius: 1rem;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  z-index: 1;
}

.ta-lead-modal__step {
  padding: 2rem;
}

.ta-lead-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ta-lead-modal__close:hover {
  color: #111827;
  background-color: #f3f4f6;
}

.ta-lead-modal__close:focus {
  outline: none;
  box-shadow: none;
}

.ta-lead-modal__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.ta-lead-modal__title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 1rem 0;
  line-height: 1.1;
}

.ta-lead-modal__subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.ta-lead-modal__plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.ta-lead-modal__plan-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 1.35rem;
}

.ta-lead-modal__plan-price {
  font-weight: 800;
  color: #059669;
  font-size: 1.75rem;
}

.ta-lead-modal__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ta-lead-modal__field label {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.5rem;
}

.ta-lead-modal__field input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  font-size: 1.35rem;
  color: #0f172a;
  transition: all 0.2s ease;
}

.ta-lead-modal__field input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.ta-lead-modal__phone-wrapper {
  display: flex;
  align-items: center;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #ffffff;
  transition: all 0.2s ease;
}

.ta-lead-modal__phone-prefix {
  padding: 1rem 0.75rem 1rem 1.25rem;
  background: #f8fafc;
  color: #64748b;
  font-size: 1.35rem;
  font-weight: 500;
  white-space: nowrap;
  border-right: 1px solid #e2e8f0;
}

.ta-lead-modal__phone-wrapper input {
  border: none;
  border-radius: 0;
  padding-left: 0.75rem;
}

.ta-lead-modal__phone-wrapper input:focus {
  box-shadow: none;
  border-color: transparent;
}

.ta-lead-modal__phone-wrapper:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.ta-lead-modal__error {
  display: none;
  color: #dc2626;
  font-size: 1rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

.ta-lead-modal__submit {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.ta-lead-modal__submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.ta-lead-modal__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.ta-lead-modal__disclaimer {
  font-size: 1.1rem;
  color: #94a3b8;
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

.ta-lead-modal__success {
  text-align: center;
  padding: 2rem 0;
}

.ta-lead-modal__success-icon {
  color: #059669;
  margin-bottom: 1rem;
}

.ta-lead-modal__success-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem 0;
}

.ta-lead-modal__success-text {
  color: #6b7280;
  font-size: 1.25rem;
  margin: 0 0 2rem 0;
  line-height: 1.5;
}

.ta-lead-modal__close-btn {
  padding: 1rem 3rem;
  background: #f3f4f6;
  color: #374151;
  border: none;
  border-radius: 0.75rem;
  font-size: 1.25rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ta-lead-modal__close-btn:hover {
  background: #e5e7eb;
}

@media (max-width: 540px) {
  .ta-lead-modal {
    padding: 1rem;
    align-items: center;
  }

  .ta-lead-modal__container {
    border-radius: 1rem;
    max-height: 95vh;
  }
}
