* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Container Principal */
.checkout-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
}

/* Layout de Duas Colunas */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

/* Coluna do Formulário */
.checkout-form-column {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.checkout-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.header-top {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  gap: 16px;
}

.header-top-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

.header-title {
  text-align: left;
}

.checkout-header h1 {
  color: #0f172a;
  font-size: 28px;
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.checkout-header p {
  color: #64748b;
  font-size: 16px;
  font-weight: 400;
  margin: 0;
}

/* Stepper Visual Compacto */
.checkout-stepper-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.stepper-item-compact {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.stepper-number-compact {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #f1f5f9;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
  flex-shrink: 0;
}

.stepper-item-compact.active .stepper-number-compact {
  background-color: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.stepper-item-compact.completed .stepper-number-compact {
  background-color: #10b981;
  color: transparent;
  border-color: #10b981;
  position: relative;
}

.stepper-item-compact.completed .stepper-number-compact::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 5px;
  border-left: 2.5px solid white;
  border-bottom: 2.5px solid white;
  transform: rotate(-45deg);
  top: 45%;
  left: 50%;
  margin-top: -3px;
  margin-left: -4px;
}

.stepper-label-compact {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
}

.stepper-item-compact.active .stepper-label-compact {
  color: #3b82f6;
  font-weight: 600;
}

.stepper-item-compact.completed .stepper-label-compact {
  color: #10b981;
}

.stepper-line-compact {
  width: 20px;
  height: 2px;
  background-color: #e2e8f0;
  flex-shrink: 0;
}

.stepper-line-compact.completed {
  background-color: #10b981;
}

/* Steps do Formulário */
.form-step {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.form-step.active {
  display: block;
}

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

.step-header {
  margin-bottom: 28px;
}

.step-icon {
  display: none;
}

.step-header h2 {
  color: #0f172a;
  font-size: 24px;
  margin-bottom: 8px;
  padding: 0;
  border: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.step-description {
  color: #64748b;
  font-size: 16px;
  margin: 0;
  font-weight: 400;
}

/* Grupos de Formulário */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: #334155;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.15s ease;
  background-color: #ffffff;
  color: #0f172a;
  font-family: inherit;
  line-height: 1.5;
}

.form-group input:hover {
  border-color: #94a3b8;
}

.form-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background-color: #ffffff;
}

/* Select Customizado */
.form-group select {
  width: 100%;
  padding: 14px 38px 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.15s ease;
  background-color: #ffffff;
  color: #0f172a;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  cursor: pointer;
  line-height: 1.5;
}

.form-group select:hover {
  border-color: #94a3b8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233b82f6' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.form-group select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233b82f6' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.form-group select:disabled {
  background-color: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.form-group select option {
  padding: 10px;
  background-color: #ffffff;
  color: #0f172a;
}

.form-group select option:hover {
  background-color: #f8fafc;
}

.form-group select.error {
  border-color: #ef4444 !important;
  background-color: #fef2f2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ef4444' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.form-group input::placeholder {
  color: #94a3b8;
}

.form-group input.error,
.form-group select.error {
  border-color: #ef4444 !important;
  background-color: #fef2f2;
}

.field-error {
  display: block;
  color: #dc2626;
  font-size: 14px;
  margin-top: 8px;
  font-weight: 500;
}

.step-error-message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: 15px;
  margin-bottom: 24px;
  animation: slideDown 0.2s ease;
}

.step-error-message .error-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-row .form-group {
  margin-bottom: 18px;
}

/* Botões */
.step-footer {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.btn-next,
.btn-submit {
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn-next::before,
.btn-submit::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
  pointer-events: none;
}

.btn-next:active::before,
.btn-submit:active::before {
  width: 300px;
  height: 300px;
}

.btn-next:hover,
.btn-submit:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-next:active,
.btn-submit:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-next:focus,
.btn-submit:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Efeito de loading no botão */
.btn-next.loading,
.btn-submit.loading {
  pointer-events: none;
  opacity: 0.9;
}

.btn-next.loading .btn-arrow,
.btn-submit.loading .btn-arrow {
  display: none;
}

.btn-next.loading::after,
.btn-submit.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Efeito de sucesso no botão */
.btn-next.success,
.btn-submit.success {
  background-color: #10b981;
  animation: successPulse 0.6s ease;
}

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

.btn-next.success .btn-arrow,
.btn-submit.success .btn-arrow {
  display: none;
}

.btn-next.success::after,
.btn-submit.success::after {
  content: "✓";
  position: absolute;
  font-size: 18px;
  font-weight: 700;
  animation: checkmark 0.4s ease;
}

@keyframes checkmark {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(180deg);
  }
  100% {
    transform: scale(1) rotate(360deg);
    opacity: 1;
  }
}

.btn-next:disabled,
.btn-submit:disabled {
  background-color: #cbd5e1;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-back-step {
  background-color: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: -0.01em;
}

.btn-back-step:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
  color: #334155;
}

.btn-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-left: 6px;
  transition: transform 0.2s ease;
  display: inline-block;
  vertical-align: middle;
}

.btn-next-fixed .btn-arrow,
.btn-submit-fixed .btn-arrow {
  width: 18px;
  height: 18px;
  margin-left: 6px;
}

.btn-next-fixed:hover .btn-arrow,
.btn-submit-fixed:hover .btn-arrow {
  transform: translateX(2px);
}

.btn-icon {
  font-size: 16px;
  line-height: 1;
}

/* Métodos de Pagamento */
/* Aviso de pagamento para clientes internacionais */
.intl-payment-notice {
  display: none;
  align-items: flex-start;
  gap: 16px;
  background: #fff8e1;
  border: 1px solid #f9a825;
  border-left: 4px solid #f9a825;
  border-radius: 10px;
  padding: 22px 24px;
  margin: 8px 0 28px;
}
.intl-notice-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 1px;
}
.intl-notice-body {
  flex: 1;
}
.intl-notice-body strong {
  display: block;
  font-size: 15px;
  color: #e65100;
  margin-bottom: 8px;
}
.intl-notice-body p {
  font-size: 13px;
  color: #555;
  margin: 0 0 18px;
  line-height: 1.6;
}
.btn-whatsapp-vendedor {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.35);
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.1s;
  letter-spacing: 0.01em;
}
.btn-whatsapp-vendedor:hover {
  background: #1ebe5d;
  color: #fff;
  box-shadow: 0 5px 16px rgba(37, 211, 102, 0.45);
  transform: translateY(-1px);
}
.btn-whatsapp-vendedor:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.payment-option {
  display: flex;
  align-items: center;
  padding: 20px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  background-color: #ffffff;
}

