@import url('../css/header.css');
@import url("https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap");
/* ============================================
   FORMULÁRIO DE INSCRIÇÃO — ESTILO PROFISSIONAL
   Baseado no CSS enviado / UI da print
============================================ */

/* Container principal */


.form {
  justify-content: center;
  text-align: center;
  margin: 60px 0px;
  overflow: hidden; 
}

.form h1{ 
    display: inline-block; 
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(90deg, #000 0%, #ff6200 50%, #000 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: gradient-move 6s linear infinite forwards;
  }

@media screen and (max-width: 768px){
    .form {
        padding-top: 60px;
        margin-bottom: -50px;
    }
}

/* ----------- LAYOUT: COLUNAS ----------- */
.form-wrapper {
  max-width: 1050px;
  margin: auto;
  display: flex;
  gap: 60px;
  justify-content: center;
  padding: 0 20px;
  margin-bottom: 30px;
}

@media (max-width: 900px) {
  .form-wrapper {
    flex-direction: column;
    margin-top: 80px;
    margin-bottom: 30px;
  }
}

/* ----------- CAIXA DO FORMULÁRIO ----------- */
#formInscricao {
  flex: 2;
  background: #fff;
  padding: 25px 35px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* FIELDSET */
#formInscricao fieldset {
  border: none;
  padding: 0;
}

/* LEGEND */
#formInscricao legend {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--corCinza-Escuro);
}

/* LABEL + INPUT */
#formInscricao label {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 15px;
  color: var(--corCinza-Claro);
}

/* Inputs */
#formInscricao input,
#formInscricao select {
  margin-top: 6px;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #dcdcdc;
  background: #fff;
  font-size: 15px;
  transition: 0.2s;
}

/* Mouse focus */
#formInscricao input:focus,
#formInscricao select:focus {
  border-color: var(--corLaranja);
  box-shadow: 0 0 5px rgba(255,122,0,0.4);
  outline: none;
}

/* ----------- CAMPOS EM LINHA ----------- */
.row {
  display: flex;
  gap: 15px;
  width: 100%;
}

.row label {
  flex: 1;
}

/* Responsivo */
@media (max-width: 600px) {
  .row {
    flex-direction: column;
  }
}

/* ----------- CHECKBOXES ----------- */
#formInscricao input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

#formInscricao fieldset label input[type="checkbox"] + span,
#formInscricao fieldset label a {
  font-size: 14px;
}

/* Links dos termos */
#formInscricao a {
  color: var(--corCinza-Claro);
  text-decoration: underline;
}

/* ----------- BOTÃO ----------- */
#formInscricao button[type="submit"] {
  margin-top: 10px;
  padding: 14px;
  background: var(--corLaranja);
  border: none;
  border-radius: 30px;
  color: var(--corBranca);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

#formInscricao button[type="submit"]:hover {
  box-shadow: 0 0 8px rgba(255,122,0,0.6);
  transform: translateY(-2px);
}

/* ---------- MODAL GERAL ---------- */
.modal {
  display: none; 
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(3px);
  background: rgba(0,0,0,0.45);
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 20px;
  white-space: pre-line;
  text-align: justify;
}

.modal-content {
  background: #fff;
  width: 100%;
  max-width: 700px;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0px 4px 20px rgba(0,0,0,0.25);
  position: relative;
  animation: modalFade 0.25s ease;
}

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

/* ---------- TEXTO ---------- */
.modal-text {
  max-height: 60vh;
  overflow-y: auto;
  margin-top: 15px;
  line-height: 1.6;
  color: #444;
  padding-right: 5px;
}

/* ---------- FECHAR ---------- */
.modal-close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 26px;
  cursor: pointer;
  color: #333;
  transition: 0.2s;
}

.modal-close:hover {
  color: #ff7a00;
}

/* ---------- TEXTO DO MODAL EM LINHA ---------- */

fieldset .modal-label {
    display: flex;
    align-items: start;
    flex-direction: row;
    flex-wrap: wrap; /* mantém responsivo no mobile */
    gap: 6px;
}

.checkbox-modal {
    max-width: 15px;
    margin: 6px 8px;
}

/* ============================================
   COLUNA DA DIREITA — RESUMO DA COMPRA
============================================ */

.detalhes-pay {
    flex: 1;
    background: var(--corBranca);
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.12);
    height: fit-content;
}

.detalhes-pay-space {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    padding: 10px 0;
}

.detalhes-pay p {
    margin: 0;
    color: var(--corCinza-Claro);
}

.detalhes-pay-space strong {
    color: var(--corCinza-Escuro);
    font-weight: 700;
}

.detalhes-pay .divisor {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.25), transparent);
    margin: 12px 0;
}

/* Total destacado */
.detalhes-pay .detalhes-pay-space:last-of-type {
    font-size: 17px;
    font-weight: 700;
}

/* ESTILO DO: CUPONS */

.cupom-box {
  flex: 1;
  background: var(--corBranca);
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.12);
  height: fit-content;
  margin-bottom: 20px;
}

.cupom-box #cupom-text {
  font-size: 15px;
  font-weight: 700;
}

.cupom-input {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cupom-input input {
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #dcdcdc;
  background: #fff;
  font-size: 15px;
  transition: 0.2s;
}

.cupom-input #cupom-botton {
  padding: 8px;
  background: var(--corLaranja);
  border: none;
  border-radius: 6px;
  color: var(--corBranca);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.cupom-input #cupom-botton:hover {
  box-shadow: 0 0 8px rgba(255,122,0,0.6);
  transform: translateY(-2px);
}

#mensagemCupom {
  text-align: center;
  margin-top: 5px;
  font-size: 15px;
}
