/* HERC Solutions LLC — Formulario de requisitos. Modo Light, mobile-first. */

:root {
  --navy: #0f2a44;
  --accent: #1b7f5a;
  --accent-dark: #146349;
  --ink: #1e242c;
  --muted: #5b6470;
  --line: #d9e0e8;
  --bg: #f4f6f9;
  --card: #ffffff;
  --danger: #b3261e;
  --success: #146349;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  background: #000000;
  color: #fff;
  padding: 28px 0 24px;
  border-bottom: 4px solid #6366f1;
}

.header-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-logo {
  display: block;
  width: 170px;
  height: auto;
}

.page-intro {
  text-align: center;
  padding: 26px 8px 6px;
}

.page-intro h1 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--navy);
}

.page-intro p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.req { color: var(--danger); font-weight: 700; }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin: 18px 0;
}

.card legend {
  padding: 0 6px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
}

.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  border-radius: 50%;
  background: #6366f1;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.group-desc { margin: 0 0 14px; color: var(--muted); font-size: 0.92rem; }

/* Fields */
.grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }

label { font-weight: 600; font-size: 0.92rem; color: var(--navy); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

textarea { min-height: 0; resize: vertical; }

input:focus, select:focus, textarea:focus, button:focus-visible {
  outline: 3px solid rgba(27, 127, 90, 0.25);
  border-color: var(--accent);
}

input.invalid, select.invalid, textarea.invalid { border-color: var(--danger); }

.hint { margin: 0; font-size: 0.82rem; color: var(--muted); }

.phone-row { display: flex; gap: 8px; align-items: stretch; }

.phone-code {
  flex: 0 0 auto;
  max-width: 142px;
  min-width: 0;
  min-height: 48px;
  padding: 12px 6px;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.phone-row input[type="tel"] { flex: 1 1 auto; min-width: 0; }

.phone-other { flex: 0 0 84px; min-width: 0; }

.radio-row, .check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 10px 0 2px;
}

.choice {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
}

.choice input { width: 20px; height: 20px; accent-color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.choice.check { align-items: flex-start; }

/* Dynamic services */
.category {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
  background: #fafbfc;
}

.category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.category-title { margin: 0; font-size: 1rem; color: var(--navy); }

.service {
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  margin-top: 12px;
}

.service:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

.link-btn {
  background: none;
  border: 0;
  padding: 8px 4px;
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 26px;
  font-size: 1.02rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary { background: #6366f1; color: #fff; width: 100%; }
.btn-primary:hover { background: #4f46e5; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--navy);
  min-height: 46px;
  font-size: 0.95rem;
}

.btn-small {
  min-height: 42px;
  padding: 9px 16px;
  font-size: 0.88rem;
}

.actions { margin: 8px 0 30px; text-align: center; }
.actions .hint { margin-top: 10px; }

.form-status {
  margin: 6px 0 14px;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-status.error { color: var(--danger); }
.form-status.success { color: var(--success); }

.form-error { margin: 0; font-size: 0.82rem; font-weight: 600; color: var(--danger); }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
}

.modal-overlay[hidden] { display: none; }

.modal {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}

.modal h2 { margin: 0 0 10px; color: var(--navy); font-size: 1.25rem; }
.modal p { margin: 0 0 20px; color: var(--muted); }
.modal .btn { width: 100%; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  background: #000000;
  color: #bcd3e6;
  padding: 18px 0;
  font-size: 0.85rem;
  text-align: center;
}
.site-footer p { margin: 0; }

/* Tablet / desktop */
@media (min-width: 720px) {
  .brand-logo { width: 190px; flex-shrink: 0; }
  .page-intro h1 { font-size: 1.8rem; }
  .grid { grid-template-columns: 1fr 1fr; }
  .btn-primary { width: auto; min-width: 320px; }
  .card { padding: 24px 26px; }
}
