:root {
  --azzurro-chiaro: #0078D4;       /* blu Outlook */
  --azzurro-chiaro-hover: #005A9E; /* più scuro, per hover */
  --azzurro-scuro-testo: #0078D4;
  --bianco: #ffffff;
  --testo-scuro: #1a1a1a;
  --testo-chiaro: #ffffff;
  --grigio: #8a93a1;
  --grigio-chiaro: #e3e7ec;
}

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

html, body {
  min-height: 100vh;
  min-height: 100dvh;
}

body {
  background: var(--bianco);
  color: var(--testo-scuro);
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
}

/* LOGO IN ALTO SOPRA IL FORM */
.top-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 10px; /* più vicino al form */
}


.big-placeholder,
.logo-placeholder {
  width: 100%;
  max-width: 240px;
  min-height: 120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.big-placeholder {
  height: 120px;
  border: 2px dashed var(--grigio-chiaro);
  border-radius: 10px;
  color: var(--grigio);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
}

.logo-img {
  display: block;
  max-width: 150%;
  max-height: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* CONTENUTO CENTRALE */
.content {
  flex: 1;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 50px;
  text-align: center;
}

.content.active {
  display: flex;
}

.error-box {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.error-icon {
  margin-bottom: 6px;
}

.error-title {
  color: #D32F2F;
}

.error-text {
  font-size: 15px;
  font-weight: 300;
  color: var(--grigio);
  max-width: 380px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.form {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.5px;
}

.subtitle {
  font-size: 15px;
  font-weight: 400;
  color: var(--grigio);
  text-align: center;
  margin-top: -10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--testo-scuro);
}

.field input {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: var(--testo-scuro);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--grigio-chiaro);
  padding: 10px 2px;
  outline: none;
  transition: border-color 0.2s ease;
}

.field input:focus {
  border-bottom-color: var(--azzurro-chiaro);
}

.field input::placeholder {
  color: var(--grigio);
  font-weight: 300;
}

/* OPZIONI ORIZZONTALI (SONDAGGIO) */
.options {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}

.options input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.option-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 20px 14px;
  border: 2px solid var(--grigio-chiaro);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.option-card:hover {
  border-color: var(--azzurro-chiaro);
}

.options input[type="radio"]:checked + .option-card {
  background-color: var(--azzurro-chiaro);
  border-color: var(--azzurro-chiaro);
}

.options input[type="radio"]:checked + .option-card .option-title,
.options input[type="radio"]:checked + .option-card .option-desc {
  color: var(--testo-chiaro);
}

.options input[type="radio"]:focus-visible + .option-card {
  outline: 2px solid var(--azzurro-scuro-testo);
  outline-offset: 2px;
}

.option-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--testo-scuro);
}

.option-desc {
  font-size: 12px;
  font-weight: 300;
  color: var(--grigio);
  line-height: 1.4;
}

/* BOTTONE */
.btn-submit {
  margin-top: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--testo-chiaro);
  background: var(--azzurro-chiaro);
  border: none;
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-submit:hover {
  background: var(--azzurro-chiaro-hover);
}

.btn-submit:active {
  transform: scale(0.98);
}

/* BANNER AZZURRO CHIARO IN FONDO */
.bottom-banner {
  width: 100%;
  background: var(--azzurro-chiaro);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-text {
  font-size: 14px;
  font-weight: 400;
  color: var(--testo-chiaro);
  text-align: center;
}

/* MOBILE */
@media (max-width: 600px) {
  .top-header {
    padding: 32px 20px 10px;
  }

  .options {
    flex-direction: column;
  }

  .title {
    font-size: 20px;
  }

  .big-placeholder,
  .logo-placeholder {
    min-height: 100px;
  }
}
/* SPUNTA VERDE SCHERMATA RINGRAZIAMENTO */
.check-badge {
  width: 68px;
  height: 68px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background-color: #16a34a; /* verde spunta */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.check-badge::after {
  content: "";
  width: 18px;
  height: 32px;
  border-right: 4px solid #ffffff;
  border-bottom: 4px solid #ffffff;
  transform: rotate(42deg) translate(-2px, -3px);
}