/* ============================================================
   VISA ABORDO CONSULTING — AGENDAR CITA
   Page-specific styles. Load after components.css.
   ============================================================ */

/* ── PAGE HEADER ─────────────────────────────────────────────── */

.ac-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding-top: calc(var(--navbar-height) + var(--space-14));
  padding-bottom: var(--space-12);
  text-align: center;
}

.ac-header__inner {
  max-width: 560px;
  margin: 0 auto;
}

.ac-header__title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-3xl), 4vw, 44px);
  font-weight: var(--fw-bold);
  color: var(--color-primary-800);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-4);
}

.ac-header__desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── STEPS PROGRESS BAR ─────────────────────────────────────── */

.ac-steps {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-8) 0;
}

.ac-steps__list {
  display: flex;
  align-items: flex-start;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 820px;
}

.ac-steps__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  position: relative;
  padding: 0 var(--space-2);
}

/* Connector lines: ::before = left half, ::after = right half */
.ac-steps__item::before,
.ac-steps__item::after {
  content: '';
  position: absolute;
  top: 28px;
  height: 1px;
  background: var(--border-subtle);
  z-index: 0;
}

.ac-steps__item::before { left: 0;   right: 50%; }
.ac-steps__item::after  { left: 50%; right: 0;   }

.ac-steps__item:first-child::before,
.ac-steps__item:last-child::after {
  display: none;
}

/* Done: connector going right turns teal */
.ac-steps__item--done::after {
  background: var(--brand-accent);
}

/* Active: connector coming from the left (from done step) turns teal */
.ac-steps__item--active::before {
  background: var(--brand-accent);
}

/* Icon circle */
.ac-steps__icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.ac-steps__icon-wrap svg {
  width: 20px;
  height: 20px;
}

/* Step number badge */
.ac-steps__num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--fw-bold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ac-steps__label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  line-height: 1.3;
}

.ac-steps__desc {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  opacity: 0.6;
  line-height: 1.4;
  max-width: 130px;
}

/* Done */
.ac-steps__item--done .ac-steps__icon-wrap {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

.ac-steps__item--done .ac-steps__num {
  background: var(--brand-accent);
  color: var(--color-primary-900);
}

.ac-steps__item--done .ac-steps__label {
  color: var(--text-primary);
}

.ac-steps__item--done .ac-steps__desc {
  opacity: 0.75;
}

/* Done steps are clickable (navigate back) */
.ac-steps__item--done .ac-steps__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  margin: calc(var(--space-2) * -1);
  transition: opacity 0.15s ease;
}

.ac-steps__item--done .ac-steps__link:hover {
  opacity: 0.75;
}

.ac-steps__item--done .ac-steps__link:hover .ac-steps__icon-wrap {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* Active */
.ac-steps__item--active .ac-steps__icon-wrap {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(33, 79, 134, 0.22);
}

.ac-steps__item--active .ac-steps__num {
  background: var(--brand-primary);
  color: #fff;
}

.ac-steps__item--active .ac-steps__label {
  color: var(--color-primary-800);
  font-weight: var(--fw-bold);
}

.ac-steps__item--active .ac-steps__desc {
  opacity: 0.85;
}

/* ── PAYMENT METHODS ─────────────────────────────────────────── */

.ac-methods {
  padding: var(--space-16) 0;
  background: var(--bg-page);
}

/* Two-column layout: cards + summary */
.ac-methods__layout {
  display: grid;
  grid-template-columns: minmax(0, 520px) 300px;
  gap: var(--space-8);
  align-items: start;
  max-width: 880px;
  margin: 0 auto;
}

.ac-methods__cards {
  min-width: 0;
}

.ac-methods__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.ac-method {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-7) var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-5);
  transition: box-shadow var(--dur-normal) var(--ease),
              border-color var(--dur-normal) var(--ease);
}

.ac-method:hover {
  box-shadow: 0 4px 20px rgba(33, 79, 134, 0.08);
  cursor: pointer;
}

.ac-method--selected {
  border-color: var(--brand-primary);
  border-width: 2px;
  box-shadow: 0 2px 16px rgba(33, 79, 134, 0.10);
}

/* Header row: radio + title + badge */
.ac-method__header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

/* Radio indicator */
.ac-method__radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  background: #fff;
  flex-shrink: 0;
}

.ac-method__radio--on {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  position: relative;
}

.ac-method__radio--on::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Method icon (teal square) */
.ac-method__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-lg);
  background: var(--brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.ac-method__icon svg {
  width: 20px;
  height: 20px;
}

/* Title */
.ac-method__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary-800);
  line-height: 1.25;
  margin: 0;
  flex: 1;
}

/* Badge (inline) */
.ac-method__badge {
  background: var(--brand-accent);
  color: var(--color-primary-900);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Feature checklist */
.ac-method__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.ac-method__features li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.ac-method__features li::before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235AD3D1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* CTA button */
.ac-method__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.ac-method__cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── CARD BRANDS ─────────────────────────────────────────────── */

.ac-card-brands {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.ac-card-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  min-width: 46px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--fw-extrabold);
  letter-spacing: 0.04em;
}