/* Borda azul apenas no hover (quando não está selecionado) */
.payment-option:hover:not(.selected) {
  border-color: #3b82f6;
  background-color: #f8fafc;
}

/* Manter borda e background quando selecionado (mesmo estilo do hover) */
.payment-option.selected {
  border-color: #3b82f6 !important;
  background-color: #f8fafc !important;
}

/* Hover na opção selecionada também mantém o estilo */
.payment-option.selected:hover {
  border-color: #3b82f6 !important;
  background-color: #f8fafc !important;
}

/* Fallback para navegadores que suportam :has() */
.payment-option:has(input[type="radio"]:checked):not(.selected) {
  border-color: #3b82f6;
  background-color: #f8fafc;
}

.payment-option input[type="radio"] {
  width: auto;
  margin-right: 12px;
  cursor: pointer;
}

.payment-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 16px;
  flex-shrink: 0;
  color: #64748b;
  transition: color 0.15s ease;
}

.payment-option:hover .payment-icon {
  color: #3b82f6;
}

.payment-option input[type="radio"]:checked ~ .payment-icon {
  color: #3b82f6;
}

.payment-option input[type="radio"]:checked ~ .payment-label {
  color: #3b82f6;
}

.payment-option input[type="radio"]:checked ~ .payment-label strong {
  color: #1e40af;
}

.payment-label {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.payment-label strong {
  font-size: 18px;
  margin-bottom: 6px;
  font-weight: 600;
}

.payment-label small {
  color: #6b7280;
  font-size: 15px;
}

.payment-fields {
  margin-top: 28px;
  padding-top: 28px;
  padding-bottom: 30px;
  border-top: 2px solid #f3f4f6;
}

.payment-single-installment {
  margin-top: 8px;
  margin-bottom: 0;
}

.installment-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #10b981;
  border-radius: 8px;
  color: #065f46;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}

.installment-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #10b981;
}

