:root {
  /* Backgrounds */
  --bg: #F8FAFC;
  --card-bg: #FFFFFF;

  /* Text system */
  --text: #0F172A;
  --muted: #475569;
  --subtle: #64748B;

  /* Borders */
  --line: #E5E7EB;
  --line-strong: rgba(0, 0, 0, 0.12);

  /* Status */
  --ok: #0A7C3A;
  --danger: #B91C1C;

  /* Accent */
  --fbos-blue: #0A3D62;
  --fbos-blue-soft: #0E4F7A;

  /* Type system */
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", Helvetica;

  /* Type scale */
  --fs-base: 15px;
  --fs-label: 13px;
  --fs-help: 12px;

  --fs-h1: 18px;
  --fs-h2: 16px;

  /* Font weights */
  --fw-regular: 500;
  --fw-semibold: 650;
  --fw-bold: 800;

  /* Line heights */
  --lh-body: 1.45;
  --lh-tight: 1.20;

  /* Radius */
  --r-sm: 12px;
  --r-md: 14px;
  --r-lg: 20px;

  /* Control height */
  --ctrl-h: 48px;

  /* Shadows */
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.08);

  /* Text aliases */
  --text-secondary: #475569;
  --text-tertiary: #64748B;
  --text-placeholder: #94A3B8;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* =========================
   PAGE / LAYOUT
========================= */

.page {
  width: 100%;
  padding: 24px 16px 48px;
}

.container {
  max-width: 560px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 20px;
}

/* On very small screens, avoid edge-to-edge look */
@media (max-width: 380px) {
  .page { padding-left: 12px; padding-right: 12px; }
  .container { padding: 16px; }
}

/* =========================
   TYPO
========================= */

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
}

h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  text-align: center;
  margin-top: 14px;
}

.subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin: 8px 0 18px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: var(--fw-regular);
}

h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  margin-top: 22px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

p { margin: 0; }

small,
.hint,
.help-text {
  font-size: var(--fs-help);
  line-height: 1.35;
  color: var(--text-tertiary);
  font-weight: var(--fw-regular);
}

.hint {
  margin-top: 6px;
}

/* =========================
   HEADER BLOCK / BRAND / TABS
========================= */

.header-block {
  margin-bottom: 8px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.logo-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px dashed #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: var(--fw-bold);
}

.brand-title {
  font-weight: var(--fw-semibold);
  font-size: 16px;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.35;
  font-weight: var(--fw-regular);
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  text-decoration: none;
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: var(--text);
  background: #F2F2F2;
  transition: all 0.2s ease;
}

.tab:hover {
  background: #E9E9E9;
}

.tab.active {
  background: #DDE3EA;
  border-color: #C5CCD5;
}

/* =========================
   FORM CONTROLS
========================= */

form {
  margin-top: 8px;
}

label {
  display: block;
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  line-height: 1.25;
  color: #334155;
  margin: 10px 0 6px;
}

/* Solo inputs de campo, NO checkbox/radio */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  height: var(--ctrl-h);
  border: 1px solid var(--line-strong);
  background: #FFFFFF;
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  line-height: 1.25;
  font-weight: var(--fw-regular);
}

textarea {
  height: auto;
  min-height: 120px;
  line-height: 1.4;
  resize: vertical;
}

/* placeholder */
input:not([type="checkbox"]):not([type="radio"])::placeholder,
textarea::placeholder {
  color: var(--text-placeholder);
  font-weight: var(--fw-regular);
}

/* focus */
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(10, 61, 98, 0.5);
  box-shadow: 0 0 0 4px rgba(10, 61, 98, 0.08);
}

/* =========================
   VEHICLE PREVIEW
========================= */

.vehicle-preview {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, .02);
  display: none;
}

.vehicle-preview h3 {
  margin: 0 0 10px 0;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: var(--fw-semibold);
}

.vehicle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.readonly-field label {
  margin: 0 0 6px 0;
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: var(--fw-semibold);
}

.readonly-field input {
  background: #F7F7F7;
}

@media (min-width: 560px) {
  .vehicle-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================
   CHECKBOX + BUTTON
========================= */

.checkboxes {
  margin-top: 12px;
}

.checkboxes label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: var(--fw-regular);
  color: var(--text);
  margin: 0;
}

.checkboxes input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 18px;
}

/* your HTML uses <button> directly */
button {
  width: 100%;
  border: none;
  background: var(--fbos-blue);
  color: #fff;
  padding: 14px;
  border-radius: var(--r-md);
  font-size: 15px;
  line-height: 1.1;
  font-weight: var(--fw-bold);
  cursor: pointer;
  margin-top: 14px;
  transition: all 0.2s ease;
}

button:hover {
  background: var(--fbos-blue-soft);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
}

button:disabled {
  opacity: .6;
}

/* =========================
   STATUS MSG
========================= */

#statusMsg {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  color: var(--text-secondary);
}

.status.ok { color: var(--ok); }
.status.err { color: var(--danger); }
.container form label.confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 0;
}

.container form .confirm-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
}

.container form .confirm-check .confirm-box {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin-top: 1px;
  flex: 0 0 20px;
}
/* =========================
   FORM FIXES — INHOUSE
========================= */

.phone-row{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap:10px;
  align-items:center;
}

.phone-code{
  width:100%;
}

.fbos-logo-slot{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:72px;
  margin: 4px 0 14px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.field small{
  display:block;
  margin-top:8px;
  color: var(--muted);
  line-height:1.35;
}

/* Mejor spacing para radios */
.segmented{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:6px;
}

.seg{
  display:flex;
  align-items:center;
  gap:8px;
}

/* Ajuste mobile */
@media (max-width: 520px){
  .phone-row{
    grid-template-columns: 1fr;
  }
}



