/**
 * Formulário embutido (index-iframe.php) — alinhado ao layout promocional (desktop + mobile).
 */
:root {
  --iframe-blue: #009ee2;
  --iframe-blue-hover: #0088c7;
  --iframe-label: #333333;
  --iframe-placeholder: #999999;
  --iframe-bg: #ffffff;
}

.iframe-cadastro-shell {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  background: var(--iframe-bg);
  color: var(--iframe-label);
  box-sizing: border-box;
}

.iframe-cadastro-shell *,
.iframe-cadastro-shell *::before,
.iframe-cadastro-shell *::after {
  box-sizing: border-box;
}

.iframe-cadastro {
  padding: 1.25rem 1rem 1.5rem;
  /* max-width: 920px; */
  margin: 0 auto;
}

.iframe-cadastro .iframe-label {
  display: block;
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--iframe-label);
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}

.iframe-cadastro .iframe-label .req {
  color: var(--iframe-label);
}

.iframe-cadastro .form-control {
  display: block;
  width: 100%;
  border: 1px solid var(--iframe-blue);
  border-radius: 4px;
  background: #fff;
  padding: 0.65rem 0.85rem;
  font-size: 0.9375rem;
  color: var(--iframe-label);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.iframe-cadastro .form-control::placeholder {
  color: var(--iframe-placeholder);
  opacity: 1;
}

.iframe-cadastro .form-control:focus {
  border-color: var(--iframe-blue);
  box-shadow: 0 0 0 3px rgba(0, 158, 226, 0.2);
  outline: none;
}

.iframe-cadastro .form-control.is-invalid {
  border-color: #dc3545;
}

.iframe-cadastro__note {
  font-size: 0.75rem;
  color: var(--iframe-placeholder);
  margin-top: 0.25rem;
}

.iframe-cadastro__required-hint {
  font-size: 0.75rem;
  color: var(--iframe-placeholder);
}

.iframe-cadastro .form-check-input {
  width: 1.05rem;
  height: 1.05rem;
  border: 1px solid var(--iframe-blue);
  border-radius: 2px;
  accent-color: var(--iframe-blue);
}

.iframe-cadastro .form-check-input:checked {
  background-color: var(--iframe-blue);
  border-color: var(--iframe-blue);
}

.iframe-cadastro .form-check-input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 158, 226, 0.25);
}

.iframe-cadastro .form-check-label {
  font-size: 0.8125rem;
  color: var(--iframe-label);
  line-height: 1.4;
}

/* Checkbox alinhado à esquerda com os inputs; texto centralizado na vertical */
.iframe-cadastro__check-wrap .form-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  padding-left: 0;
  margin-bottom: 0;
}

.iframe-cadastro__check-wrap .form-check-input {
  flex-shrink: 0;
  margin: 0;
  float: none;
  position: static;
  align-self: center;
}

.iframe-cadastro__check-wrap .form-check-label {
  flex: 1;
  min-width: 0;
  padding-left: 0;
  margin-bottom: 0;
}

.iframe-cadastro .form-check-label a {
  color: var(--iframe-label);
  text-decoration: underline;
  font-weight: 600;
}

.iframe-cadastro .form-check-label a:hover {
  color: var(--iframe-blue);
}

.iframe-cadastro .btn-iframe-participar {
  display: block;
  width: 100%;
  border: none;
  border-radius: 4px;
  background: var(--iframe-blue);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 1rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 158, 226, 0.35);
  transition: background 0.15s ease, transform 0.1s ease;
}

.iframe-cadastro .btn-iframe-participar:hover {
  background: var(--iframe-blue-hover);
  color: #fff;
}

.iframe-cadastro .btn-iframe-participar:active {
  transform: translateY(1px);
}

.iframe-cadastro .btn-iframe-participar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.iframe-cadastro .btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
  flex-shrink: 0;
}

.iframe-cadastro .btn-iframe-participar.is-loading .btn-spinner {
  display: inline-block;
}

.iframe-cadastro .btn-iframe-participar.is-loading {
  opacity: 0.85;
  pointer-events: none;
}

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

.iframe-cadastro .alert {
  border-radius: 4px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
}

.iframe-cadastro .alert-danger {
  border: 1px solid #f5c2c7;
  background-color: #f8d7da;
  color: #842029;
}

.iframe-cadastro .alert-success {
  border: 1px solid #badbcc;
  background-color: #d1e7dd;
  color: #0f5132;
}

/* Grid responsivo: desktop 2 + 3 colunas; mobile 1 coluna */
.iframe-cadastro__grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .iframe-cadastro__grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.iframe-cadastro__grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .iframe-cadastro__grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.iframe-cadastro__field {
  min-width: 0;
}

.iframe-cadastro__footer-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 767.98px) {
  .iframe-cadastro__required-hint {
    order: 1;
  }
  .iframe-cadastro__check-wrap {
    order: 2;
  }
}

@media (min-width: 768px) {
  .iframe-cadastro__footer-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
  .iframe-cadastro__check-wrap {
    order: 1;
    flex: 1;
    min-width: 0;
    padding-right: 1rem;
  }
  .iframe-cadastro__required-hint {
    order: 2;
    flex-shrink: 0;
    text-align: right;
    margin-top: 0 !important;
  }
}
