/* Government Eligibility Visa Form Checker. MrTravelPants colours: blue #3b82f6, navy ink, yellow #ffd64d. */
:root { --bg: #f7fafd; --ink: #142a46; --muted: #55657d; --line: #dde5ef; --card: #fff; --blue: #2b6fd6; --blue-bright: #3b82f6;
        --blue-soft: #e8f0fd; --yellow: #ffd64d; --ok: #137a4f; --ok-soft: #e0f5ea; --bad: #b4231b; --bad-soft: #fde8e6;
        --info-soft: #eef3fb; --wait-soft: #fff4d6; --radius: 14px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 Manrope, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
h1, h2, h3 { font-family: Sora, Manrope, -apple-system, "Segoe UI", sans-serif; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 6vw, 46px); margin: 0 0 12px; }
h2 { font-size: 22px; margin: 38px 0 8px; }
h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 6px; font-family: Manrope, sans-serif; }
a { color: var(--blue); text-underline-offset: 3px; }
code { font: 600 .92em ui-monospace, Menlo, Consolas, monospace; background: var(--blue-soft); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 9; }
.lede { color: var(--muted); font-size: 17px; margin: 0 0 18px; }
.byline { font-weight: 700; color: var(--blue); margin: -4px 0 12px; }
.small { font-size: 14px; color: var(--muted); }

/* header */
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 10px; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-family: Sora, sans-serif; font-size: 16px; }
.brand { min-width: 0; }
.brand small { color: var(--muted); font-size: 13px; }
.plan { background: var(--yellow); color: var(--ink); font-weight: 700; text-decoration: none; padding: 9px 14px; border-radius: 10px; font-size: 15px; white-space: nowrap; }
.plan:hover { background: #ffcd1f; }

/* hero and the checker */
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); padding: 38px 0 18px; }
.checker { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: 0 1px 2px rgba(20,42,70,.04), 0 10px 26px -14px rgba(20,42,70,.18); }
.checker label { display: block; font-weight: 700; margin: 0 0 8px; }
.checker .row { display: flex; gap: 8px; }
.checker input { flex: 1; min-width: 0; font: inherit; font-size: 17px; padding: 12px 14px; border: 1.5px solid #c8d4e3; border-radius: 10px; background: #fff; color: var(--ink); }
.checker input:focus { outline: 3px solid rgba(59,130,246,.3); border-color: var(--blue-bright); }
.checker button, .button { display: inline-block; background: var(--blue); color: #fff; border: 0; border-radius: 10px; padding: 12px 18px; font: 700 16px Manrope, sans-serif; cursor: pointer; text-decoration: none; text-align: center; }
.checker button:hover, .button:hover { background: #2160c0; }
.result:empty { display: none; }
.result { margin-top: 14px; border-radius: 12px; padding: 14px 16px; font-size: 16px; }
.result h2 { margin: 0 0 6px; font-size: 20px; }
.result p { margin: 0 0 8px; }
.result p:last-child { margin-bottom: 0; }
.result ul { margin: 6px 0 8px; padding-left: 20px; }
.result.ok { background: var(--ok-soft); border-left: 5px solid var(--ok); }
.result.ok h2 { color: var(--ok); }
.result.bad { background: var(--bad-soft); border-left: 5px solid var(--bad); }
.result.bad h2 { color: var(--bad); }
.result.info { background: var(--info-soft); border-left: 5px solid var(--blue); }
.result .real { display: inline-block; margin: 4px 0 6px; }
.result .host { font: 700 15px ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; }

/* the list of forms */
.why { background: var(--wait-soft); border-left: 5px solid var(--yellow); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 26px 0 0; }
.why p { margin: 0; }
.forms { list-style: none; margin: 0 0 8px; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.forms li + li { border-top: 1px solid #edf1f6; }
.forms a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.forms a:hover { background: #f4f8fe; }
.forms .flag { font-size: 24px; line-height: 1; }
.forms .what { flex: 1; min-width: 0; }
.forms .what b { display: block; }
.forms .cost { text-align: right; }
.badge { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; vertical-align: 1px; }
.badge.free { background: var(--ok-soft); color: var(--ok); }
.badge.paid { background: var(--blue-soft); color: #1f4f9a; white-space: normal; }
.badge.wait { background: var(--wait-soft); color: #7a5700; }
.badge.info { background: var(--info-soft); color: #1f4f9a; }
.tips { padding-left: 20px; }
.tips li { margin: 0 0 10px; }

/* MrTravelPants box */
.mtp { display: flex; gap: 18px; align-items: flex-start; background: var(--blue-bright); color: #fff; border-radius: var(--radius); padding: 22px; margin: 40px 0 10px; }
.mtp img { border-radius: 16px; flex: none; }
.mtp h2 { margin: 0 0 6px; color: #fff; }
.mtp p { margin: 0 0 14px; }
.mtp .button { background: var(--yellow); color: var(--ink); }
.mtp .button:hover { background: #ffcd1f; }
.mtp.small { padding: 16px 18px; margin: 30px 0 10px; }
.mtp.small p { margin-bottom: 10px; }

/* one form's page */
.formpage { padding-top: 22px; padding-bottom: 20px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.crumbs a { color: var(--muted); }
.formpage h1 { font-size: clamp(26px, 5vw, 38px); }
.button.big { display: block; font-size: 18px; padding: 16px 18px; margin: 18px 0; overflow-wrap: anywhere; }
.facts { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts th { text-align: left; vertical-align: top; width: 34%; padding: 12px 14px; font-size: 14px; color: var(--muted); font-weight: 700; border-bottom: 1px solid #edf1f6; }
.facts td { padding: 12px 14px; border-bottom: 1px solid #edf1f6; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts .official { font-weight: 700; overflow-wrap: anywhere; }
.note { background: var(--info-soft); border-radius: 12px; padding: 12px 16px; margin: 16px 0 0; }
.flagnote { border-radius: 12px; padding: 12px 16px; margin: 0 0 6px; }
.flagnote.wait { background: var(--wait-soft); }
.flagnote.info { background: var(--info-soft); }
.source { font-size: 14px; color: var(--muted); margin-top: 24px; }
.remind { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px 18px; margin: 30px 0 0; }
.remind h2 { margin-top: 16px; }
.remind label { display: block; font-weight: 700; margin: 10px 0 6px; }
.remind input { font: inherit; font-size: 17px; padding: 10px 12px; border: 1.5px solid #c8d4e3; border-radius: 10px; }
.remind-out:empty { display: none; }
.remind-out { margin-top: 14px; }
.remind-out p { margin: 0 0 10px; }
.remind-out .button { margin: 0 8px 8px 0; }
.remind-out .button.alt { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); }

/* footer */
.foot { border-top: 1px solid var(--line); background: #fff; margin-top: 40px; padding: 24px 0 36px; font-size: 14px; color: var(--muted); }
.foot p { margin: 0 0 10px; max-width: 760px; }

@media (max-width: 560px) {
  .checker .row { flex-direction: column; }
  .checker button { width: 100%; }
  .brand b { font-size: 14px; }
  .brand small { font-size: 11.5px; }
  .brand img { width: 34px; height: 34px; }
  .plan { padding: 8px 10px; font-size: 14px; }
  .mtp { flex-direction: column; }
  .facts th, .facts td { display: block; width: 100%; }
  .facts th { border-bottom: 0; padding-bottom: 0; }
}
