/* ============================================
   IMPORTAR FONTES GOOGLE
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ============================================
   VARIÁVEIS CSS - IDENTIDADE HIGHTEA
   ============================================ */
:root {
  /* Cores principais */
  --ht-primary: #70A88A;
  --ht-primary-dark: #5F9679;
  --ht-primary-light: #95BFA8;
  --ht-primary-transparent: rgba(112, 168, 138, 0.12);

  /* Cores institucionais e neutras */
  --ht-white: #FFFFFF;
  --ht-white-off: #F5F1F2;
  --ht-light: #F8F5F5;
  --ht-black: #373B4D;
  --ht-gray: #6C757D;
  --ht-border: rgba(55, 59, 77, 0.14);

  /* Estados */
  --ht-danger: #B84A4A;
  --ht-danger-bg: #FFF2F2;
  --ht-success: #3F8F68;
  --ht-info-bg: rgba(149, 191, 168, 0.18);
  --ht-info-border: rgba(112, 168, 138, 0.20);

  /* Sombras e bordas */
  --ht-shadow: 0 24px 70px rgba(55, 59, 77, 0.12);
  --ht-shadow-soft: 0 12px 36px rgba(55, 59, 77, 0.10);
  --ht-radius-lg: 28px;
  --ht-radius-md: 18px;
  --ht-radius-sm: 12px;

  /* Tipografia */
  --ht-font-title: 'Cormorant Garamond', Georgia, serif;
  --ht-font-body: 'Inter', Arial, sans-serif;

  /* Gradientes */
  --ht-page-gradient: radial-gradient(circle at 10% 10%, rgba(149, 191, 168, 0.34), transparent 30%), linear-gradient(135deg, #F8F5F5 0%, #EEF4F0 100%);
  --ht-hero-gradient: linear-gradient(180deg, rgba(112, 168, 138, 0.78), rgba(55, 59, 77, 0.62)), radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.36), transparent 28%), linear-gradient(135deg, var(--ht-primary), var(--ht-primary-light));
  --ht-button-gradient: linear-gradient(135deg, var(--ht-primary), var(--ht-primary-dark));
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   ESTILOS GLOBAIS
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ht-black);
  font-family: var(--ht-font-body);
  background: var(--ht-page-gradient);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   CLASSES UTILITÁRIAS / ESTADOS DO JAVASCRIPT
   ============================================ */
.is-hidden {
  display: none !important;
}

.body-page {
  color: var(--ht-black);
}

/* ============================================
   LAYOUT PRINCIPAL
   ============================================ */
.page-shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: 42px 16px;
}

.hero,
.form-card,
.checkout-modal-content {
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: var(--ht-shadow);
}

/* ============================================
   HERO / APRESENTAÇÃO DO EVENTO
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  padding: 34px;
  border-radius: var(--ht-radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ht-white);
  background: var(--ht-hero-gradient);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(2px);
}

.hero::before {
  width: 260px;
  height: 260px;
  right: -82px;
  top: 102px;
}

.hero::after {
  width: 180px;
  height: 180px;
  left: -54px;
  bottom: 102px;
}

.hero-brand,
.hero-content,
.hero-stats {
  position: relative;
  z-index: 1;
}

.logo-link {
  display: inline-flex;
  width: fit-content;
}

.logo {
  width: 172px;
  max-width: 100%;
  display: block;
}

.kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ht-white);
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.kicker--dark {
  color: var(--ht-primary);
  background: var(--ht-primary-transparent);
}

.hero h1 {
  margin: 0;
  color: var(--ht-white);
  font-family: var(--ht-font-title);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.hero p {
  max-width: 520px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.04rem;
  line-height: 1.75;
}

.hero-stats.row {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  gap: 16px;
  margin-right: 0;
  margin-left: 0;
}

.hero-stats > div {
  flex: 1 1 calc(50% - 8px);
  width: calc(50% - 8px);
  max-width: calc(50% - 8px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--ht-radius-md);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(14px);
}

.hero-stats strong {
  display: block;
  font-size: 2.2rem;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
}

/* ============================================
   CARD DO FORMULÁRIO
   ============================================ */
