/* ==========================================================================
   PASTI FUN RUN KUALA LANGAT 2026
   Hand-written stylesheet - no framework.
   Palette lifted from the event jersey.
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */
:root {
    --navy:        #16334f;
    --navy-deep:   #0d2033;
    --navy-soft:   #234c72;
    --blue:        #2b9cd8;
    --blue-deep:   #1c7cbf;
    --yellow:      #fdc70c;
    --amber:       #f9a11b;
    --orange:      #f26522;
    --red:         #e63b26;
    --pink:        #ec407a;

    --ink:         #14202b;
    --ink-soft:    #4a5b6a;
    --ink-faint:   #7c8b99;
    --line:        #dfe5ec;
    --line-soft:   #eef2f6;
    --paper:       #ffffff;
    --mist:        #f4f6f9;

    --ok:          #1a8f5a;
    --ok-bg:       #e6f6ee;
    --warn:        #b0700a;
    --warn-bg:     #fdf3e0;
    --bad:         #c92a2a;
    --bad-bg:      #fdecec;

    --shadow-sm:   0 1px 2px rgba(13, 32, 51, .06), 0 2px 6px rgba(13, 32, 51, .05);
    --shadow-md:   0 4px 12px rgba(13, 32, 51, .08), 0 12px 28px rgba(13, 32, 51, .07);
    --shadow-lg:   0 18px 50px rgba(13, 32, 51, .16);

    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;

    --display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
    --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --wrap: 1140px;
}

/* ---------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    margin: 0;
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-deep); }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.05; }

p { margin: 0 0 1em; }

/* ------------------------------------------------------------ utilities -- */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: 20px;
}

.section { padding-block: 72px; }
.section--mist { background: var(--mist); }
.section--tight { padding-block: 48px; }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* The recurring "slash" display heading, echoing the jersey lettering. */
.display {
    font-family: var(--display);
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: .01em;
    line-height: .92;
    color: var(--navy);
}

.eyebrow {
    font-family: var(--display);
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 15px;
    color: var(--orange);
    margin-bottom: 10px;
}

.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 5vw, 46px); }
.section-head p { color: var(--ink-soft); margin-bottom: 0; }

/* A short angled rule in the jersey's colour run. */
.rule {
    width: 76px; height: 6px; margin: 0 auto 18px;
    background: linear-gradient(90deg, var(--yellow), var(--orange) 55%, var(--red));
    transform: skewX(-20deg);
    border-radius: 2px;
}
.rule--left { margin-inline: 0; }

/* --------------------------------------------------------------- button -- */
.btn {
    --btn-bg: var(--orange);
    --btn-fg: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 30px;
    border: 0;
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--display);
    font-size: 19px;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: .06em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
    box-shadow: 0 6px 18px rgba(242, 101, 34, .32);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.btn--navy   { --btn-bg: var(--navy); box-shadow: 0 6px 18px rgba(22, 51, 79, .3); }
.btn--blue   { --btn-bg: var(--blue-deep); box-shadow: 0 6px 18px rgba(28, 124, 191, .3); }
.btn--ghost  { --btn-bg: transparent; --btn-fg: #fff; box-shadow: none; border: 2px solid rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy); box-shadow: none; border: 2px solid var(--line); }
.btn--outline:hover { background: var(--mist); }
.btn--wa { --btn-bg: #25d366; --btn-fg: #06301c; box-shadow: 0 6px 18px rgba(37, 211, 102, .34); }
.btn--lg { padding: 17px 40px; font-size: 22px; }
.btn--sm { padding: 9px 18px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* --------------------------------------------------------------- header -- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header__bar {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 68px;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; flex: none; }
.brand__mark {
    width: 40px; height: 40px; flex: none;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--navy), var(--blue-deep));
    display: grid; place-items: center;
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    font-size: 19px;
    color: var(--yellow);
    letter-spacing: -.02em;
}
.brand__text { display: grid; line-height: 1; }
.brand__text b {
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    font-size: 21px;
    text-transform: uppercase;
    color: var(--navy);
    letter-spacing: .01em;
}
.brand__text span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--orange);
    margin-top: 3px;
}

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav > * { flex: none; }
.site-nav a:not(.btn) {
    font-weight: 600;
    font-size: 15px;
    color: var(--navy);
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--orange); }

