/* ==========================================================================
   Quotation Wizard — Editorial 2-col layout with live ticket
   ========================================================================== */

.quotation {
  background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  color: var(--color-text-light);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.quotation::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(168, 212, 0, 0.08), transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(27, 58, 107, 0.5), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

.quotation__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.quotation__header .section-title {
  color: var(--color-white);
}

.quotation__header .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin-inline: auto;
}

/* ==========================================================================
   Layout — single column on mobile, 2-col on desktop
   ========================================================================== */

.quotation__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.quotation__wizard-col {
  min-width: 0;
}

.quotation__ticket-col {
  min-width: 0;
}

/* ==========================================================================
   Linear progress bar
   ========================================================================== */

.wizard__progress {
  margin-bottom: var(--space-8);
}

.wizard__progress-track {
  height: 3px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.wizard__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-green) 0%, var(--color-lime) 100%);
  border-radius: var(--radius-full);
  transition: width 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard__progress-steps {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
}

.wizard__progress-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  transition: color var(--transition-base);
}

.wizard__progress-step.is-active {
  color: var(--color-lime);
}

.wizard__progress-step.is-complete {
  color: rgba(255, 255, 255, 0.7);
}

.wizard__progress-num {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-extrabold);
  font-feature-settings: "tnum";
}

/* Hide labels on small screens, keep just numbers */
@media (max-width: 540px) {
  .wizard__progress-step {
    font-size: 0;
  }
  .wizard__progress-num {
    font-size: var(--text-xs);
  }
  .wizard__progress-step.is-active .wizard__progress-num {
    font-size: var(--text-sm);
  }
}

/* ==========================================================================
   Wizard form container
   ========================================================================== */

.wizard__form {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
  .wizard__form {
    padding: var(--space-8);
  }
}

.wizard__panel {
  display: none;
}

.wizard__panel.is-active {
  display: block;
  animation: panelIn 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.quotation .wizard__panel-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-white);
  margin: 0 0 var(--space-6) 0;
  line-height: 1.15;
}

/* ==========================================================================
   Visual cards (steps 1 & 2)
   ========================================================================== */

.wizard__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.wizard__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-5);
  background-color: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  text-align: left;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.wizard__card::after {
  content: "";
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background-color: var(--color-lime);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230A1628' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard__card:hover {
  border-color: rgba(168, 212, 0, 0.4);
  background-color: rgba(168, 212, 0, 0.05);
  transform: translateY(-2px);
}

.wizard__card.is-selected {
  border-color: var(--color-lime);
  background-color: rgba(168, 212, 0, 0.08);
  box-shadow: 0 0 0 1px var(--color-lime), 0 8px 24px -8px rgba(168, 212, 0, 0.3);
}

.wizard__card.is-selected::after {
  opacity: 1;
  transform: scale(1);
}

.wizard__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: rgba(168, 212, 0, 0.1);
  color: var(--color-lime);
  margin-bottom: var(--space-2);
  transition: all 200ms;
}

.wizard__card.is-selected .wizard__card-icon {
  background-color: var(--color-lime);
  color: var(--color-navy);
}

.wizard__card-title {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  line-height: 1.2;
}

.wizard__card-desc {
  display: block;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

.wizard__cards--compact .wizard__card {
  padding: var(--space-4);
}

.wizard__cards--compact .wizard__card-icon {
  width: 40px;
  height: 40px;
}

@media (min-width: 540px) {
  .wizard__cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .wizard__cards--compact {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Form fields (steps 3 & 4)
   ========================================================================== */

.wizard__field {
  margin-bottom: var(--space-5);
}

.wizard__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 540px) {
  .wizard__grid {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-4);
  }
}

.wizard__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  color: rgba(255, 255, 255, 0.6);
}

.wizard__label--required::after {
  content: " *";
  color: var(--color-lime);
}

.wizard__input,
.wizard__textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: var(--color-white);
  font-size: var(--text-base);
  font-family: inherit;
  transition: all var(--transition-fast);
}

.wizard__input::placeholder,
.wizard__textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.wizard__input:focus,
.wizard__textarea:focus {
  outline: none;
  border-color: var(--color-lime);
  background-color: rgba(168, 212, 0, 0.04);
  box-shadow: 0 0 0 3px rgba(168, 212, 0, 0.15);
}

.wizard__textarea {
  min-height: 140px;
  resize: vertical;
  line-height: var(--line-height-relaxed);
}

.wizard__field-guide {
  font-size: var(--text-sm);
  color: var(--color-lime);
  margin-bottom: var(--space-3);
  font-weight: var(--font-weight-medium);
  opacity: 0.85;
}

.wizard__hint {
  display: block;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
  margin-top: var(--space-2);
  font-style: italic;
}

.wizard__error {
  font-size: var(--text-xs);
  color: #ff6b6b;
  margin-top: var(--space-2);
  display: none;
}

/* ---------- Consent checkbox (Privacy + T&C) ---------- */
.wizard__field--consent {
  margin-block: var(--space-4) var(--space-2);
}

.wizard__consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  user-select: none;
}

