/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */
/* ?????????????????? DESENVOLVIDO POR CAIO CÉSAR FARIA   ????????????????? */
/* !!!!!!!!!!!!!!!!!!!!   QUOTE PAGE - GS FANTASTIC   !!!!!!!!!!!!!!!!!!!!!! */
/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */

@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
  --branco-primaria: #f5f1f0;
  --azul-escuro: #2a3150;
  --azul-claro: #09a7b2;
  --preto-principal: #000000;
  --cinza-principal: #222222;
  --cinza-claro: #f0f4f8;
  --cinza-borda: #d0d8e0;
  --fonte-titulo: "Playfair Display", serif;
  --fonte-texto: "Montserrat Alternates", sans-serif;
}

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

body {
  background-color: var(--branco-primaria);
  font-family: var(--fonte-texto);
  overflow-x: hidden;
  max-width: 100vw;
}

/* ===================== HEADER ===================== */
.quote_header {
  width: 100%;
  background-color: var(--azul-escuro);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header_logo {
  width: 50px;
}

/* ===================== HERO BANNER ===================== */
.quote_hero {
  width: 100%;
  background: linear-gradient(135deg, var(--azul-escuro) 0%, #1a2340 100%);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote_hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(9,167,178,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero_titulo {
  font-family: var(--fonte-titulo);
  font-size: 42px;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.hero_titulo span {
  color: var(--azul-claro);
}

.hero_subtitulo {
  font-family: var(--fonte-texto);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  max-width: 500px;
}

/* ===================== FORM SECTION ===================== */
.quote_section {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

/* ===================== FORM GRID ===================== */
.form_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.form_field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form_field.full {
  grid-column: span 2;
}

/* ===================== LABELS ===================== */
.form_field label {
  font-family: var(--fonte-texto);
  font-size: 13px;
  font-weight: 700;
  color: var(--azul-escuro);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===================== INPUTS & SELECTS ===================== */
.form_field input,
.form_field select,
.form_field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--cinza-borda);
  border-radius: 12px;
  font-family: var(--fonte-texto);
  font-size: 14px;
  font-weight: 400;
  color: var(--cinza-principal);
  background-color: #ffffff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form_field input::placeholder,
.form_field textarea::placeholder {
  color: #aab0be;
  font-weight: 300;
}

.form_field input:focus,
.form_field select:focus,
.form_field textarea:focus {
  border-color: var(--azul-claro);
  box-shadow: 0 0 0 4px rgba(9, 167, 178, 0.12);
}

/* Select arrow custom */
.select_wrapper {
  position: relative;
}

.select_wrapper::after {
  content: '▾';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--azul-claro);
  font-size: 16px;
  pointer-events: none;
}

.select_wrapper select {
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Textarea */
.form_field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

/* ===================== OPTION LIST ===================== */
.option_list {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 2px solid var(--cinza-borda);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.option_item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #eef1f5;
  font-family: var(--fonte-texto);
  font-size: 14px;
  color: var(--cinza-principal);
  font-weight: 400;
  -webkit-tap-highlight-color: transparent; /* ✅ remove highlight azul no iOS */
}

.option_item:last-child {
  border-bottom: none;
}

.option_item:hover {
  background-color: rgba(9, 167, 178, 0.06);
}

.option_item.selected {
  background-color: rgba(9, 167, 178, 0.1);
  color: var(--azul-escuro);
  font-weight: 600;
}

.option_dot {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  border: 2px solid var(--cinza-borda);
  flex-shrink: 0;
  transition: all 0.2s ease;
  position: relative;
}

.option_item.selected .option_dot {
  border-color: var(--azul-claro);
  background-color: var(--azul-claro);
}

.option_item.selected .option_dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

/* ===================== RADIO FREQUENCY ===================== */
.frequency_grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
}

.freq_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 0.4rem;
  border: 2px solid var(--cinza-borda);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--fonte-texto);
  font-size: 12px;
  font-weight: 600;
  color: var(--azul-escuro);
  text-align: center;
  background: #ffffff;
  -webkit-tap-highlight-color: transparent;
}

.freq_item:hover {
  border-color: var(--azul-claro);
  background: rgba(9, 167, 178, 0.05);
}

.freq_item.selected {
  border-color: var(--azul-claro);
  background: rgba(9, 167, 178, 0.12);
  color: var(--azul-escuro);
}

.freq_item input[type="radio"] {
  display: none;
}

/* ===================== SECTION DIVIDER ===================== */
.form_divider {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.4rem 0;
}

.form_divider span {
  font-family: var(--fonte-titulo);
  font-size: 18px;
  font-weight: 600;
  color: var(--azul-escuro);
  white-space: nowrap;
}

.form_divider::before,
.form_divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--azul-claro), transparent);
  opacity: 0.5;
}

/* ===================== CONDITIONAL FIELDS ===================== */
.conditional_field {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
}

.conditional_field.visible {
  display: flex;
}

/* ===================== SUBMIT BUTTON ===================== */
.btn_submit {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.1rem 2rem;
  background-color: var(--azul-claro);
  color: #ffffff;
  font-family: var(--fonte-texto);
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  animation: pulse 2s infinite ease-in-out;
  margin-top: 0.5rem;
  width: 100%;
  letter-spacing: 0.03em;
}

.btn_submit:hover {
  background-color: #078a94;
  animation: none;
  transform: translateY(-2px);
}

.btn_submit_icon {
  width: 28px;
  height: 28px;
}

@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* ===================== TRUST BADGES ===================== */
.trust_row {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.2rem 0 0.5rem;
  border-top: 1px solid var(--cinza-borda);
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.trust_item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--fonte-texto);
  font-size: 12px;
  font-weight: 600;
  color: var(--azul-escuro);
}

.trust_icon {
  font-size: 18px;
}

/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */
/* !!!!!!!     VERSÃO MOBILE  (max-width: 600px)                  !!!!!!!!!! */
/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */
@media screen and (max-width: 600px) {

  /* Header */
  .quote_header {
    height: 50px;
  }

  .header_logo {
    width: 36px;
  }

  /* Hero */
  .quote_hero {
    padding: 2rem 1.2rem;
  }

  .hero_titulo {
    font-size: 26px;
  }

  .hero_subtitulo {
    font-size: 13px;
    padding: 0 0.5rem;
  }

  /* Form section */
  .quote_section {
    padding: 1.5rem 1rem 3rem;
  }

  /* Grid: 1 coluna */
  .form_grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .form_field.full {
    grid-column: span 1;
  }

  /* Dividers */
  .form_divider {
    grid-column: span 1;
  }

  .form_divider span {
    font-size: 15px;
  }

  /* Labels */
  .form_field label {
    font-size: 11px;
  }

  /* Inputs */
  .form_field input,
  .form_field select,
  .form_field textarea {
    font-size: 14px;        /* ✅ evita zoom automático no iOS (min 16px nativo) */
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
  }

  /* Option items */
  .option_item {
    padding: 0.65rem 0.9rem;
    font-size: 13px;
  }

  /* Frequência: 3 colunas */
  .frequency_grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .freq_item {
    font-size: 11px;
    padding: 0.65rem 0.3rem;
    border-radius: 10px;
  }

  /* Botão submit */
  .btn_submit {
    grid-column: span 1;
    font-size: 15px;
    padding: 1rem 1.2rem;
  }

  .btn_submit_icon {
    width: 22px;
    height: 22px;
  }

  /* Trust row empilhada */
  .trust_row {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .trust_item {
    font-size: 11px;
  }
  
}