.nav-toggle {
    display: none;
    width: 42px; height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    padding: 0;
}
.nav-toggle span {
    display: block; width: 18px; height: 2px; margin: 3px auto;
    background: var(--navy); border-radius: 2px;
}

/* ----------------------------------------------------------------- hero -- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--navy-deep);
    color: #fff;
    padding-block: 72px 84px;
}
/* Halftone dots + angled colour slashes, drawn purely in CSS. */
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .16) 1.6px, transparent 1.7px);
    background-size: 16px 16px;
    -webkit-mask-image: linear-gradient(115deg, #000 0 34%, transparent 62%);
    mask-image: linear-gradient(115deg, #000 0 34%, transparent 62%);
    opacity: .8;
}
.hero::after {
    content: '';
    position: absolute;
    top: -14%; right: -18%;
    width: 62%; height: 132%;
    background:
        linear-gradient(103deg, transparent 0 38%, var(--yellow) 38% 45%, transparent 45%),
        linear-gradient(103deg, transparent 0 50%, var(--orange) 50% 59%, transparent 59%),
        linear-gradient(103deg, transparent 0 63%, var(--red) 63% 68%, transparent 68%),
        linear-gradient(103deg, transparent 0 72%, var(--blue) 72% 75%, transparent 75%);
    opacity: .95;
    pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }

.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
}

.hero__tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.hero__tag i {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 0 4px rgba(253, 199, 12, .22);
}

.hero h1 {
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(46px, 8.4vw, 92px);
    line-height: .86;
    letter-spacing: -.01em;
    margin-bottom: 18px;
    color: #fff;
    text-shadow: 0 6px 26px rgba(0, 0, 0, .35);
}
.hero h1 .tint-blue { color: var(--blue); }
.hero h1 small {
    display: block;
    font-size: .33em;
    letter-spacing: .1em;
    color: var(--yellow);
    margin-top: 12px;
}

.hero__lede {
    font-size: 18px;
    color: rgba(255, 255, 255, .82);
    max-width: 46ch;
    margin-bottom: 26px;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 0;
    list-style: none;
}
.hero__meta li {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 16px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}
.hero__meta b { color: var(--yellow); font-weight: 700; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__art { position: relative; }
.hero__art img {
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    transform: rotate(-1.6deg);
}
/* Poster rasmi sebagai visual utama — potret, jadi hadkan lebarnya. */
.hero__art--poster { display: flex; justify-content: center; }
.hero__art--poster a {
    display: block;
    max-width: 430px;
    width: 100%;
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform .18s ease;
}
.hero__art--poster a:hover { transform: translateY(-3px) scale(1.01); }
.hero__art--poster a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.hero__art--poster img { transform: none; border-radius: 0; box-shadow: none; width: 100%; height: auto; }

.hero__tag--off { background: rgba(255,255,255,.08); color: rgba(255,255,255,.72); }
.hero__tag--off i { background: var(--ink-faint); box-shadow: 0 0 0 4px rgba(124,139,153,.18); }

.hero__window {
    margin: 20px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, .68);
}
.hero__window b { color: var(--yellow); font-weight: 700; }

.hero__badge {
    position: absolute;
    left: -14px; bottom: -18px;
    background: var(--yellow);
    color: var(--navy);
    border-radius: 16px;
    padding: 12px 20px;
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    box-shadow: var(--shadow-md);
    transform: rotate(-3deg);
}
.hero__badge b { display: block; font-size: 30px; }
.hero__badge span { font-size: 13px; letter-spacing: .1em; }

/* The "KITA ♥ KELUARGA" strip from the jersey back. */
.ribbon {
    background: linear-gradient(90deg, var(--yellow), var(--amber) 40%, var(--orange) 72%, var(--red));
    color: var(--navy-deep);
    padding: 14px 0;
    overflow: hidden;
}
.ribbon__inner {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(18px, 3vw, 28px);
    letter-spacing: .04em;
}
.ribbon__heart { color: var(--pink); font-style: normal; font-size: 1.05em; }