.form-card {
  border-radius: var(--ht-radius-lg);
  padding: 34px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.form-card-header {
  margin-bottom: 24px;
}

.form-card h2,
.summary h3 {
  margin: 0;
  color: var(--ht-black);
  font-family: var(--ht-font-title);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.status-pill {
  min-width: 174px;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--ht-gray);
  background: var(--ht-white-off);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.status-pill.is-ok {
  color: var(--ht-success);
  background: rgba(63, 143, 104, 0.12);
}

.status-pill.is-blocked {
  color: var(--ht-danger);
  background: var(--ht-danger-bg);
}

/* ============================================
   CAMPOS DO FORMULÁRIO
   ============================================ */
.field {
  margin-bottom: 18px;
}

.field .form-label,
.field label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  color: var(--ht-black);
  font-size: 0.9rem;
  font-weight: 800;
}

.field label span {
  color: var(--ht-danger);
}

.field .form-control,
.field .form-select,
.field input,
.field select {
  width: 100%;
  min-height: 54px;
  padding: 0 15px;
  border: 1.4px solid var(--ht-border);
  border-radius: var(--ht-radius-sm);
  color: var(--ht-black);
  background-color: var(--ht-white);
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.field .form-control::placeholder {
  color: rgba(108, 117, 125, 0.62);
}

.field .form-control:focus,
.field .form-select:focus,
.field input:focus,
.field select:focus {
  border-color: var(--ht-primary);
  box-shadow: 0 0 0 4px rgba(112, 168, 138, 0.16);
}

.field.is-filled .form-control,
.field.is-filled .form-select,
.field.is-filled input,
.field.is-filled select {
  background: linear-gradient(0deg, rgba(112, 168, 138, 0.06), rgba(112, 168, 138, 0.06)), var(--ht-white);
}

.field.is-error .form-control,
.field.is-error .form-select,
.field.is-error input,
.field.is-error select {
  border-color: var(--ht-danger);
  background: var(--ht-danger-bg);
}

.help-text {
  display: block;
  margin-top: 7px;
  color: var(--ht-gray);
  font-size: 0.76rem;
  line-height: 1.45;
}

.field-error {
  display: none;
  margin: 7px 0 0;
  color: var(--ht-danger);
  font-size: 0.78rem;
  font-weight: 700;
}

.field-error.is-visible,
.field-error--standalone.is-visible {
  display: block;
}

.field-error--standalone {
  margin-top: 8px;
}

/* ============================================
   ALERTAS E SUGESTÃO DE EVENTO
   ============================================ */
.app-alert,
.suggestion,
.summary {
  border-radius: var(--ht-radius-md);
  line-height: 1.55;
}

.app-alert {
  margin-bottom: 20px;
  padding: 16px 18px;
  font-weight: 800;
}

.alert--danger {
  color: var(--ht-danger);
  background: var(--ht-danger-bg);
  border: 1px solid rgba(184, 74, 74, 0.2);
}

.suggestion {
  margin: 2px 0 18px;
  padding: 16px 18px;
  color: var(--ht-black);
  background: var(--ht-info-bg);
  border: 1px solid var(--ht-info-border);
}

.suggestion strong {
  color: var(--ht-primary);
}

/* ============================================
   RESUMO DA VENDA
   ============================================ */
.summary {
  margin: 8px 0 18px;
  padding: 22px;
  background: var(--ht-white-off);
  border: 1px solid rgba(55, 59, 77, 0.08);
}

.summary h3 {
  margin-bottom: 16px;
  font-size: 2rem;
}

.summary dl,
.checkout-details-list {
  margin: 0;
}

.summary dl div,
.checkout-details-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(55, 59, 77, 0.10);
}

.summary dl div:last-child,
.checkout-details-list div:last-child {
  border-bottom: 0;
}

.summary dt,
.checkout-details-list dt {
  color: var(--ht-gray);
  font-size: 0.82rem;
  font-weight: 700;
}

.summary dd,
.checkout-details-list dd {
  margin: 0;
  color: var(--ht-black);
  font-weight: 800;
  text-align: right;
}

/* ============================================
   TERMOS E BOTÕES
   ============================================ */
.terms-check {
  display: grid;
  grid-template-columns: 0px 1fr;
  gap: 11px;
  align-items: start;
  margin-bottom: 0;
  color: var(--ht-gray);
  font-size: 0.86rem;
  line-height: 1.55;
}

.terms-check .form-check-input,
.terms-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--ht-primary);
}

.terms-check .form-check-input:checked {
  background-color: var(--ht-primary);
  border-color: var(--ht-primary);
}

.actions {
  margin-top: 24px;
}

.button {
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--ht-radius-sm);
  border: 0;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.button:focus-visible {
  outline: 3px solid rgba(112, 168, 138, 0.34);
  outline-offset: 2px;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.button--primary {
  color: var(--ht-white);
  background: var(--ht-button-gradient);
  box-shadow: 0 14px 28px rgba(112, 168, 138, 0.32);
}

.button--primary:hover,
.button--primary:focus {
  color: var(--ht-white);
  background: var(--ht-button-gradient);
}

.button--secondary {
  color: var(--ht-black);
  background: var(--ht-white-off);
  border: 1px solid rgba(55, 59, 77, 0.10);
}

.button--whatsapp {
  color: #0E7A45;
  background: rgba(37, 211, 102, 0.11);
  border: 1px solid rgba(37, 211, 102, 0.36);
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.12);
}

