/* CONTENEDOR PRINCIPAL DEL FORMULARIO */
.test-ride-cta {
  background: url('/images/prueba/fondo-prueba.webp') no-repeat center center;
  background-size: cover;
  padding: 160px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
}

.test-ride-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6); /* menos blanco para que se vea el fondo */
  backdrop-filter: blur(3px);           /* menos blur */
  z-index: 1;
}

.form-wrapper {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 3rem 3rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  z-index: 2;
}


.test-ride-cta .container {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 700px;
  transition: all 0.3s ease-in-out;
}
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: #888;
  transition: 0.2s;
}

/* CABECERA DE LA SECCIÓN */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title {
  font-family: 'Gibson', sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
}

.test-ride-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 1.8rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  display: inline-block;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  font-family: inherit;
  transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  transform: scale(1.015);
  border-color: #115CFA;
  box-shadow: 0 0 0 4px rgba(17, 92, 250, 0.1);
  transition: all 0.2s ease-in-out;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.section-subtitle {
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.section-description {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}
/* FORMULARIO */

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  display: inline-block;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

/* BOTÓN WHATSAPP */
.btn.btn-mate {
  background: linear-gradient(135deg, #0dc143, #25d366);
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  transition: all 0.3s ease;
}

.btn.btn-mate:hover {
  transform: scale(1.05);
  background: #1ebd56;
}
.btn-container {
  text-align: center;
}

.btn.btn-mate i {
  font-size: 1.2rem;
}



.btn.btn-mate:hover {
  background: #004de9;
  box-shadow: 0 6px 20px rgba(0, 77, 233, 0.35);
}

.btn.btn-mate:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.mensaje-enviado {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #0f0;
  color: #000;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
  animation: fadeOut 3s forwards;
}
@keyframes fadeOut {
  0% {opacity: 1;}
  80% {opacity: 1;}
  100% {opacity: 0; display: none;}
}

/* ---------------- POPUP RIDER OWNER ---------------- */
.hidden {
  display: none !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.modal-contenido {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  color: #000;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transform: scale(0.96);
  opacity: 0;
}

#popupCerrar.btn-confirmar {
  background: #000;
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin-top: 1rem;
}

#popupCerrar.btn-confirmar:hover {
  background: #111;
}