:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.6);
  --muted2: rgba(15, 23, 42, 0.45);
  --line: rgba(0, 0, 0, 0.1);
  --accent: #0ea5e9;
  --accent2: #7c3aed;
  --good: #10b981;
  --warn: #f59e0b;
  --danger: #f43f5e;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}
img {
  width: 100%;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 16px 64px;
}

.star {
  color: var(--warn);
  font-weight: 800;
}
.accent {
  color: var(--accent);
}

/* Header */
header.hero {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f1f5f9);
  border-radius: calc(var(--radius) + 6px);
  padding: 20px 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
header.hero:before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(
      600px 220px at 20% 20%,
      rgba(14, 165, 233, 0.08),
      transparent 55%
    ),
    radial-gradient(
      520px 220px at 80% 20%,
      rgba(124, 58, 237, 0.07),
      transparent 58%
    );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.18),
    rgba(124, 58, 237, 0.14)
  );
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex: 0 0 auto;
  align-self: center;
}
.hero h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.2px;
  color: #0f172a;
}
.hero p {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 620px;
  font-size: 13.5px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.hero-left {
  display: flex;
  gap: 10px;
  max-width: 370px;
  width: 100%;
}
.hero-left h1 {
  font-size: clamp(1rem, 2.5vw, 3rem);
}
.hero-right {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.imtoflogo,
.datelogo,
.ippexlogo {
  align-self: flex-end;
  flex-shrink: 0;
}

.imtoflogo img,
.datelogo img,
.ippexlogo img {
  display: block;
  width: 100%;
  height: auto;
}

.imtoflogo { width: clamp(90px,  13vw, 170px); }
.datelogo  { width: clamp(80px,  12vw, 150px); }
.ippexlogo { width: clamp(75px,  11vw, 150px); }
.pill {
  border: 1px solid var(--line);
  background: #f1f5f9;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .hero-right {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .imtoflogo { width: clamp(100px, 35vw, 200px); }
  .datelogo  { width: clamp(60px,  20vw, 110px); }
  .ippexlogo { width: clamp(55px,  18vw, 100px); }
}
/* Progress */
.progress {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.step {
  flex: 1 1 160px;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.step .dot {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-weight: 800;
  font-size: 12px;
  background: #f8fafc;
}
.step.active {
  background: #eff6ff;
  border-color: #93c5fd;
}
.step.active .dot {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}
.step.done {
  border-color: #6ee7b7;
  background: #f0fdf4;
}
.step.done .dot {
  border-color: #10b981;
  background: #10b981;
  color: #fff;
}
.step small {
  display: block;
  color: var(--muted2);
  margin-top: 1px;
  font-size: 16px;
}
.step strong {
  font-size: 14px;
  letter-spacing: 0.2px;
  color: #0f172a;
}

/* Cards */
.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-top: 14px;
}
.card h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.2px;
  color: #0f172a;
}
.hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12.8px;
}
.subhead {
  margin: 0 0 10px;
  font-size: 14px;
  color: #374151;
  font-weight: 600;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 12px 0 14px;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 760px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
.row-span-2 {
  grid-column: span 2;
}
@media (max-width: 760px) {
  .row-span-2 {
    grid-column: span 1;
  }
}

/* Inputs */
label {
  display: block;
  font-size: 14px;
  color: #374151;
  margin-bottom: 6px;
  font-weight: 600;
}
.req::after {
  content: " *";
  color: #dc2626;
  font-weight: 700;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
textarea {
  min-height: 92px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.help {
  margin-top: 6px;
  color: var(--muted2);
  font-size: 12px;
}

/* Radio & checkbox */
.choice-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}
.choice input {
  margin: 0;
  width: auto;
  height: auto;
}
.choice strong {
  font-size: 18px;
  color: #0f172a;
  letter-spacing: 1px;
}
.choice small {
  display: block;
  color: var(--muted2);
  font-size: 14 px;
  margin-top: 2px;
}

/* Tags */
.tagbox {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 44px;
  align-items: center;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  font-size: 12.5px;
  color: #1e40af;
}
.tag button {
  border: 0;
  background: transparent;
  color: #1e40af;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
  padding: 0;
}
.tag-input {
  flex: 1 1 180px;
  min-width: 160px;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  color: #0f172a;
  padding: 6px !important;
  height: auto !important;
  box-shadow: none !important;
}

/* Chips */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 900px) {
  .chip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .chip-grid {
    grid-template-columns: 1fr;
  }
}

/* Education table */
.table-like {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
}
.table-head,
.table-row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1.6fr 0.8fr 0.8fr 40px;
  gap: 10px;
  padding: 10px 12px;
  align-items: center;
}
.table-head {
  background: #f8fafc;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid #e2e8f0;
  font-weight: 600;
}
.table-row {
  border-bottom: 1px solid #f1f5f9;
}
.table-row:last-child {
  border-bottom: 0;
}
.table-row input,
.table-row select {
  padding: 8px 10px;
  border-radius: 6px;
  height: auto;
}

.icon-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
}
.icon-btn:hover {
  border-color: #fca5a5;
  color: #dc2626;
  background: #fef2f2;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.btn {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #374151;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  letter-spacing: 0.2px;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
.btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn.primary {
  background: #f58220;
  border-color: #f58220;
  color: #fff;
}
.btn.primary:hover {
  filter: brightness(0.95);
}

/* Sticky bar */
.stickybar {
  position: sticky;
  bottom: 0;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.07);
}
.stickybar .left,
.stickybar .right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.meta {
  color: var(--muted);
  font-size: 12.5px;
}