.button--whatsapp:hover,
.button--whatsapp:focus {
  color: var(--ht-white);
  background: #25D366;
  border-color: #25D366;
}

/* ============================================
   OVERLAY DE CARREGAMENTO
   ============================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1055;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(55, 59, 77, 0.54);
}

.loading-overlay {
  flex-direction: column;
  color: var(--ht-white);
  font-weight: 800;
}

.loading-overlay p {
  margin: 14px 0 0;
}

.spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.32);
  border-top-color: var(--ht-white);
  animation: spin 0.9s linear infinite;
}

/* ============================================
   MODAL DE CONFIRMAÇÃO E PAGAMENTO
   ============================================ */
.checkout-modal-content {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--ht-radius-lg);
  background: linear-gradient(180deg, #FFFFFF 0%, #FBF8F8 100%);
  box-shadow: var(--ht-shadow);
}

.checkout-modal-header {
  align-items: flex-start;
  gap: 18px;
  padding: 18px 30px;
  border-bottom: 1px solid rgba(55, 59, 77, 0.08);
  background: linear-gradient(135deg, rgba(112, 168, 138, 0.14), rgba(149, 191, 168, 0.06));
}

.checkout-modal-header .btn-close {
  margin-top: 2px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.72);
  opacity: 0.82;
}

.modal-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border-radius: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ht-white);
  background: var(--ht-button-gradient);
  font-size: 1.45rem;
  box-shadow: var(--ht-shadow-soft);
}

.checkout-modal .modal-title {
  margin: 0;
  color: var(--ht-black);
  font-family: var(--ht-font-title);
  line-height: 1;
}

.modal-subtitle,
.payment-options-header p,
.payment-card p {
  color: var(--ht-gray);
  line-height: 1.65;
}

.checkout-modal-body {
  padding: 28px 30px;
}

.checkout-modal-footer {
  padding: 18px 30px;
  border-top: 1px solid rgba(55, 59, 77, 0.08);
  background: rgba(245, 241, 242, 0.58);
}

.checkout-details {
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid rgba(55, 59, 77, 0.08);
  border-radius: var(--ht-radius-md);
  background: linear-gradient(180deg, rgba(55, 59, 77, 0.045), rgba(255, 255, 255, 0.96));
}

.checkout-details-list {
  margin: 0;
}

.checkout-details-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(55, 59, 77, 0.10);
}

.checkout-details-list div:last-child {
  border-bottom: 0;
}

.checkout-details-list dt {
  color: var(--ht-gray);
  font-size: 0.82rem;
  font-weight: 700;
}

.checkout-details-list dd {
  margin: 0;
  color: var(--ht-black);
  font-weight: 800;
  text-align: right;
}

.checkout-url {
  display: block !important;
}

.checkout-url dd {
  margin-top: 6px;
  text-align: left;
  word-break: break-all;
  font-size: 0.78rem;
}

.payment-options-header {
  margin-bottom: 18px;
}

.payment-options-header h3 {
  margin: 0 0 8px;
  color: var(--ht-black);
  font-family: var(--ht-font-title);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1;
}

.payment-card {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(55, 59, 77, 0.10);
  border-radius: var(--ht-radius-md);
  background: var(--ht-white);
  box-shadow: 0 16px 42px rgba(55, 59, 77, 0.08);
}

.payment-card--pix {
  border-color: rgba(112, 168, 138, 0.24);
  background: linear-gradient(180deg, rgba(112, 168, 138, 0.07), rgba(255, 255, 255, 0.94));
}

.payment-card--card {
  background: linear-gradient(180deg, rgba(55, 59, 77, 0.045), rgba(255, 255, 255, 0.96));
}

.payment-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.payment-card-title i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ht-white);
  background: var(--ht-button-gradient);
  font-size: 1.15rem;
}

.payment-card-title h4 {
  margin: 0;
  color: var(--ht-black);
  font-family: var(--ht-font-title);
  font-size: 2rem;
  line-height: 1;
}

.pix-qr-box {
  display: flex;
  justify-content: center;
  margin: 18px 0;
  padding: 18px;
  border: 1px dashed rgba(112, 168, 138, 0.38);
  border-radius: var(--ht-radius-md);
  background: rgba(255, 255, 255, 0.78);
}

.pix-qr {
  width: min(215px, 100%);
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(55, 59, 77, 0.12);
}