/* Layout de Pagamento com Cartão */
.card-payment-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.card-form-column {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.card-form-column .form-group {
  margin-bottom: 20px;
}

.card-form-column .form-row {
  margin-bottom: 20px;
}

.card-preview-column {
  position: sticky;
  top: 32px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Prévia do Cartão */
.card-preview {
  margin-bottom: 0;
  perspective: 1000px;
  width: 100%;
}

.card-front {
  width: 100%;
  max-width: 320px;
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 20px;
  color: white;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  margin: 0;
}

.card-front.visa {
  background: linear-gradient(135deg, #1a1f71 0%, #192587 100%);
}

.card-front.mastercard {
  background: linear-gradient(135deg, #eb001b 0%, #f79e1b 100%);
}

.card-front.amex {
  background: linear-gradient(135deg, #006fcf 0%, #012169 100%);
}

.card-front.discover {
  background: linear-gradient(135deg, #ff6000 0%, #ffa500 100%);
}

.card-front.diners {
  background: linear-gradient(135deg, #0079be 0%, #003d82 100%);
}

.card-chip {
  width: 40px;
  height: 30px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border-radius: 5px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card-chip::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.card-number-preview {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  font-family: "Courier New", monospace;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.card-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
}

.card-name-preview {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-expiry-preview {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.8px;
  margin-left: 12px;
}

.card-brand {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0.9;
  text-transform: uppercase;
}

.payment-info {
  color: #475569;
  font-size: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid #3b82f6;
  line-height: 1.6;
}

/* Coluna do Resumo */
.checkout-summary-column {
  position: relative;
}

.summary-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.summary-card.sticky {
  position: sticky;
  top: 32px;
  margin-bottom: 100px; /* Espaço para a barra fixa não sobrepor o conteúdo */
}

.summary-card h2 {
  color: #0f172a;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e2e8f0;
  letter-spacing: -0.01em;
}

.summary-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.summary-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.summary-section h3 {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px 0;
}

.summary-item.service-type {
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 0;
  border: 1px solid #e2e8f0;
}

.summary-label {
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}

.summary-item.service-type .summary-label {
  color: #475569;
  font-weight: 600;
  font-size: 14px;
}

.summary-value {
  color: #0f172a;
  font-weight: 600;
  font-size: 14px;
}

.summary-item.service-type .summary-value {
  color: #1e293b;
  font-weight: 600;
  font-size: 14px;
}

.service-item {
  background: #f8fafc;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
}

.service-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.service-header strong {
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
  display: block;
}

.service-details {
  margin-bottom: 16px;
}

.service-details p {
  color: #1e293b;
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.6;
  font-weight: 500;
}

.service-details small {
  color: #64748b;
  font-size: 14px;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 6px;
}

.service-details small::before {
  content: "";
}

.service-passengers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.passenger-summary {
  background-color: #ffffff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  color: #334155;
  border: 1px solid #e2e8f0;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.passenger-summary strong {
  color: #1e40af;
  font-weight: 600;
  font-size: 15px;
}

.summary-totals {
  margin-top: 24px;
  padding-top: 0;
  border-top: none;
}

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 15px;
  color: #64748b;
  font-weight: 500;
  padding: 6px 0;
}

.total-line.total-final {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  font-size: 20px;
  font-weight: 700;
}

.total-line.total-final span {
  color: #0f172a;
  font-size: 24px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  background: white;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e5e7eb;
  border-top-color: #1e40af;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

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

.loading-spinner p {
  color: #374151;
  font-size: 16px;
  font-weight: 500;
}

/* Modal de Erro */
.error-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.error-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.error-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

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

.error-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}

.error-modal-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.error-modal-header h2 {
  flex: 1;
  color: #0f172a;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.error-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.error-modal-close:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.error-modal-body {
  padding: 24px;
}

.error-modal-body p {
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.error-modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 24px 24px;
  border-top: 1px solid #e2e8f0;
  justify-content: flex-end;
}

.btn-modal-primary,
.btn-modal-secondary {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  letter-spacing: -0.01em;
}

.btn-modal-primary {
  background-color: #3b82f6;
  color: white;
}

.btn-modal-primary:hover {
  background-color: #2563eb;
}

.btn-modal-secondary {
  background-color: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.btn-modal-secondary:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
}

/* Container de Erro */
.error-container {
  max-width: 600px;
  margin: 100px auto;
  padding: 20px;
}

.error-message {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 40px;
  text-align: center;
}

.error-message p {
  color: #374151;
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.6;
}

.btn-back {
  display: inline-block;
  background-color: #1e40af;
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn-back:hover {
  background-color: #1d4ed8;
}

/* Passageiros Container */
#passengers-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.passenger-form-card {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-bottom: 12px;
  transition: all 0.15s ease;
  overflow: hidden;
}

.passenger-form-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.passenger-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  background-color: #f8fafc;
  transition: background-color 0.15s ease;
  user-select: none;
}

.passenger-header:hover {
  background-color: #f1f5f9;
}

.passenger-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.passenger-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #3b82f6;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
}

.passenger-form-card h3 {
  color: #0f172a;
  font-size: 17px;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.passenger-toggle-icon {
  color: #64748b;
  font-size: 12px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.passenger-content {
  padding: 24px 20px;
  border-top: 1px solid #e2e8f0;
  background-color: #ffffff;
}

.passenger-content[style*="display: none"] {
  display: none !important;
}

.passenger-content[style*="display: block"] {
  display: block !important;
  animation: slideDown 0.2s ease;
}

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

/* Barra Fixa de Ação (Estilo Mercado Livre) */
.fixed-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-bar-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.action-bar-info {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 10px;
}

.info-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.info-icon svg {
  width: 12px;
  height: 12px;
}

.info-text {
  color: #1e40af;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.action-bar-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .action-bar-info {
    display: none;
  }

  .action-bar-content {
    justify-content: center;
  }

  .action-bar-buttons {
    justify-content: center;
    width: 100%;
  }
}

.btn-next-fixed,
.btn-submit-fixed {
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1.5;
}

.btn-next-fixed::before,
.btn-submit-fixed::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
  pointer-events: none;
}

.btn-next-fixed:active::before,
.btn-submit-fixed:active::before {
  width: 300px;
  height: 300px;
}

.btn-next-fixed:hover,
.btn-submit-fixed:hover {
  background-color: #2563eb;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-next-fixed:active,
.btn-submit-fixed:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-next-fixed:focus,
.btn-submit-fixed:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.btn-next-fixed.loading,
.btn-submit-fixed.loading {
  pointer-events: none;
  opacity: 0.9;
  position: relative;
}

.btn-next-fixed.loading .btn-arrow,
.btn-submit-fixed.loading .btn-arrow {
  opacity: 0.4;
  margin-left: 6px;
}

.btn-next-fixed.loading::after,
.btn-submit-fixed.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn-next-fixed.success,
.btn-submit-fixed.success {
  background-color: #10b981;
  animation: successPulse 0.6s ease;
}

.btn-next-fixed.success .btn-arrow,
.btn-submit-fixed.success .btn-arrow {
  opacity: 1;
  margin-left: 6px;
}

.btn-next-fixed.success::after,
.btn-submit-fixed.success::after {
  display: none;
}

.btn-back-step-mobile {
  background-color: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  line-height: 1.5;
}

.btn-back-step-mobile::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
  pointer-events: none;
}

.btn-back-step-mobile:active::before {
  width: 300px;
  height: 300px;
}

.btn-back-step-mobile:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
  color: #334155;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-back-step-mobile:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-back-step-mobile:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
}

.btn-back-step-mobile .btn-arrow {
  margin-left: 0;
  margin-right: 0;
  width: 18px;
  height: 18px;
}

.btn-back-step-mobile:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
  color: #334155;
}

/* Adicionar padding-bottom no body para não sobrepor conteúdo */
.checkout-form-column {
  padding-bottom: 80px;
}

/* Responsive */
@media (max-width: 1024px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .summary-card.sticky {
    position: relative;
    top: 0;
    margin-top: 20px;
    margin-bottom: 100px; /* Espaço para a barra fixa não sobrepor o conteúdo no mobile */
  }
}

/* Responsive para Layout de Cartão */
@media (max-width: 1024px) {
  .card-payment-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .card-preview-column {
    position: relative;
    top: 0;
    order: -1; /* Prévia aparece antes dos campos no mobile */
  }

  .card-front {
    max-width: 100%;
    height: 200px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 17px; /* Aumentar um pouco a fonte base no mobile */
  }

  .checkout-container {
    padding: 16px;
  }

  .checkout-form-column {
    padding: 20px;
  }

  .checkout-header h1 {
    font-size: 26px; /* Manter próximo ao desktop (28px) */
  }

  .checkout-header p {
    font-size: 17px; /* Aumentar um pouco (era 16px) */
  }

  .step-header h2 {
    font-size: 22px; /* Manter próximo ao desktop (24px) */
  }

  .step-description {
    font-size: 17px; /* Aumentar um pouco (era 16px) */
  }

  .form-group label {
    font-size: 16px; /* Aumentar um pouco (era 15px) */
  }

  .form-group input,
  .form-group select {
    font-size: 17px; /* Aumentar um pouco (era 16px) */
    padding: 15px 18px; /* Aumentar padding para melhor toque */
  }

  .field-error {
    font-size: 15px; /* Aumentar um pouco (era 14px) */
  }

  .step-error-message {
    font-size: 16px; /* Aumentar um pouco (era 15px) */
  }

  .summary-card h2 {
    font-size: 22px; /* Manter igual ao desktop */
  }

  .summary-section h3 {
    font-size: 14px; /* Aumentar um pouco (era 13px) */
  }

  .summary-label,
  .summary-value {
    font-size: 15px; /* Aumentar um pouco (era 14px) */
  }

  .service-header strong {
    font-size: 18px; /* Manter próximo ao desktop (17px) */
  }

  .service-details p {
    font-size: 17px; /* Aumentar um pouco (era 16px) */
  }

  .service-details small {
    font-size: 16px; /* Aumentar um pouco (era 15px) */
  }

  .passenger-summary {
    font-size: 15px; /* Aumentar um pouco (era 14px) */
  }

  .passenger-summary strong {
    font-size: 16px; /* Manter próximo ao desktop */
  }

  .total-line {
    font-size: 16px; /* Aumentar um pouco (era 15px) */
  }

  .total-line.total-final {
    font-size: 22px; /* Manter próximo ao desktop (20px) */
  }

  .total-line.total-final span {
    font-size: 26px; /* Manter próximo ao desktop (24px) */
  }

  .payment-label strong {
    font-size: 19px; /* Aumentar um pouco (era 18px) */
  }

  .payment-label small {
    font-size: 16px; /* Aumentar um pouco (era 15px) */
  }

  .payment-info {
    font-size: 17px; /* Aumentar um pouco (era 16px) */
  }

  .info-text {
    font-size: 16px; /* Aumentar um pouco (era 15px) */
  }

  .btn-next-fixed,
  .btn-submit-fixed,
  .btn-back-step-mobile {
    font-size: 17px; /* Aumentar um pouco (era 16px) */
  }

  .checkout-stepper-compact {
    width: 100%;
    justify-content: center;
  }

  .stepper-label-compact {
    display: none;
  }

  .stepper-line-compact {
    width: 16px;
  }

  .checkout-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
  }

  .header-title {
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .step-actions {
    grid-template-columns: 1fr;
  }

  .btn-back-step {
    order: 2;
  }

  .btn-next,
  .btn-submit {
    order: 1;
  }
}

/* ========================================
   TERMOS E REGRAS DE BAGAGEM
   ======================================== */

.terms-section {
  margin-bottom: 30px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
}

.terms-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

.terms-textarea {
  width: 100%;
  height: 250px;
  padding: 20px;
  margin-bottom: 15px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: #333;
  background: #ffffff;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  resize: none;
  overflow-y: auto;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  cursor: default;
}

.terms-textarea:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.05),
    0 0 0 3px rgba(0, 102, 204, 0.1);
}

.terms-textarea::-webkit-scrollbar {
  width: 10px;
}

.terms-textarea::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 5px;
}

.terms-textarea::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

.terms-textarea::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.terms-checkbox {
  display: flex;
  align-items: flex-start;
  padding: 12px 15px;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.terms-checkbox:hover {
  border-color: #0066cc;
  background: #f0f7ff;
}

.terms-checkbox label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  margin: 0;
  width: 100%;
  gap: 10px;
}

.terms-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 0;
  cursor: pointer;
  accent-color: #0066cc;
  flex-shrink: 0;
}

