:root {
  --ink: #10231f;
  --muted: #66726f;
  --green: #095c4a;
  --green2: #0d7a61;
  --mint: #e7f3ee;
  --cream: #f6f2e9;
  --gold: #d7a940;
  --line: #dfe7e3;
  --white: #fff;
  --shadow: 0 22px 60px rgba(19, 50, 43, 0.12);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: linear-gradient(180deg, #eff5f1 0, #faf8f2 55%, #f2f5f3 100%);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
}
.hero {
  background:
    radial-gradient(
      circle at 78% 24%,
      rgba(215, 169, 64, 0.18),
      transparent 24%
    ),
    linear-gradient(135deg, #073f34, #08624f 58%, #0c735b);
  color: white;
  padding: 64px 24px 138px;
  position: relative;
  overflow: hidden;
}
.hero:after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  right: -90px;
  top: -150px;
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, 0.035),
    0 0 0 140px rgba(255, 255, 255, 0.025);
}
.hero-inner {
  max-width: 1040px;
  margin: auto;
  position: relative;
  z-index: 1;
}
.eyebrow,
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
  font-weight: 800;
}
.eyebrow {
  color: #b9ded2;
}
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
  margin: 14px 0 18px;
  letter-spacing: -0.035em;
}
.hero h1 span {
  color: #f0c65f;
}
.hero-copy {
  font-size: 18px;
  line-height: 1.65;
  max-width: 720px;
  color: #dcece7;
}
.source-chip {
  display: inline-flex;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 99px;
  color: #e5f3ef;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  margin-top: 10px;
}
main {
  max-width: 1040px;
  margin: -82px auto 70px;
  padding: 0 22px;
  position: relative;
}
.predictor-card,
.results-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 38px;
}
.section-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 30px;
}
.step {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--green);
  color: white;
  font-weight: 800;
  font-size: 19px;
}
.kicker {
  color: var(--green2);
  margin: 0 0 5px;
}
.section-heading h2,
.results-top h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  margin: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.form-grid label:first-child {
  grid-column: span 2;
}
label {
  font-size: 13px;
  font-weight: 750;
  color: #344641;
}
input,
select {
  display: block;
  width: 100%;
  margin-top: 8px;
  height: 52px;
  border: 1px solid #cfdad6;
  border-radius: 12px;
  background: #fbfcfb;
  padding: 0 15px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: 0.2s;
}
input:focus,
select:focus {
  border-color: var(--green2);
  box-shadow: 0 0 0 4px rgba(13, 122, 97, 0.1);
  background: white;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 31px 0 0;
}
legend {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 13px;
}
.seat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.seat-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.seat-box {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px;
  background: #fbfcfb;
  cursor: pointer;
  transition: 0.2s;
  height: 100%;
}
.seat-box:hover {
  transform: translateY(-1px);
  border-color: #94b8ac;
}
.seat-icon {
  font-size: 22px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--cream);
  border-radius: 10px;
}
.seat-box span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.seat-box strong {
  font-size: 14px;
}
.seat-box small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
}
.seat-box i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #b7c8c3;
  color: transparent;
  font-style: normal;
}
.seat-option input:checked + .seat-box {
  border-color: var(--green2);
  background: var(--mint);
}
.seat-option input:checked + .seat-box i {
  background: var(--green2);
  border-color: var(--green2);
  color: white;
}
.predict-button {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(90deg, var(--green), var(--green2));
  color: white;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 25px;
  box-shadow: 0 10px 24px rgba(9, 92, 74, 0.22);
}
.predict-button:hover {
  filter: brightness(1.05);
}
.predict-button span {
  font-size: 22px;
  margin-left: 6px;
}
.validation {
  color: #b42318;
  font-size: 13px;
  margin: 12px 0 -10px;
  min-height: 16px;
}
.results-card {
  margin-top: 24px;
}
.hidden {
  display: none;
}
.results-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
.results-top p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}
.secondary-button {
  border: 1px solid #b8cbc5;
  background: white;
  color: var(--green);
  border-radius: 10px;
  padding: 11px 15px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}
.legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 22px 0;
  font-size: 12px;
  color: var(--muted);
}
.legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.safe-dot {
  background: #21865e;
}
.possible-dot {
  background: #d89e24;
}
.reach-dot {
  background: #c66a3a;
}
.results-list {
  display: grid;
  gap: 12px;
}
.college-card {
  display: grid;
  grid-template-columns: 9px 1fr;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  background: white;
}
.chance-rail {
  background: #21865e;
}
.college-card.possible .chance-rail {
  background: #d89e24;
}
.college-card.reach .chance-rail {
  background: #c66a3a;
}
.college-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 18px;
}
.college-title {
  display: flex;
  gap: 13px;
  align-items: center;
  min-width: 0;
}
.college-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--cream);
  flex: 0 0 auto;
}
.college-title h3 {
  font-size: 15px;
  margin: 0 0 5px;
  line-height: 1.35;
}
.college-title p,
.rank-block p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.rank-block {
  text-align: right;
  flex: 0 0 auto;
}
.rank-block small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 9px;
  color: var(--muted);
}
.rank-block strong {
  font-size: 22px;
  color: var(--green);
  display: block;
  margin: 2px 0;
}
.empty {
  text-align: center;
  padding: 42px 20px;
  background: var(--cream);
  border-radius: 15px;
}
.empty h3 {
  margin: 0 0 8px;
}
.empty p {
  color: var(--muted);
  margin: 0;
}
.disclaimer {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  background: #f7f4eb;
  padding: 15px;
  border-radius: 11px;
  margin: 22px 0 0;
}
footer {
  text-align: center;
  color: #74817d;
  font-size: 12px;
  padding: 25px;
}
@media (max-width: 700px) {
  .hero {
    padding: 45px 20px 120px;
  }
  .hero h1 {
    font-size: 43px;
  }
  .predictor-card,
  .results-card {
    padding: 24px;
    border-radius: 18px;
  }
  .form-grid,
  .seat-grid {
    grid-template-columns: 1fr;
  }
  .form-grid label:first-child {
    grid-column: auto;
  }
  .results-top,
  .college-main {
    align-items: stretch;
    flex-direction: column;
  }
  .rank-block {
    text-align: left;
  }
  .secondary-button {
    width: 100%;
  }
}
@media print {
  body {
    background: white;
  }
  .hero {
    padding: 20px;
    background: white;
    color: #10231f;
  }
  .hero h1 {
    font-size: 30px;
  }
  .hero h1 span {
    color: #095c4a;
  }
  .hero-copy,
  .source-chip,
  .predictor-card,
  .secondary-button,
  footer {
    display: none;
  }
  .results-card {
    box-shadow: none;
    border: 0;
    margin: 0;
    padding: 10px;
  }
  main {
    margin: 0;
    max-width: none;
  }
  .college-card {
    break-inside: avoid;
  }
  .results-list {
    gap: 7px;
  }
}
/* Round-wise result table */
.result-actions {
  display: flex;
  gap: 9px;
}
.pdf-button {
  border: 1px solid var(--green);
  background: var(--green);
  color: white;
  border-radius: 10px;
  padding: 11px 15px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.rank-table {
  width: 100%;
  min-width: 930px;
  border-collapse: collapse;
  font-size: 12px;
}
.rank-table th {
  background: #e9f3ef;
  color: #174d40;
  text-align: left;
  padding: 12px 10px;
  white-space: nowrap;
  border-bottom: 2px solid #bed3cb;
}
.rank-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.rank-table tbody tr:last-child td {
  border-bottom: 0;
}
.rank-table tbody tr:hover {
  background: #fafcfb;
}
.college-cell {
  min-width: 190px;
  line-height: 1.35;
}
.closing-rank {
  font-weight: 800;
  color: var(--green);
  white-space: nowrap;
}
.chance-badge {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 99px;
  font-weight: 800;
  white-space: nowrap;
  background: #e2f3e9;
  color: #176541;
}
.chance-badge.possible {
  background: #fff1ce;
  color: #8b6110;
}
.chance-badge.reach {
  background: #fde8dc;
  color: #99481f;
}
@media (max-width: 700px) {
  .result-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .pdf-button,
  .result-actions .secondary-button {
    width: 100%;
  }
}
@media print {
  @page {
    size: A4 landscape;
    margin: 9mm;
  }
  .hero {
    padding: 8px 10px;
  }
  .hero .eyebrow,
  .hero-copy,
  .source-chip {
    display: none;
  }
  .hero h1 {
    font-size: 23px;
    margin: 0;
  }
  .results-top {
    padding-bottom: 8px;
  }
  .results-top h2 {
    font-size: 21px;
  }
  .result-actions,
  .legend,
  .disclaimer {
    display: none !important;
  }
  .table-wrap {
    overflow: visible;
    border: 1px solid #bbb;
  }
  .rank-table {
    min-width: 0;
    font-size: 8px;
  }
  .rank-table th,
  .rank-table td {
    padding: 5px 4px;
  }
  .college-cell {
    min-width: 130px;
  }
  .chance-badge {
    padding: 2px 4px;
  }
  .rank-table tr {
    break-inside: avoid;
  }
  .pdf-button {
    display: none !important;
  }
}