/* -------------------------------------------------------------- packages -- */
.pkg-grid {
    display: grid;
    /* auto-fit supaya bilangan pakej boleh berubah tanpa meninggalkan
       kad yatim pada baris sendiri. */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.pkg {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 30px 26px 26px;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
    overflow: hidden;
}
.pkg:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.pkg__code {
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.pkg__name {
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 30px;
    line-height: 1.1;
    /* Nama dua baris tidak boleh menolak harga ke bawah dan memecahkan
       jajaran antara kad. */
    min-height: 2.2em;
    color: var(--navy);
    margin: 2px 0 14px;
}
.pkg__price {
    display: flex; align-items: baseline; gap: 5px;
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 4px;
}
.pkg__price sup { font-size: 20px; font-weight: 700; }
.pkg__price b { font-size: 54px; line-height: 1; }
.pkg__note {
    font-size: 13px;
    line-height: 1.5;
    min-height: 3em;          /* jajarkan permulaan senarai antara kad */
    color: var(--ink-faint);
    margin-bottom: 20px;
}

.pkg__list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 11px; }
.pkg__list li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 15px;
    color: var(--ink-soft);
}
.pkg__list li::before {
    content: '';
    flex: none;
    width: 19px; height: 19px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231a8f5a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.pkg .btn { margin-top: auto; }

/* ---------------------------------------------------------------- jersey -- */
.jersey-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.jersey-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.jersey-card figcaption {
    padding: 16px 22px 20px;
    border-top: 1px solid var(--line-soft);
}
.jersey-card h3 {
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 22px;
    color: var(--navy);
    margin-bottom: 3px;
}
.jersey-card p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ------------------------------------------------------------ size chart -- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 26px; }
.tab {
    padding: 10px 20px;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 999px;
    font-family: var(--body);
    font-weight: 600;
    font-size: 15px;
    color: var(--ink-soft);
    cursor: pointer;
    transition: all .15s ease;
}
.tab:hover { border-color: var(--blue); color: var(--navy); }
.tab[aria-selected="true"] {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
.tabpanel { max-width: 620px; margin-inline: auto; }
.tabpanel img { border-radius: var(--r-md); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

/* ----------------------------------------------------------------- steps -- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 26px 22px 22px;
}
.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute; top: -16px; left: 22px;
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--navy);
    color: var(--yellow);
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    font-size: 18px;
}
.step h3 { font-size: 18px; margin: 8px 0 6px; color: var(--navy); }
.step p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* Kad "sertai kumpulan" pada halaman status. */
.wa-join {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    border-color: #bfe6d0;
    background: linear-gradient(135deg, #f4fcf7, #e9f8f0);
}
.wa-join__icon {
    width: 54px; height: 54px; flex: none;
    display: grid; place-items: center;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
}
.wa-join__body h2 {
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 20px;
    color: var(--navy);
    margin: 0 0 5px;
}
.wa-join__body p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.wa-join__body b { color: var(--navy); }

@media (max-width: 720px) {
    .wa-join { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 14px; }
    .wa-join .btn { width: 100%; }
}

/* -------------------------------------------------------------- whatsapp -- */
.wa {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 26px;
    align-items: center;
    padding: 32px 34px;
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, #f1fbf5, #e6f7ee);
    border: 1px solid #bfe6d0;
}
.wa__icon {
    width: 66px; height: 66px;
    flex: none;
    display: grid; place-items: center;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 6px 18px rgba(37, 211, 102, .3);
}
.wa__body h2 { color: var(--navy); margin-bottom: 8px; }
.wa__body p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.wa__body b { color: var(--navy); }
.wa__cta { flex: none; }

@media (max-width: 860px) {
    .wa { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 18px; padding: 28px 22px; }
    .wa__cta { width: 100%; }
    .wa__cta .btn { width: 100%; }
}

/* ------------------------------------------------------------------- faq -- */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 0 20px;
}
.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 17px 30px 17px 0;
    font-weight: 600;
    color: var(--navy);
    position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    position: absolute; right: 0; top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--orange);
    font-weight: 400;
}
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding-bottom: 18px; margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------------------------------------------------------------- footer -- */
.site-footer {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, .68);
    padding-block: 48px 28px;
    font-size: 14px;
}
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 32px; }
.site-footer h4 {
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 17px;
    color: #fff;
    margin-bottom: 14px;
}
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer__base {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
}