.pix-reveal-area {
  position: relative;
  isolation: isolate;
  margin-top: 18px;
}

.pix-reveal-content {
  transition: filter 0.35s ease, opacity 0.35s ease;
}

.pix-reveal-area.pix-locked .pix-reveal-content {
  filter: blur(7px);
  opacity: 0.72;
  pointer-events: none;
  user-select: none;
}

.pix-reveal-area.pix-unlocked .pix-reveal-content {
  filter: none;
  opacity: 1;
  pointer-events: auto;
  user-select: auto;
}

.pix-reveal-area.pix-locked .pix-copy-group .form-control,
.pix-reveal-area.pix-locked .pix-copy-group .button {
  pointer-events: none;
}

.pix-reveal-area.pix-unlocked .pix-copy-group .form-control,
.pix-reveal-area.pix-unlocked .pix-copy-group .button {
  pointer-events: auto;
}

.pix-blur-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  border-radius: var(--ht-radius-md);
  color: var(--ht-black);
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.64));
  backdrop-filter: blur(2px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pix-reveal-area.pix-unlocked .pix-blur-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pix-blur-overlay__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ht-white);
  background: var(--ht-button-gradient);
  box-shadow: 0 10px 24px rgba(55, 59, 77, 0.18);
  font-size: 1.35rem;
}

.pix-blur-overlay__text {
  max-width: 220px;
  color: var(--ht-black);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.pix-copy-group .form-control {
  min-height: 48px;
  border-color: rgba(112, 168, 138, 0.28);
  font-weight: 700;
}

.copy-feedback {
  min-height: 22px;
  margin: 8px 0 0;
  color: var(--ht-success);
  font-size: 0.78rem;
  font-weight: 800;
}

.card-payment-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 0;
  padding: 24px;
  border-radius: var(--ht-radius-md);
  color: var(--ht-primary-dark);
  background: radial-gradient(circle at 50% 35%, rgba(112, 168, 138, 0.16), transparent 58%), var(--ht-white-off);
  font-weight: 900;
}

.card-payment-illustration i {
  font-size: 2.25rem;
}

.accepted-credit-cards {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(55, 59, 77, 0.08);
  border-radius: var(--ht-radius-sm);
  background: rgba(255, 255, 255, 0.74);
}

.accepted-credit-cards__title {
  margin: 0 0 10px;
  color: var(--ht-gray);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.accepted-credit-cards__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(134, 145, 158, 0.22);
  border-radius: 9px;
  background: #F3F5F6;
  color: #4E5965;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(55, 59, 77, 0.06);
}

.card-brand--visa,
.card-brand--mastercard,
.card-brand--elo,
.card-brand--hiper,
.card-brand--hipercard,
.card-brand--amex {
  background: #F3F5F6;
}

.card-checkout-form {
  margin-top: 18px;
}

.card-checkout-form .form-label {
  color: var(--ht-black);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-checkout-form .form-control,
.card-checkout-form .form-select {
  min-height: 46px;
  border-color: rgba(55, 59, 77, 0.14);
  border-radius: 14px;
  color: var(--ht-black);
  font-weight: 700;
}

.card-checkout-form .form-control:focus,
.card-checkout-form .form-select:focus {
  border-color: rgba(112, 168, 138, 0.65);
  box-shadow: 0 0 0 0.22rem rgba(112, 168, 138, 0.16);
}

.card-payment-feedback {
  min-height: 22px;
  margin: 8px 0 0;
  color: var(--ht-success);
  font-size: 0.78rem;
  font-weight: 800;
}

.card-payment-feedback.is-error {
  color: var(--ht-danger);
}

.card-payment-feedback.is-success {
  color: var(--ht-success);
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 1199.98px) {
  .hero {
    min-height: 520px;
  }
}

@media (max-width: 767.98px) {
  .page-shell {
    padding: 18px 12px;
  }

  .hero,
  .form-card,
  .checkout-modal-content {
    border-radius: 22px;
  }

  .hero,
  .form-card,
  .checkout-modal-body,
  .checkout-modal-header,
  .checkout-modal-footer {
    padding: 24px;
  }

  .hero {
    min-height: 560px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 16vw, 4.2rem);
  }

  .status-pill {
    width: 100%;
  }

  .summary dl div,
  .checkout-details-list div {
    flex-direction: column;
    gap: 4px;
  }

  .summary dd,
  .checkout-details-list dd {
    text-align: left;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .hero,
  .form-card,
  .checkout-modal-body,
  .checkout-modal-header,
  .checkout-modal-footer {
    padding: 20px;
  }

  .logo {
    width: 146px;
  }
}