.terms-checkbox span {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  user-select: none;
}

.terms-checkbox input[type="checkbox"]:checked + span {
  color: #0066cc;
  font-weight: 500;
}

/* Validação visual quando checkbox obrigatório não está marcado */
.terms-checkbox input[type="checkbox"]:invalid {
  outline: 2px solid #dc3545;
  outline-offset: 2px;
  border-radius: 3px;
}

@media (max-width: 768px) {
  .terms-section {
    padding: 15px;
    margin-bottom: 20px;
  }

  .terms-section h3 {
    font-size: 16px;
  }

  .terms-textarea {
    height: 200px;
    padding: 15px;
    font-size: 12px;
    line-height: 1.6;
  }

  .terms-checkbox span {
    font-size: 13px;
  }
}

/* === SELETOR DE IDIOMA === */
.lang-selector {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}

.lang-option {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  transition: all 0.15s;
  white-space: nowrap;
}

.lang-option:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.lang-option.lang-active {
  background: #1e40af;
  color: #fff;
  border-color: #1e40af;
}

/* ── Baggage Rules Modal ────────────────────────────────────────────────────── */
.baggage-rules-link {
  color: #1e40af;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
}

.baggage-rules-link:hover {
  color: #1d4ed8;
}

.baggage-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.baggage-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

