/* ==========================================================
   MetaData Builder • Support Form — Corporate Theme
   Purpose: cleaner, more neutral, professional look
   ========================================================== */

/* --- Theme tokens (corporate palette) --- */
body[data-theme="dark"] {
  --bg: #0f1216;           /* slate canvas */
  --text: #e5e7eb;         /* light gray text */
  --muted: #9aa4b2;        /* secondary text */
  --brand: #4da3ff;        /* corporate blue */
  --brand-2: #9ecaff;      /* light blue */
  --card: #11161d;         /* card surface */
  --card-border: rgba(255,255,255,0.10);
  --field-bg: #10151c;     /* inputs */
  --radius: 10px;          /* tighter corners */
  --shadow-soft: 0 8px 22px rgba(0,0,0,0.28);
  --ring: 0 0 0 3px rgba(77, 163, 255, 0.22);
}

body[data-theme="light"] {
  --bg: #f7fafc;           /* neutral paper */
  --text: #1f2937;         /* charcoal */
  --muted: #6b7280;        /* secondary */
  --brand: #2563eb;        /* corporate blue */
  --brand-2: #93c5fd;      /* light blue */
  --card: #ffffff;         /* card surface */
  --card-border: rgba(0,0,0,0.10);
  --field-bg: #ffffff;     /* inputs */
  --radius: 10px;
  --shadow-soft: 0 8px 22px rgba(0,0,0,0.08);
  --ring: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

/* --- Page spacing --- */
.support-wrapper { padding: clamp(28px, 5vw, 56px) 0 80px; }

/* --- Grid system --- */
.support-grid { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 2.2vw, 24px); }
@media (min-width: 980px) { .support-grid { grid-template-columns: 1fr 1fr; } }

/* Rows inside cards for tidy alignment */
.row { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 720px) { .row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.row > * { min-width: 0; }

/* ===== Header normalization for support pages (corporate theme) ===== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: saturate(140%) blur(8px);
    background: linear-gradient(180deg, rgba(17,22,29,0.85), rgba(17,22,29,0.65));
    border-bottom: 1px solid var(--card-border);
  }
  
  .navbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 0;
  }
  
  .brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
  .brand-logo { height: 56px; width: auto; display: block; }
  .brand-name { font-weight: 700; letter-spacing: .2px; }
  
  .nav-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
  .nav-links a { color: var(--text); text-decoration: none; opacity: 0.9; transition: opacity .2s ease, color .2s ease; }
  .nav-links a:hover { opacity: 1; color: var(--brand-2); }
  .nav-links .btn { margin-left: 4px; }
  
  @media (max-width: 640px) {
    .navbar { flex-wrap: wrap; }
    .brand { margin-bottom: 8px; }
  }

/* --- Typography --- */
.title {
  font-size: clamp(28px, 4.6vw, 38px);
  line-height: 1.15; letter-spacing: -0.01em;
  color: var(--text);
}
.subtitle { color: var(--muted); font-size: clamp(14px, 1.6vw, 16px); }

/* ===== Header normalization for support pages (corporate theme) ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(140%) blur(8px);
    background: linear-gradient(180deg, rgba(155, 191, 242, 0.85), rgb(225, 206, 242));
    border-bottom: 1px solid var(--card-border);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

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

.brand-name {
    font-weight: 700;
    letter-spacing: .2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity .2s ease, color .2s ease;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--brand-2);
}

.nav-links .btn {
    margin-left: 4px;
}

@media (max-width: 640px) {
    .navbar {
        flex-wrap: wrap;
    }

    .brand {
        margin-bottom: 8px;
    } }

/* --- Cards (solid, subtle) --- */
.card {
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 24px);
  border: 1px solid var(--card-border);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}
.card h2 {
  margin: 0 0 10px; color: var(--text);
  font-size: clamp(18px, 2.2vw, 22px);
}
.card h2::after {
  content: ""; display:block; height: 3px; width: 48px; margin-top: 8px;
  background: var(--brand);
  border-radius: 2px; opacity: .85;
}
.divider { height: 1px; background: var(--card-border); margin: 10px 0 12px; }

/* --- Labels & helpers --- */
.field { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.field label { color: var(--text); font-weight: 600; }
.help { color: var(--muted); font-size: 0.95rem; }
.req { color: var(--brand); font-weight: 700; }
.badge { font-size: .78rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--card-border); color: var(--muted); background: transparent; }

.field label { margin-bottom: 4px; }
.field .help { margin-top: 2px; }

/* --- Inputs (clean, accessible) --- */
:where(input[type="text"],input[type="email"],input[type="url"],input[type="date"],textarea,select) {
  width: 100%;
  display: block;
  color: var(--text);
  background: var(--field-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 11px 13px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
:where(textarea) { resize: vertical; min-height: 52px; }
:where(input, textarea, select)::placeholder { color: rgba(125,135,155,0.85); }
:where(input, textarea, select):hover { border-color: rgba(125,135,155,0.55); }
:where(input, textarea, select):focus { border-color: var(--brand); box-shadow: var(--ring); }

/* Select chevron */
select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px 18px;
  padding-right: 40px;
}

/* Checkboxes */
.inline { display:flex; align-items:center; gap: 12px; flex-wrap: wrap; }
.inline input[type="checkbox"] { accent-color: var(--brand); transform: translateY(1px); }

/* --- Dropzone (focused, not flashy) --- */
.dropzone {
  display: grid; place-items: center; text-align: center;
  border: 1px dashed var(--card-border);
  border-radius: 8px; padding: 20px;
  background: transparent;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.dropzone .hint { color: var(--muted); font-size: 0.95rem; }
.dropzone:hover { border-color: var(--brand-2); background: rgba(147,197,253,0.06); box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
.dropzone.is-dragover { border-color: var(--brand); background: rgba(77,163,255,0.10); }
.dropzone input { display:none; }

/* --- Actions & buttons --- */
.actions { display:flex; gap: 12px; justify-content: flex-end; }
.btn {
  display:inline-flex; align-items:center; gap:10px;
  font-weight:600; line-height:1; text-decoration:none; cursor:pointer;
  border-radius: 8px; padding: 11px 14px; border: 1px solid transparent;
  transition: transform .08s ease, box-shadow .20s ease, background .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--brand); color: #010101; box-shadow: 0 8px 20px rgba(37,99,235,0.25); }
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); }
.btn-outline { border: 1px solid var(--card-border); background: transparent; color: var(--text); }
.btn-outline:hover { border-color: var(--brand); }

/* --- Footer tweaks --- */
footer .container { padding-top: 10px; }
footer nav a { margin: 0 8px; }

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.card .row + .row { margin-top: 4px; }