.ac-card-brand--visa {
  background: #1a1f71;
  color: #fff;
  font-style: italic;
}

.ac-card-brand--mc {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  gap: 0;
  padding: 0 8px;
  overflow: hidden;
}

.ac-mc-left,
.ac-mc-right {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ac-mc-left {
  background: #eb001b;
}

.ac-mc-right {
  background: #f79e1b;
  margin-left: -6px;
}

.ac-card-brand--amex {
  background: #007bc1;
  color: #fff;
  font-size: 9px;
  letter-spacing: 0.06em;
}

/* Bank logos */
.ac-bank-logos {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.ac-bank-logo {
  display: block;
  height: 40px;
  width: 40px;
  border-radius: var(--radius-md);
  object-fit: contain;
  border: 1px solid var(--border-subtle);
  background: #fff;
  padding: 3px;
}

/* ── TRUST ROW ───────────────────────────────────────────────── */

.ac-trust-row {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-5) 0;
}

.ac-trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.ac-trust-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
}

.ac-trust-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--brand-accent);
}

.ac-trust-sep {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--border-subtle);
}

/* ── APPOINTMENT SUMMARY ─────────────────────────────────────── */

.ac-summary {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-7) var(--space-7);
  position: sticky;
  top: calc(var(--navbar-height) + var(--space-6));
}

.ac-summary__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.ac-summary__icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  flex-shrink: 0;
}

.ac-summary__icon-wrap svg {
  width: 22px;
  height: 22px;
}

.ac-summary__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--color-primary-800);
  margin: 0;
  line-height: 1.2;
}

.ac-summary__rows {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.ac-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.ac-summary__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  white-space: nowrap;
}

.ac-summary__label svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--brand-primary);
  opacity: 0.55;
}

.ac-summary__value {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-primary-800);
  text-align: right;
}

.ac-summary__value--muted {
  color: var(--text-secondary);
  font-style: italic;
  font-weight: var(--fw-normal);
}

.ac-summary__total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
}

.ac-summary__total-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
}

.ac-summary__total-right {
  text-align: right;
}

.ac-summary__total-price {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--fw-extrabold);
  color: var(--color-primary-800);
  line-height: 1;
}

.ac-summary__total-note {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

/* ── CARD OFFLINE ALERT ─────────────────────────────────────── */

.ac-method__offline-alert {
  display: none;
  align-items: flex-start;
  gap: var(--space-4);
  width: 100%;
  background: #FFFBF0;
  border: 1.5px solid rgba(217, 119, 6, 0.28);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-5);
  text-align: left;
}

.ac-method__offline-alert.is-visible {
  display: flex;
  animation: ac-alert-in 0.22s ease forwards;
}

@keyframes ac-alert-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ac-method__offline-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: #FEF3C7;
  color: #B45309;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.ac-method__offline-icon svg {
  width: 17px;
  height: 17px;
}

.ac-method__offline-body {
  min-width: 0;
  flex: 1;
}

.ac-method__offline-msg {
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: 1.55;
  margin: 0 0 var(--space-4);
}

.ac-method__offline-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.ac-method__offline-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transition: color 0.15s ease;
}

.ac-method__offline-link--wa {
  color: #166534;
  background: #DCFCE7;
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
  transition: background 0.15s ease, color 0.15s ease;
}

.ac-method__offline-link--wa:hover {
  background: #BBF7D0;
  color: #14532D;
}

.ac-method__offline-link--wa svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.ac-method__offline-link:not(.ac-method__offline-link--wa) {
  color: var(--brand-primary);
  padding: var(--space-2) 0;
}

.ac-method__offline-link:not(.ac-method__offline-link--wa):hover {
  color: var(--brand-accent);
}

/* ── FAQ ─────────────────────────────────────────────────────── */

.ac-faq-section {
  padding: var(--space-20) 0;
  background: var(--bg-page);
  text-align: center;
}

.ac-faq-title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  font-weight: var(--fw-bold);
  color: var(--color-primary-800);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}

.ac-faq-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-10);
}

.ac-faq {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */

@media (max-width: 600px) {
  .ac-steps__desc {
    display: none;
  }

  .ac-steps__icon-wrap {
    width: 44px;
    height: 44px;
  }

  .ac-steps__icon-wrap svg {
    width: 17px;
    height: 17px;
  }

  .ac-steps__item::before,
  .ac-steps__item::after {
    top: 22px;
  }

  .ac-steps__label {
    font-size: 10px;
  }
}

@media (max-width: 900px) {
  .ac-methods__layout {
    grid-template-columns: 1fr;
  }

  .ac-summary {
    position: static;
    order: -1;
  }
}

@media (max-width: 480px) {
  .ac-method {
    padding: var(--space-6) var(--space-5);
  }

  .ac-method__title {
    font-size: var(--text-lg);
  }

  .ac-header__title {
    font-size: var(--text-3xl);
  }
}
