/* Unijaya Interview Booking. Brand core fixed (red/black/white/Poppins); --accent is per vacancy. */
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(fonts/Poppins-Regular.ttf) format("truetype"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(fonts/Poppins-SemiBold.ttf) format("truetype"); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url(fonts/Poppins-Bold.ttf) format("truetype"); }
@font-face { font-family: Poppins; font-weight: 800; font-display: swap; src: url(fonts/Poppins-ExtraBold.ttf) format("truetype"); }

:root {
    --brand: #cc0000;
    --brand-dark: #a30000;
    --ink: #111111;
    --ink-2: #3a3a3a;
    --mute: #6b6b6b;
    --line: #e7e5e2;
    --paper: #ffffff;
    --bg: #f6f5f3;
    --ok: #157f3b;
    --ok-bg: #e7f5ec;
    --err: #b00020;
    --err-bg: #fdecee;
    --info-bg: #eef3fb;
    --accent: #cc0000;
    --accent-ink: #ffffff;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 24px rgba(0,0,0,.05);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Poppins, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); }
a { color: var(--brand); text-underline-offset: 2px; }
code { font-size: .9em; background: #f0eeeb; padding: 1px 5px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.h1 { font-size: clamp(24px, 5vw, 32px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 12px; }
.h3 { font-size: 16px; font-weight: 700; margin: 0; }
.lead { font-size: 17px; color: var(--ink-2); margin: 0 0 12px; }
.muted { color: var(--mute); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt { margin-top: 32px; }
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; }
.eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 6px; color: var(--mute); }

/* ---------- Brand ---------- */
.brand { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: baseline; }
.brand-i { color: var(--brand); }
.brand-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-left: 2px; display: inline-block; }

/* ---------- Public shell ---------- */
.pub-top { max-width: 720px; margin: 0 auto; padding: 18px 16px; display: flex; align-items: center; justify-content: space-between; }
.pub-top-tag { font-size: 12px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .12em; }
.pub-main { max-width: 720px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; gap: 14px; }
.pub-foot { max-width: 720px; margin: 28px auto 32px; padding: 0 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; font-size: 13px; color: var(--mute); }