/* ================================================================= FORMS == */
.page-head {
    background: var(--navy);
    color: #fff;
    padding-block: 46px;
    position: relative;
    overflow: hidden;
}
.page-head::after {
    content: '';
    position: absolute; top: -30%; right: -8%;
    width: 44%; height: 160%;
    background:
        linear-gradient(103deg, transparent 0 55%, var(--yellow) 55% 62%, transparent 62%),
        linear-gradient(103deg, transparent 0 68%, var(--orange) 68% 74%, transparent 74%);
    opacity: .9;
}
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 {
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(32px, 5.6vw, 52px);
    color: #fff;
    margin-bottom: 6px;
}
.page-head p { color: rgba(255, 255, 255, .8); margin: 0; max-width: 60ch; }

.crumb { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.crumb a { color: rgba(255,255,255,.85); text-decoration: none; }

.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: 28px;
    margin-bottom: 22px;
}
.card__head { margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.card__head h2 {
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 24px;
    color: var(--navy);
    margin: 0 0 4px;
}
.card__head p { font-size: 14px; color: var(--ink-soft); margin: 0; }

.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field > label, .field-label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 7px;
    letter-spacing: .01em;
}
.req { color: var(--red); }
.hint { display: block; font-size: 12.5px; color: var(--ink-faint); font-weight: 400; margin-top: 5px; }

.input, .select, .textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--paper);
    font-family: var(--body);
    font-size: 15.5px;
    color: var(--ink);
    transition: border-color .14s ease, box-shadow .14s ease;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(43, 156, 216, .16);
}
.input::placeholder { color: #aab6c2; }
.textarea { resize: vertical; min-height: 84px; }
.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%234a5b6a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.5l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 15px;
    padding-right: 38px;
}
.select:disabled { background-color: var(--mist); color: var(--ink-faint); cursor: not-allowed; }

.input.is-bad, .select.is-bad, .textarea.is-bad { border-color: var(--red); }
.err { display: block; font-size: 12.5px; color: var(--bad); margin-top: 5px; font-weight: 600; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }

/* Segmented radio cards (Umum / Sekolah, package pick, etc.) */
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice__box {
    display: block;
    padding: 15px 18px;
    border: 2px solid var(--line);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all .15s ease;
    height: 100%;
}
.choice__box b { display: block; font-size: 15.5px; color: var(--navy); }
.choice__box span { display: block; font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }
.choice input:checked + .choice__box {
    border-color: var(--orange);
    background: #fff8f3;
    box-shadow: 0 0 0 3px rgba(242, 101, 34, .12);
}
.choice input:focus-visible + .choice__box { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Participant blocks */
.peserta {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 22px;
    margin-bottom: 16px;
    background: var(--paper);
    position: relative;
}
.peserta__bar {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--line);
}
.peserta__no {
    width: 30px; height: 30px; flex: none;
    display: grid; place-items: center;
    border-radius: 8px;
    background: var(--navy);
    color: var(--yellow);
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    font-size: 16px;
}
.peserta__title {
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 19px;
    color: var(--navy);
    margin-right: auto;
}
.peserta__drop {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--bad);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--body);
    cursor: pointer;
}
.peserta__drop:hover { background: var(--bad-bg); border-color: #f3c2c2; }

.add-row { display: flex; justify-content: center; margin-top: 4px; }
.add-btn {
    border: 2px dashed var(--line);
    background: var(--mist);
    color: var(--navy);
    border-radius: var(--r-md);
    padding: 15px 26px;
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 17px;
    letter-spacing: .04em;
    cursor: pointer;
    width: 100%;
    transition: all .15s ease;
}
.add-btn:hover { border-color: var(--orange); color: var(--orange); background: #fff8f3; }

/* Maklumat perhubungan — sebahagian daripada kad peserta pertama. */
.contact-block {
    margin-top: 4px;
    padding: 16px 18px 4px;
    border-radius: var(--r-md);
    background: var(--mist);
    border: 1px dashed var(--line);
}
.contact-block__title {
    margin: 0 0 12px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy);
}
.contact-block__title span {
    display: block;
    font-size: 12.5px;
    font-weight: 400;
    color: var(--ink-faint);
    margin-top: 2px;
}

/* Sticky payment summary */
.summary { position: sticky; top: 88px; }
.summary__box {
    background: var(--navy);
    color: #fff;
    border-radius: var(--r-lg);
    padding: 26px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
}
.summary__box h3 {
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 21px;
    color: #fff;
    margin-bottom: 16px;
}
.summary__lines { display: grid; gap: 9px; margin-bottom: 14px; font-size: 14px; }
.summary__line { display: flex; justify-content: space-between; gap: 12px; color: rgba(255,255,255,.82); }
.summary__line span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary__empty { color: rgba(255,255,255,.55); font-size: 14px; font-style: italic; }
.summary__sep { height: 1px; background: rgba(255,255,255,.16); margin: 14px 0; }
.summary__total {
    display: flex; justify-content: space-between; align-items: baseline;
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
}
.summary__total span:first-child { font-size: 17px; color: var(--yellow); }
.summary__total span:last-child { font-size: 34px; color: #fff; font-variant-numeric: tabular-nums; }
.summary__fee { font-size: 12.5px; color: rgba(255,255,255,.55); margin-top: 6px; }

.summary__aside {
    margin-top: 16px;
    background: var(--mist);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 16px 18px;
    font-size: 13px;
    color: var(--ink-soft);
}
.summary__aside b { color: var(--navy); display: block; margin-bottom: 5px; font-size: 13.5px; }

/* Checkbox */
.check { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.check input { width: 19px; height: 19px; margin: 2px 0 0; flex: none; accent-color: var(--orange); cursor: pointer; }

/* ----------------------------------------------------- penyelaras zon -- */
.zones {
    list-style: none;
    margin: 0 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.zone__area {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.zone__link {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    text-decoration: none;
}
.zone__name { font-weight: 600; }
.zone__phone { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Pada latar cerah — halaman semak, status dan tutup. */
.zones--light {
    max-width: 420px;
    margin-inline: auto;
    text-align: left;
}
.zones--light .zone {
    background: var(--mist);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 10px 14px;
}
.zones--light .zone__area { color: var(--ink-faint); }
.zones--light .zone__name { color: var(--navy); }
.zones--light .zone__phone { color: var(--blue-deep); }
.zones--light .zone__link:hover .zone__phone { text-decoration: underline; }

/* Dalam footer gelap. */
.zones--dark .zone__area { color: var(--yellow); }
.zones--dark .zone__name { color: #fff; }
.zones--dark .zone__phone { color: rgba(255, 255, 255, .72); }
.zones--dark .zone__link:hover .zone__name,
.zones--dark .zone__link:hover .zone__phone { color: var(--yellow); }

/* Dalam kotak amaran pada halaman status. */
.alert .zones { margin-top: 12px; }
.alert .zones--light .zone { background: rgba(255, 255, 255, .6); }

@media print {
    .zones { display: none; }
}

/* --------------------------------------------------------------- alerts -- */
.alert {
    border-radius: var(--r-md);
    padding: 15px 18px;
    margin-bottom: 20px;
    font-size: 14.5px;
    border: 1px solid transparent;
}
.alert b { display: block; margin-bottom: 3px; }
.alert--bad  { background: var(--bad-bg);  border-color: #f5cfcf; color: #8c1f1f; }
.alert--ok   { background: var(--ok-bg);   border-color: #bfe6d3; color: #10603c; }
.alert--warn { background: var(--warn-bg); border-color: #f0dcb4; color: #7d4f06; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }

/* --------------------------------------------------------------- status -- */
.receipt { max-width: 880px; margin-inline: auto; }
.receipt__hero { text-align: center; padding: 34px 24px 30px; }
.receipt__icon {
    width: 76px; height: 76px; margin: 0 auto 18px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 38px;
}
.receipt__icon--ok   { background: var(--ok-bg); color: var(--ok); }
.receipt__icon--wait { background: var(--warn-bg); color: var(--warn); }
.receipt__icon--bad  { background: var(--bad-bg); color: var(--bad); }
.receipt__hero h1 {
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 34px;
    color: var(--navy);
}
.receipt__ref {
    display: inline-block;
    margin-top: 10px;
    padding: 9px 20px;
    background: var(--mist);
    border: 1px dashed var(--line);
    border-radius: 10px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: .1em;
    color: var(--navy);
}

.dl { display: grid; grid-template-columns: 160px 1fr; gap: 11px 18px; font-size: 15px; }
.dl dt { color: var(--ink-faint); font-size: 13.5px; font-weight: 600; }
.dl dd { margin: 0; color: var(--ink); font-weight: 500; }

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.badge--ok   { background: var(--ok-bg);   color: var(--ok); }
.badge--wait { background: var(--warn-bg); color: var(--warn); }
.badge--bad  { background: var(--bad-bg);  color: var(--bad); }

/* ---------------------------------------------------------------- table -- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
table.data--tight { min-width: 540px; }
table.data th, table.data td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); }
table.data thead th {
    background: var(--mist);
    font-size: 11.5px;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ink-soft);
    font-weight: 700;
    white-space: nowrap;
    position: sticky; top: 0;
}
table.data tbody tr:hover { background: #fafcfe; }
table.data tbody tr:last-child td { border-bottom: 0; }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- stats -- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue);
    border-radius: var(--r-md);
    padding: 18px 20px;
}
.stat--ok { border-left-color: var(--ok); }
.stat--warn { border-left-color: var(--amber); }
.stat--orange { border-left-color: var(--orange); }
.stat b {
    display: block;
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    font-size: 34px;
    line-height: 1;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}
.stat span { font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); font-weight: 700; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
}
.chip b { color: var(--navy); }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.toolbar .input, .toolbar .select { width: auto; min-width: 180px; }
.toolbar__spacer { margin-left: auto; }

.login-box { max-width: 400px; margin: 70px auto; }

/* ----------------------------------------------------------- responsive -- */
@media (max-width: 980px) {
    .hero__grid { grid-template-columns: 1fr; gap: 36px; }
    .hero__art { max-width: 460px; }
    .form-layout { grid-template-columns: 1fr; }
    .summary { position: static; }
    .pkg-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
    .steps { grid-template-columns: 1fr 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 720px) {
    .section { padding-block: 52px; }

    /* Butang besar dikecilkan pada telefon supaya tidak terlalu menonjol. */
    .btn--lg { padding: 10px 20px; font-size: 18px; }

    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        top: 68px; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 8px 20px 16px;
        box-shadow: var(--shadow-md);
    }
    .site-nav.is-open { display: flex; }
    .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
    .site-nav .btn { margin-top: 12px; justify-content: center; }
    .site-header__bar { position: relative; }
    .jersey-grid { grid-template-columns: 1fr; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .choice-row { grid-template-columns: 1fr; }
    .dl { grid-template-columns: 1fr; gap: 2px 0; }
    .dl dd { margin-bottom: 12px; }
    .card { padding: 22px 18px; }
    .peserta { padding: 18px 15px; }
}

@media (max-width: 520px) {
    .steps { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .hero__badge { left: 8px; bottom: -12px; padding: 10px 15px; }
    .hero__badge b { font-size: 23px; }
}

/* ----------------------------------------------------------------- print -- */
@media print {
    .site-header, .site-footer, .no-print, .ribbon { display: none !important; }
    body { background: #fff; }
    .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
    .page-head { background: #fff; color: #000; padding-block: 20px; }
    .page-head h1 { color: #000; }
    .page-head::after { display: none; }
    .table-scroll { overflow: visible; border: 0; }
    table.data { min-width: 0; font-size: 12px; }
}

/* ------------------------------------------------------------- pagination -- */
.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pager__link {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: #fff;
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.pager__link:hover { border-color: var(--blue); background: var(--mist); }
.pager__link.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager__link.is-off { color: var(--ink-faint); background: var(--mist); cursor: not-allowed; }
.pager__gap { padding: 8px 4px; color: var(--ink-faint); }
.pager__count { margin: 10px 0 0; font-size: 13px; color: var(--ink-faint); }
