/* =============== */
/* Base + Reset    */
/* =============== */

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f1f5ff;
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);

  --brand: #2563eb;     /* main */
  --brand-2: #1d4ed8;   /* darker */
  --ring: rgba(37, 99, 235, 0.25);

  --radius: 14px;
  --radius-sm: 10px;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* =============== */
/* Header / Footer */
/* =============== */
header {
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

header div {
  padding: 28px 18px;
  background: transparent;
}

header h1 {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  letter-spacing: 0.2px;
}

footer {
  color: rgba(255,255,255,0.92);
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  border-top: 1px solid rgba(255,255,255,0.15);
}

footer div {
  padding: 18px 12px;
  background: transparent;
}

footer p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.95;
}

/* =============== */
/* Main layout     */
/* =============== */
main {
  flex: 1;
  padding: 32px 18px;
}

main > p {
  max-width: 980px;
  margin: 0 auto 12px auto;
  color: var(--muted);
  font-size: 1.02rem;
}

main > br {
  display: none; 
}

.cols-parent {
  max-width: 1100px;
  margin: 22px auto 0 auto;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

/* two-column responsive */
.cols {
  width: 50%;
  min-width: 320px;
}

.cols-parent div {
  flex: 1;
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: var(--shadow);
}

.cols-parent div p {
  margin: 0;
  color: var(--muted);
}

.cols-parent div a {
  appearance: none;
  border: 1px solid rgba(37, 99, 235, 0.35);
  /* background: var(--brand); */
  /* color: #fff; */
  color: var(--brand);
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: default;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

/* stack on smaller screens */
@media (max-width: 900px) {
  .cols-parent {
    flex-direction: column;
  }
  .cols {
    width: 100%;
  }
}

/* =============== */
/* Form (card)     */
/* =============== */
form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: var(--shadow);
}

form p {
  margin: 14px 0 8px 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

input[type="file"], input[type="number"] {
  width: 100%;
  max-width: 520px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  outline: none;
}

input[type="file"] {
  padding: 8px 12px;
}

/* focus ring */
input[type="file"]:focus, input[type="number"]:focus {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 4px var(--ring);
}

/* =============== */
/* Fieldsets       */
/* =============== */
fieldset {
  margin: 12px 0 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 12px 10px 12px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}

legend {
  padding: 0 10px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
}

/* checkboxes + labels */
fieldset input[type="checkbox"] {
  transform: translateY(1px);
}

fieldset label {
  margin-left: 8px;
  color: var(--muted);
}

fieldset br {
  display: none;
}

/* Make each checkbox line spaced nicely without editing HTML */
fieldset input[type="checkbox"] {
  margin: 8px 0 0 0;
}
fieldset label {
  display: inline-block;
  margin-top: 8px;
}

/* =============== */
/* Buttons         */
/* =============== */
form > div {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

input[type="submit"], input[type="button"] {
  appearance: none;
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

input[type="button"] {
  background: transparent;
  color: var(--brand);
  border: 1px solid rgba(37, 99, 235, 0.35);
}

input[type="submit"]:hover {
  background: #1f5fe0;
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.18);
  transform: translateY(-1px);
}

input[type="button"]:hover {
  background: rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

input[type="submit"]:active,
input[type="button"]:active {
  transform: translateY(0px);
}

input[type="submit"]:focus,
input[type="button"]:focus {
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
}

/* =============== */
/* Small polish    */
/* =============== */
p {
  margin: 0;
}

a {
  color: var(--brand);
}

.download_section {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.download_section p {
  padding-top: 16px;
  display: none;
}
