/* =====================================================================
   REGISTER PAGE  (assets/register.css)
   CSS-only redesign – register.php is NOT changed.
   Everything is scoped to .box so it cannot leak into the header/footer.
   Uses the colour variables from site.css.
   ===================================================================== */

/* ---------- card + banner ---------- */
.box {
    --hl: #eaf1ff;
    position: relative;
    max-width: 900px;
    margin: 36px auto 24px;
    padding: 0 40px 40px;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: reg-up .7s cubic-bezier(.22, .8, .26, 1) both;
}

/* banner = gradient + SVG illustration (no HTML needed) */
.box::before {
    content: "Conference Registration";
    display: flex;
    align-items: center;
    min-height: 180px;
    margin: 0 -40px 30px;
    padding: 0 40px;
    max-width: none;
    font-size: clamp(22px, 3.6vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .01em;
    color: #fff;
    background:
        url("./image/register-hero.svg") right 24px center / auto 92% no-repeat,
        radial-gradient(600px 240px at 90% 0%, rgba(127, 166, 245, .3), transparent 60%),
        linear-gradient(135deg, var(--navy) 0%, #14486f 55%, var(--blue) 100%);
}
.box::before { padding-right: 46% }          /* keep the title clear of the illustration */

@keyframes reg-up { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: none } }

.box section { padding: 0 }                  /* cancel the global section padding from site.css */

/* ---------- stepper ---------- */
.steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 0 0 30px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
}
.steps div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 130px;
    text-align: center;
    transition: color .3s;
}
.dot {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: #d3dce8;
    transition: background .3s, box-shadow .3s, transform .3s;
}
.steps .on { color: var(--navy) }
.steps .on .dot {
    background: linear-gradient(135deg, var(--blue), var(--navy));
    box-shadow: 0 0 0 5px rgba(11, 134, 196, .16), 0 6px 14px rgba(11, 134, 196, .35);
    transform: scale(1.05);
}
.steps hr {
    flex: 0 0 80px;
    height: 0;
    margin: 18px 0 0;
    border: 0;
    border-top: 2px dashed #b9c9da;
}

/* ---------- headings ---------- */
.box h2 {
    position: relative;
    margin: 0 0 20px;
    padding-bottom: 12px;
    font-size: 24px;
    line-height: 1.25;
    color: var(--navy);
}
.box h2::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 46px; height: 4px;
    border-radius: 2px;
    background: var(--gold);
}
.box h3 {
    margin: 26px 0 10px;
    font-size: 14.5px;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ---------- form fields ---------- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px }
.box label {
    display: block;
    margin: 16px 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
}
.box label i { color: #d93025; font-style: normal }

.box input:not([type=radio]):not([type=checkbox]),
.box select,
.box textarea {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    background: #f9fbfd;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
    appearance: none;
    -webkit-appearance: none;
}
.box select {
    padding-right: 40px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2312263f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.box textarea { height: 110px; resize: vertical }
.box input:hover, .box select:hover, .box textarea:hover { border-color: #9db8cc }
.box input:not([type=radio]):focus, .box select:focus, .box textarea:focus {
    outline: 0;
    background-color: #fff;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(11, 134, 196, .15);
}

/* ---------- tables ---------- */
.scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.scroll table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 13.5px;
}
.scroll th, .scroll td {
    padding: 13px 10px;
    text-align: center;
    border: 0;
    border-bottom: 1px solid #e3ebf2;
}
.scroll tbody tr:last-child td { border-bottom: 0 }
.scroll thead th {
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: #fff;
    font-weight: 700;
    letter-spacing: .02em;
}
.scroll thead th small { display: block; margin-top: 2px; font-size: 11px; font-weight: 400; opacity: .85 }
.scroll td.type { text-align: left; font-weight: 700; color: var(--navy) }
.scroll td.early { background: var(--hl); color: var(--blue); font-weight: 700 }
.scroll tbody tr { transition: background-color .2s }
.scroll tbody tr:hover td:not(.early) { background: #f4f8fd }
.scroll tbody tr.sel td { background: #dbe8ff }
.scroll tbody tr.sel td.type { color: var(--blue) }

.box input[type=radio], .box input[type=checkbox] {
    width: 18px; height: 18px;
    margin: 0;
    accent-color: var(--blue);
    cursor: pointer;
}
.box td label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; font-size: 13px; cursor: pointer }
#occ { max-width: 260px; margin-top: 4px }
.hint {
    margin: 14px 0 0;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--muted);
    background: #f4f9fd;
    border-left: 4px solid var(--blue);
    border-radius: 0 8px 8px 0;
}

/* ---------- total ---------- */
.total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 26px 0 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--hl), #f4f9fd);
    border: 1px solid #cfe0f5;
    border-radius: 12px;
    font-weight: 700;
    color: var(--navy);
}
.total span:last-child { font-size: 26px; color: var(--blue) }

/* ---------- buttons ---------- */
.nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px }
.box button {
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 30px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, filter .2s, background-color .2s;
}
.box .prev { background: #e8edf3; color: var(--muted) }
.box .prev:hover { background: #dbe3ee; color: var(--navy) }
.box .next {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--navy));
    box-shadow: 0 8px 20px rgba(11, 134, 196, .35);
}
.box .next::after { content: " →" }
.box .next:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(11, 134, 196, .45); filter: brightness(1.06) }
.box .next:active { transform: none }

/* ---------- message ---------- */
#msg { margin-top: 14px; font-weight: 600; color: #a1261b }
#msg:not(:empty) {
    padding: 12px 16px;
    background: #fdecea;
    border: 1px solid #f3b4ae;
    border-radius: 10px;
}
[hidden] { display: none !important }

/* ---------- "registration received" page (same .box) ---------- */
.box > p { color: var(--muted); line-height: 1.7 }
.box > p b { color: var(--navy) }
.box > p a { color: var(--blue); font-weight: 700 }
.box > p a:hover { text-decoration: underline }
.box > table { border-radius: 12px; overflow: hidden }

/* ---------- responsive ---------- */
@media (max-width: 700px) {
    .box { margin: 20px 12px; padding: 0 20px 28px }
    .box::before {
        min-height: 150px;
        margin: 0 -20px 24px;
        padding: 0 20px;
        padding-right: 44%;
        background-position: right 8px center, center, center;
        background-size: auto 78%, auto, auto;
    }
    .steps div { width: 92px; font-size: 11.5px }
    .steps hr { flex-basis: 34px }
    .box h2 { font-size: 21px }
}
@media (max-width: 600px) {
    .grid { grid-template-columns: 1fr }
    .total span:last-child { font-size: 22px }
}

@media (prefers-reduced-motion: reduce) {
    .box { animation: none }
    .box button, .dot, .scroll tbody tr { transition: none }
}