﻿/*$font-size-base: 1rem;*/
.calltoaction-page {
  padding: 10vh 2.5%;
  /* Assicura che il form sia interattivo anche se ci sono backdrop o menu iniziali */
  position: relative;
  z-index: 1100;
  /* Forza gli eventi puntatore attivi sul form e sui suoi figli */
  pointer-events: auto;
}
.calltoaction-page h1 {
  color: #dde3e8;
  margin-bottom: 2rem;
}

.contact-form-wrapper {
  max-width: 800px;
}
.contact-form-wrapper .form-subtitle {
  color: #617a87;
  font-size: clamp(0.7rem, 2em, 1rem);
  margin-bottom: 2rem;
  letter-spacing: 0.1rem;
}

.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .cta-row {
    grid-template-columns: 1fr;
  }
}

.cta-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}
.cta-group label {
  color: #617a87;
  font-family: "Khand", sans-serif;
  font-size: 0.909rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

.cta-input {
  background-color: #0e1a1e;
  border: 1px solid #1d323b;
  color: #dde3e8;
  font-family: "Khand", sans-serif;
  font-size: clamp(0.7rem, 2em, 1rem);
  padding: 0.5rem;
  outline: none;
  transition: all 0.3s ease;
  resize: none;
  width: 100%;
}
.cta-input:focus {
  border-color: #007bff;
  /* Effetto glow 3D senza transform per evitare flicker del cursore */
  box-shadow: 0 4px 24px 0 rgba(0, 123, 255, 0.18), 0 1.5px 8px 0 rgba(0, 229, 255, 0.1);
  z-index: 2;
}

textarea.cta-input {
  min-height: 180px;
}
textarea.cta-input:focus {
  /* Effetto glow 3D senza transform per evitare flicker del cursore */
  box-shadow: 0 4px 24px 0 rgba(0, 123, 255, 0.13), 0 1.5px 8px 0 rgba(0, 229, 255, 0.08);
  z-index: 2;
}

.cta-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 2rem;
  margin-top: 0.5rem;
}
.cta-check input[type=checkbox] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  cursor: pointer;
  accent-color: #007bff;
  margin-top: 4px;
  flex-shrink: 0;
}
.cta-check label {
  color: #617a87;
  font-family: "Khand", sans-serif;
  font-size: 0.909rem;
  cursor: pointer;
}

.validation-message {
  color: #ff4f4f;
  font-family: "Khand", sans-serif;
  font-size: 0.909rem;
  margin-top: 0.25rem;
  padding-left: 0.25rem;
  text-shadow: 0 0 6px rgba(255, 79, 79, 0.55), 0 0 14px rgba(255, 79, 79, 0.25);
  animation: val-shake-in 1.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both, val-pulse 2.5s ease-in-out 0.45s infinite;
}

@keyframes val-shake-in {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }
  20% {
    opacity: 1;
    transform: translateX(7px);
  }
  40% {
    transform: translateX(-5px);
  }
  60% {
    transform: translateX(4px);
  }
  80% {
    transform: translateX(-2px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes val-pulse {
  0%, 100% {
    text-shadow: 0 0 6px rgba(255, 79, 79, 0.55), 0 0 14px rgba(255, 79, 79, 0.25);
  }
  50% {
    text-shadow: 0 0 10px rgba(255, 79, 79, 0.9), 0 0 24px rgba(255, 79, 79, 0.5);
  }
}
.btn-invia {
  background-color: transparent;
  border: 1px solid #007bff;
  color: #007bff;
  font-family: "Khand", sans-serif;
  font-size: clamp(0.7rem, 2em, 1rem);
  padding: 0.5rem 2rem;
  cursor: pointer;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}
.btn-invia:hover:not(:disabled) {
  background-color: #007bff;
  color: #fff;
}
.btn-invia:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.form-success {
  max-width: 800px;
  padding: 2rem;
  border: 1px solid #007bff;
  color: #dde3e8;
  font-size: clamp(0.7rem, 2em, 1rem);
  text-align: center;
  letter-spacing: 0.1rem;
}

.form-error {
  color: #e05252;
  font-size: 0.909rem;
  margin-bottom: 1rem;
}