.baggage-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.baggage-modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.baggage-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.baggage-modal-close:hover {
  color: #111827;
}

.baggage-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.baggage-modal-text {
  font-size: 13px;
  line-height: 1.7;
  color: #374151;
  white-space: pre-wrap;
}

.baggage-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

.baggage-modal-btn {
  background: #1e40af;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.baggage-modal-btn:hover {
  background: #1d4ed8;
}

@media (max-width: 640px) {
  .baggage-modal-content {
    max-height: 90vh;
  }
}

/* ── Upsell de Passeios ─────────────────────────────────────────────────────── */
.upsell-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.upsell-header {
    margin-bottom: 20px;
}

.upsell-title {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 6px;
}

.upsell-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.upsell-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upsell-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.upsell-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
}

.upsell-card--added {
    border-color: #10b981;
    background: #f0fdf4;
}

.upsell-card-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 44px;
    text-align: center;
}

.upsell-card-body {
    flex: 1;
    min-width: 0;
}

.upsell-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 4px;
}

.upsell-card-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 6px;
}

.upsell-card-price {
    font-size: 13px;
    font-weight: 600;
    color: #1e40af;
}

.upsell-card-btn {
    flex-shrink: 0;
    padding: 9px 18px;
    background: #1e40af;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.upsell-card-btn:hover:not(:disabled) {
    background: #1d4ed8;
}