.hero { background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); padding: 28px 22px 26px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.14); }
.hero::before { content: ""; position: absolute; right: 50px; bottom: -60px; width: 120px; height: 120px; border-radius: 50%; background: rgba(0,0,0,.08); }
.hero .eyebrow { color: inherit; opacity: .8; }
.hero-title { font-size: clamp(28px, 7vw, 42px); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; margin: 0; position: relative; z-index: 1; }
.hero-tag { font-size: 16px; margin: 10px 0 0; opacity: .92; position: relative; z-index: 1; max-width: 46ch; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card-accent { border-top: 5px solid var(--accent); }
.card.narrow { max-width: 400px; margin: 40px auto; width: 100%; }
.prose p { margin: 0 0 10px; color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }

.ticks, .dots { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.ticks li, .dots li { position: relative; padding-left: 32px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); }
.ticks li::after { content: ""; position: absolute; left: 8px; top: 7px; width: 5px; height: 9px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.dots li { padding-left: 20px; }
.dots li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Slot picker ---------- */
.book-form { display: flex; flex-direction: column; gap: 16px; }
.date-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: thin; scroll-snap-type: x mandatory; }
.date-chip { flex: 0 0 auto; scroll-snap-align: start; width: 64px; padding: 8px 0; border: 1.5px solid var(--line); background: var(--paper); border-radius: 12px; font: inherit; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.date-chip-dow, .date-chip-mon { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.date-chip-day { font-size: 20px; font-weight: 700; }
.date-chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.date-chip[aria-selected="true"] span { color: #fff; }
.date-chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.slot-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.slot-date { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 10px; }
.has-strip .slot-date { font-size: 13px; color: var(--mute); font-weight: 600; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.slot span { display: block; text-align: center; padding: 11px 6px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 14px; background: var(--paper); transition: border-color .12s, background .12s; }
.slot input:hover + span { border-color: var(--accent); }
.slot input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.slot input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.picked { margin: 0; padding: 10px 14px; background: var(--bg); border-radius: 10px; font-size: 14px; }

.fields { display: grid; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.summary { margin: 0 0 18px; display: grid; gap: 14px; }
.summary div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; }
.summary dt { color: var(--mute); font-size: 13px; padding-top: 2px; }
.summary dd { margin: 0; }

/* ---------- Forms ---------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span:first-child, .field > label:first-child { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field small { font-size: 12px; color: var(--mute); }
.field input, .field textarea, .field select {
    font: inherit; font-size: 16px; /* 16px stops iOS zoom */ color: var(--ink);
    width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.color-row { display: flex; gap: 8px; }
.color-row input[type="color"] { width: 52px; padding: 4px; flex: 0 0 auto; height: 46px; }
.days { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.days legend { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 0; margin-bottom: 6px; }
.grid-2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
.align-start { align-items: start; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; font-size: 15px; padding: 12px 18px; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2; transition: background .12s, border-color .12s, transform .06s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-block { width: 100%; }
.btn-sm { font-size: 13px; padding: 7px 12px; border-radius: 8px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); font-size: 16px; padding: 14px 20px; }
.btn-accent:hover { filter: brightness(.95); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-danger { background: var(--err); color: #fff; }
.btn-danger-ghost { background: #fff; color: var(--err); border-color: #f2c4cb; }
.btn-danger-ghost:hover { border-color: var(--err); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn-row form { margin: 0; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--mute); cursor: pointer; }
.linkish:hover { color: var(--ink); }

/* ---------- Flash ---------- */
.flash { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin: 0; }
.flash-error { background: var(--err-bg); color: var(--err); }
.flash-success { background: var(--ok-bg); color: var(--ok); }
.flash-info { background: var(--info-bg); color: #1d3f72; }

/* ---------- Admin ---------- */
.adm-top { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }
.adm-top-tag { font-size: 12px; font-weight: 600; color: var(--mute); margin-left: 10px; text-transform: uppercase; letter-spacing: .1em; }
.adm-nav { display: flex; gap: 18px; align-items: center; font-size: 14px; }
.adm-nav form { margin: 0; }
.adm-nav a { color: var(--mute); text-decoration: none; font-weight: 600; }
.adm-nav a.is-active, .adm-nav a:hover { color: var(--ink); }
.adm-main { max-width: 1100px; margin: 0 auto; padding: 24px 16px 60px; display: flex; flex-direction: column; gap: 16px; }
.adm-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; }
.adm-head .h1, .adm-head .h2 { margin: 0; }

.vac-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.vac-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.vac-card-bar { height: 6px; background: var(--accent); }
.vac-card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.vac-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.vac-card-title { font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; }
.vac-card-title:hover { color: var(--brand); }
.vac-card .muted.small { margin: 0; }
.vac-stats { display: flex; gap: 16px; font-size: 14px; color: var(--mute); }
.vac-stats strong { color: var(--ink); font-size: 18px; }

.pill { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-off { background: #efefef; color: var(--mute); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: middle; }
.swatch-lg { width: 16px; height: 16px; border-radius: 4px; margin-right: 10px; vertical-align: 2px; }

.share { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-url { flex: 1 1 260px; min-width: 0; font: inherit; font-size: 14px; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--bg); }
.share summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.share-msg { width: 100%; margin: 10px 0; font: inherit; font-size: 14px; padding: 10px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--bg); resize: vertical; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--mute); font-weight: 600; font-size: 14px; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.is-active { color: var(--ink); border-bottom-color: var(--brand); }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table-group td { background: var(--bg); font-weight: 700; font-size: 13px; padding: 7px 14px; }
.table .is-cancelled td { color: var(--mute); }
.table .is-cancelled td:first-child { text-decoration: line-through; }
.table form { margin: 0; }

.slot-admin-day { margin-bottom: 14px; }
.slot-admin-date { font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.slot-admin-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.slot-admin { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.slot-admin form { margin: 0 0 0 auto; }
.slot-admin-time { font-weight: 600; white-space: nowrap; }
.slot-admin.is-booked { background: var(--ok-bg); border-color: #bfe3cb; }
.slot-admin-who { margin-left: auto; font-weight: 600; color: var(--ok); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-admin.is-past { opacity: .55; }
.x { background: none; border: 0; font-size: 20px; line-height: 1; color: var(--mute); cursor: pointer; padding: 0 4px; }
.x:hover { color: var(--err); }

.danger-zone { border-color: #f2c4cb; }

@media (max-width: 520px) {
    .card { padding: 18px; }
    .hero { padding: 24px 18px; }
    .table th, .table td { padding: 8px 10px; }
}

/* ---------- Find my booking ---------- */
.hero-find { position: relative; z-index: 1; display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 600; color: inherit; opacity: .85; }
.hero-find:hover { opacity: 1; }
.find { display: flex; flex-direction: column; gap: 4px; }
.find .muted.small { margin: 0 0 8px; }
.find-form { display: flex; flex-wrap: wrap; gap: 8px; }
.find-field { flex: 1 1 200px; }
.find-form .btn { flex: 0 0 auto; }
.find-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.find-list a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1.5px solid var(--line); border-left: 5px solid var(--accent); border-radius: 10px; text-decoration: none; color: var(--ink); }
.find-list a:hover { border-color: var(--ink); border-left-color: var(--accent); }
.find-list span { font-size: 14px; color: var(--mute); }

/* ---------- Company video ---------- */
.video-card .muted { margin: -6px 0 12px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-file { display: block; width: 100%; max-height: 70vh; border-radius: 10px; background: #000; }
.video-admin-preview { max-width: 480px; }
