/* =========================================================
   form.css — M3M Tech contact form (dark theme)
   ========================================================= */
:root{
  --bg:#0b1220;
  --text:#e8eefc;
  --muted:#b7c2de;
  --radius: 18px;
  --accent:#5eead4;
  --accent2:#60a5fa;
  --danger:#ff6b6b;
  --ok:#2dd4bf;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(96,165,250,.16), transparent 60%),
    radial-gradient(900px 500px at 80% 20%, rgba(94,234,212,.12), transparent 60%),
    var(--bg);
  line-height:1.6;
}
a{ color:inherit; text-decoration:none; }
.container{ max-width:1100px; margin:0 auto; padding:0 18px; }

.hero{ padding:44px 0 18px; text-align:center; }
.hero h1{ margin:0 0 8px; font-size:clamp(30px,4vw,44px); line-height:1.12; }
.sub{ margin:0 auto; max-width:900px; color:var(--muted); font-size:16px; }

.brandbar{
  background: rgba(20,26,36,0.75);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bar{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  gap: 12px;
  padding: 12px 0;
}
.brand{ display:flex; align-items:center; gap:10px; min-width:150px; }
.dot{ width:12px; height:12px; border-radius:50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.brand-name{ font-weight:900; letter-spacing:.5px; }
.nav-center{ display:flex; justify-content:center; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 11px 18px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,0.12);
  background: linear-gradient(135deg, #0f1625, #1b2130);
  box-shadow: 0 12px 28px rgba(0,0,0,0.6);
  font-weight:800;
  letter-spacing:.3px;
  cursor:pointer;
  transition: transform .25s ease, box-shadow .25s ease, opacity .2s ease;
}
.btn:hover{ transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,0,0,0.75); }
.btn:disabled{ opacity:.55; cursor:not-allowed; transform:none; box-shadow:0 12px 28px rgba(0,0,0,0.35); }
.btn-ghost{ background: rgba(255,255,255,0.03); box-shadow:none; }

.images{ padding: 18px 0 8px; }
.img-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.img-card{
  margin:0;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
  overflow:hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,0.55);
}
.img-card img{ width:100%; height:180px; object-fit:cover; object-position:center; display:block; }

.main{ padding: 22px 0 50px; }
.card{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(5, 8, 15, 0.85);
  box-shadow: 0 12px 30px rgba(0,0,0,0.55);
  padding: 18px;
}
.grid{ display:grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.field{ display:flex; flex-direction:column; gap: 8px; }
.field-wide{ grid-column: 1 / -1; }
.label{ font-weight:800; letter-spacing:.2px; }
.hint{ margin-top:-2px; color: rgba(255,255,255,0.72); font-size:13px; }

.input{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  outline:none;
}
.input:focus{
  border-color: rgba(94,234,212,0.35);
  box-shadow: 0 0 0 3px rgba(94,234,212,0.12);
}
.textarea{ resize: vertical; min-height: 160px; }

.error{ min-height:18px; color: var(--danger); font-size:13px; }

.footer-note{
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.86);
  font-weight: 700;
}
.actions{ margin-top:14px; display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

.status{ margin-top:14px; min-height:22px; text-align:center; }
.status.ok{ color: var(--ok); }
.status.err{ color: var(--danger); }

.smallprint{
  margin-top: 14px;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  text-align:center;
}

@media (max-width: 700px){
  .grid{ grid-template-columns: 1fr; }
  .img-grid{ grid-template-columns: 1fr; }
  .img-card img{ height: 200px; }
}

/* Select en tema oscuro */
select {
  background-color: #111;
  color: #fff;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  outline: none;
  cursor: pointer;
}

/* Placeholder (la primera opción tipo "Select...") */
select option[disabled] {
  color: #aaa;
}

/* Opciones del desplegable (funciona bien en Firefox, y a veces en Chrome/Edge) */
select option {
  background-color: #111;
  color: #fff;
}

/* Hover/Focus del select */
select:hover {
  border-color: #555;
}

select:focus {
  border-color: #7aa7ff;
  box-shadow: 0 0 0 3px rgba(122, 167, 255, 0.25);
}