.wizard__consent-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.wizard__consent-checkbox {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  transition: all var(--transition-fast);
}

.wizard__consent-checkbox svg {
  opacity: 0;
  transform: scale(0.6);
  transition: all var(--transition-fast);
}

.wizard__consent-input:checked + .wizard__consent-checkbox {
  background-color: var(--color-lime);
  border-color: var(--color-lime);
}

.wizard__consent-input:checked + .wizard__consent-checkbox svg {
  opacity: 1;
  transform: scale(1);
}

.wizard__consent-input:focus-visible + .wizard__consent-checkbox {
  outline: 2px solid var(--color-lime);
  outline-offset: 2px;
}

.wizard__consent-text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.wizard__consent-text a {
  color: var(--color-lime);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: var(--font-weight-semibold);
  transition: color var(--transition-fast);
}

.wizard__consent-text a:hover {
  color: var(--color-white);
}

.wizard__field--consent.has-error .wizard__consent-checkbox {
  border-color: #ff6b6b;
  background-color: rgba(255, 107, 107, 0.1);
}

.wizard__field.has-error .wizard__input,
.wizard__field.has-error .wizard__textarea {
  border-color: #ff6b6b;
  background-color: rgba(255, 107, 107, 0.05);
}

.wizard__field.has-error .wizard__error {
  display: block;
}

/* ==========================================================================
   Action buttons
   ========================================================================== */

.wizard__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-8);
  gap: var(--space-4);
}

.wizard__btn-back {
  padding: var(--space-3) var(--space-4);
  color: rgba(255, 255, 255, 0.6);
  font-weight: var(--font-weight-medium);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
  background: none;
  border: none;
  cursor: pointer;
}

.wizard__btn-back:hover {
  color: var(--color-white);
}

.wizard__btn-next,
.wizard__btn-submit {
  padding: var(--space-3) var(--space-6);
  background-color: var(--color-lime);
  color: var(--color-navy);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-sm);
  letter-spacing: var(--letter-spacing-wide);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.wizard__btn-next:hover:not(:disabled),
.wizard__btn-submit:hover {
  background-color: var(--color-lime);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(168, 212, 0, 0.5);
}

.wizard__btn-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.wizard__btn-submit {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* Success message (email-only flows like Casillero) */
.wizard__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8) var(--space-4);
  min-height: 260px;
}

.wizard__success-icon {
  margin-bottom: var(--space-4);
}

.wizard__success-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-lime);
  margin-bottom: var(--space-3);
}

.wizard__success-text {
  font-size: var(--text-base);
  color: var(--color-white);
  max-width: 400px;
  line-height: var(--line-height-relaxed);
}

/* ==========================================================================
   TICKET — live summary panel
   ========================================================================== */

.ticket {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  backdrop-filter: blur(10px);
  position: relative;
}

.ticket__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.ticket__label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: var(--letter-spacing-widest);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.ticket__status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-lime);
  padding: 4px 10px;
  background-color: rgba(168, 212, 0, 0.1);
  border: 1px solid rgba(168, 212, 0, 0.3);
  border-radius: var(--radius-full);
}

.ticket__status-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: var(--color-lime);
  box-shadow: 0 0 8px var(--color-lime);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

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

.ticket__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: opacity 300ms;
}

.ticket__row-label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.ticket__row-value {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.ticket__row.is-filled .ticket__row-value {
  color: var(--color-white);
  font-weight: var(--font-weight-medium);
}

.ticket__row.is-filled .ticket__row-label {
  color: var(--color-lime);
}

.ticket__divider {
  height: 1px;
  background-image: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15) 50%, transparent);
  margin-block: var(--space-5);
}

/* ---- Advisor block ---- */

.ticket__advisor {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background-color: rgba(168, 212, 0, 0.06);
  border: 1px solid rgba(168, 212, 0, 0.2);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

.ticket__advisor-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-lime), var(--color-green));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.ticket__advisor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticket__advisor-initials {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-navy);
  letter-spacing: -0.02em;
}

.ticket__advisor-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ticket__advisor-eyebrow {
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-widest);
  text-transform: uppercase;
  color: var(--color-lime);
}

.ticket__advisor-name {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-white);
  line-height: 1.1;
}

.ticket__advisor-role {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
}

/* ---- Business hours ---- */

.ticket__hours {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
}

.ticket__hours-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background-color: rgba(168, 212, 0, 0.1);
  color: var(--color-lime);
  margin-top: 2px;
}

.ticket__hours-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ticket__hours-text strong {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  letter-spacing: 0.01em;
}

.ticket__hours-text span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

/* ==========================================================================
   Desktop layout — 2 columns with sticky ticket
   ========================================================================== */

@media (min-width: 1024px) {
  .quotation__layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
    gap: var(--space-10);
    align-items: start;
  }

  .quotation__ticket-col {
    position: sticky;
    top: calc(var(--navbar-height, 80px) + var(--space-6));
  }

  .ticket {
    padding: var(--space-8);
  }
}

@media (min-width: 1280px) {
  .quotation__layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(360px, 1fr);
    gap: var(--space-12);
  }
}