/* Footer */
.site-footer {
  margin-top: 18px;
  border-top: 1px solid #e2e8f0;
  padding: 18px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}
.footgrid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 14px;
  margin-top: 12px;
}
@media (max-width: 760px) {
  .footgrid {
    grid-template-columns: 1fr;
  }
}
.footcard {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
}
.footcard strong {
  color: #0f172a;
}
.tiny {
  color: var(--muted2);
  font-size: 12px;
  margin-top: 6px;
}

.mt-14 {
  margin-top: 14px;
}
.mt-12 {
  margin-top: 12px;
}

/* Utility */
.hidden {
  display: none !important;
}
.invalid {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.14) !important;
}
.file {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
}

/* Sponsor banner */
.sponsor-banner {
  margin-top: 26px;
  background: #0b2e59;
  padding: 42px 16px;
  text-align: center;
  color: #fff;
}
.sponsor-banner__container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 12px;
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 1199px) {
  .sponsor-banner__container {
    flex-wrap: wrap;
  }
  .sponsor-banner__group--silver {
    flex: 0 0 100%;
    border-left: none;
    padding: 12px 0;
    justify-content: center;
  }
}
@media (max-width: 767px) {
  .sponsor-banner__container {
    justify-content: center;
  }
  .sponsor-banner__item {
    flex: 0 0 calc(33.33% - 20px);
  }
  .sponsor-banner__group--silver {
    border-left: none !important;
    flex-wrap: wrap;
  }
  .sponsor-banner__group--silver .sponsor-banner__item {
    flex: 0 0 calc(33.33% - 20px);
  }
}
.sponsor-banner__item {
  display: flex;
  align-items: center;
  justify-content: center;
  /* margin: 0 10px; */
}
.sponsor-banner__item img {
  max-height: 87px;
}
.sponsor-banner__group--silver {
  display: flex;
  align-items: center;
  gap: 15px;
  border-left: 2px solid #000;
  padding-left: 15px;
  margin-left: 10px;
}
.sponsor-banner__group--silver .sponsor-banner__item {
  width: 100%;
  background-color: #fff;
}

/* Topbar / Nav */
@media (max-width: 820px) {
  .topbar {
    height: auto;
    padding: 10px 16px;
  }
  .navwrap {
    flex-wrap: wrap;
    gap: 10px;
  }
  .toplogo {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  .toplogo .brand img {
    height: 34px;
    width: auto;
    max-width: 100%;
  }
  .menu-toggle {
    display: flex;
    margin-left: auto;
  }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0 0;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 10px 12px;
    border-radius: 8px;
  }
  .nav .loginbtn {
    width: 100%;
    text-align: center;
  }
}
