@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&display=swap');

.expo-form {
  max-width: 860px;
  margin: 40px auto;
  padding: 60px 50px;
  border-radius: 20px;
  color: #fff;
  background-image: linear-gradient(180deg, #290C97B0 0%, #290C97 100%);
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  font-family: "Montserrat", system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.expo-form .expo-form-title {
  font-size: 60px;
  font-weight: 800;
  margin: 0 0 10px;
  text-align: center;
  color: #FFF;
}

@media (max-width: 768px) {
  .expo-form .expo-form-title {
    font-size: 30px;
  }
}

.expo-form .expo-form-copy {
  font-size: 17px;
  margin: 0 auto 40px;
  max-width: 640px;
  text-align: center;
  color: #FFF;
}

.expo-form .alert {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
}

.expo-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #fff;
  font-size: 15px;
}

.expo-form input[type=text],
.expo-form input[type=email],
.expo-form input[type=tel],
.expo-form input[type=number],
.expo-form select {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  color: #193D57;
  background: #fff;
}

.expo-form input:focus,
.expo-form select:focus {
  border-color: #D81F90;
  box-shadow: 0 0 0 3px rgba(216,31,144,.25);
}

.expo-form .expo-btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 8px;
  border: 0;
  background: #D81F90;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  transition: background .25s ease, transform .05s ease;
  margin-top: 10px;
}

.expo-form .expo-btn:hover {
  background: #220D5B;
}

.expo-form .expo-btn:active {
  transform: scale(.98);
}

.expo-form .field {
  margin-bottom: 18px;
}

.expo-form .policy {
  margin: 14px 0 8px;
}

.expo-form .policy label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #fff;
  font-size: 14px;
}

.expo-form .policy input[type=checkbox] {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.expo-form .policy span {
  color: #fff;
  font-weight: 600;
}

.expo-form .policy a {
  color: #fff;
  text-decoration: underline;
  font-weight: 800;
}

.expo-form .captcha label {
  color: #fff;
  font-weight: 600;
}

.expo-form .captcha input[type=number] {
  width: 160px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.3);
}

.expo-form .row-flex {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
}

.expo-form .row-flex select[name="telefono_indicativo"] {
  flex: 0 0 110px;
  width: 110px;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.expo-form .row-flex input[name="telefono"] {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

/* Ajuste de altura de campos en móvil */
@media (max-width: 768px) {
  .expo-form input[type=text],
  .expo-form input[type=email],
  .expo-form input[type=tel],
  .expo-form input[type=number],
  .expo-form select {
    padding-top: 16px;
    padding-bottom: 16px;
    min-height: 48px;
    line-height: 1.2;
  }

  .expo-form .row-flex select[name="telefono_indicativo"] {
    min-height: 48px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

@media (max-width: 600px) {
  .expo-form {
    padding: 30px 22px;
  }

  .expo-form .row-flex {
    flex-wrap: wrap;
  }

  .expo-form .row-flex select[name="telefono_indicativo"],
  .expo-form .row-flex input[name="telefono"] {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
  }
}

/* Fix específico para iOS (Safari / Chrome) en selects */
@supports (-webkit-touch-callout: none) {
  .expo-form select,
  .expo-form .row-flex select[name="telefono_indicativo"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-height: 52px;
    padding-top: 14px;
    padding-bottom: 14px;
    line-height: 1.4;
  }

  .expo-form .row-flex select[name="telefono_indicativo"] {
    font-size: 14px;
    white-space: nowrap;
  }
}

/* Pantalla de éxito */

.expo-success {
  max-width: 760px;
  margin: 40px auto;
  padding: 28px 28px;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  background: #fff;
  font-family: "Montserrat", system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: #193D57;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.expo-success h3 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #290C97;
}

.expo-success p {
  margin: 6px 0 10px;
}

.expo-success .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.expo-success a.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.expo-success a.btn-primary {
  background: #DD128F;
  color: #fff;
  border: none;
}

.expo-success a.btn-primary:hover {
  background: #00CCFF;
}
