/* =========================================================
   DALIS — Contact Form
   Estilo: Tech / Profesional / Accesible
   ========================================================= */

.contact-form {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 26px;
  background: linear-gradient(180deg, #0b1220 0%, #070b14 100%);
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 24px 60px rgba(0,0,0,0.55);
}

/* Grid nombre + email */
.contact-form .rowx {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .contact-form .rowx {
    grid-template-columns: 1fr 1fr;
  }
}

/* Inputs generales */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: #0f1629;
  border: 1px solid rgba(255,255,255,0.08);
  color: #f1f5f9;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

/* Placeholder */
.contact-form ::placeholder {
  color: rgba(255,255,255,0.45);
}

/* Focus */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #38bdf8;
  background: #111a33;
  box-shadow: 0 0 0 3px rgba(56,189,248,0.25);
}

/* Botón */
.contact-form .btnx {
  margin-top: 18px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.contact-form .btnx.primary {
  background: linear-gradient(135deg, #0ea5e9, #22d3ee);
  color: #041018;
  box-shadow:
    0 12px 28px rgba(34,211,238,0.35),
    inset 0 -1px 0 rgba(0,0,0,0.2);
}

.contact-form .btnx.primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 40px rgba(34,211,238,0.45),
    inset 0 -1px 0 rgba(0,0,0,0.25);
}

.contact-form .btnx.primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Mensajes de estado */
.form-message {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
}

.form-message.ok {
  color: #22c55e;
}

.form-message.err {
  color: #ef4444;
}

/* CAPTCHA container (si usás Turnstile / hCaptcha) */
.captcha-box {
  margin-top: 16px;
}

/* Mobile refinado */
@media (max-width: 420px) {
  .contact-form {
    padding: 22px 18px;
    border-radius: 14px;
  }
}