.upsell-card-btn:disabled,
.upsell-card-btn--added {
    background: #10b981;
    cursor: default;
}

/* Modal de upsell — reutiliza .baggage-modal-* para estrutura */
.upsell-modal-body .form-group {
    margin-bottom: 16px;
}

.upsell-modal-body .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.upsell-modal-body input[type="date"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #0f172a;
    background: #fff;
}

.upsell-modal-body input[type="date"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.upsell-price-preview {
    padding: 10px 14px;
    background: #eff6ff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 12px;
}

.upsell-error {
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 13px;
    color: #dc2626;
}

.upsell-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.upsell-modal-btn-cancel {
    padding: 10px 20px;
    background: #f1f5f9;
    color: #334155;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.upsell-modal-btn-cancel:hover {
    background: #e2e8f0;
}

@media (max-width: 640px) {
    .upsell-card {
        flex-wrap: wrap;
    }
    .upsell-card-btn {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   MOBILE — MELHORIAS GERAIS
   ======================================== */

/* Remove duplo card no step de filtro (form-card dentro de checkout-form-column) */
.form-transfer-container .form-card {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.form-transfer-container .form-card .tabs-container {
  border-radius: 8px;
}

@media (max-width: 768px) {
  /* Reduz padding lateral do formulário para ganhar espaço útil */
  .checkout-form-column {
    padding: 16px;
  }

  /* Botões da barra fixa ocupam largura total no mobile pequeno */
  .btn-next-fixed,
  .btn-submit-fixed {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
  }

  .btn-back-step-mobile {
    padding: 14px 16px;
  }

  /* Garante que dropdowns não extrapolem o container */
  .dropdown-custom,
  .dropdown-menu {
    max-width: 100%;
  }

  /* Modais não extrapolam viewport no mobile */
  .error-modal-content {
    width: calc(100% - 32px);
    max-width: 100%;
  }

  .baggage-modal-content {
    width: calc(100% - 32px);
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .checkout-form-column {
    padding: 12px;
  }

  .checkout-container {
    padding: 8px;
  }

  /* Stepper compacto cabe em telas muito pequenas */
  .stepper-number-compact {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .stepper-line-compact {
    width: 12px;
  }
}
