/* ============================================================
   UWM Chess Club Registration — Advanced Stylesheet
   Black & Panther gold · chessboard texture · custom controls
   Drop-in replacement: every original class name is preserved.
 
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,700;0,9..144,900;1,9..144,500&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');
 
/* ---------- Design tokens ---------- */
:root {
    --black:      #0c0c0e;
    --panel:      #ffffff;
    --panel-soft: #faf8f1;
    --gold:       #ffbd00;
    --gold-deep:  #d49b00;
    --gold-glow:  rgba(255, 189, 0, 0.35);
    --ink:        #16161a;
    --ink-soft:   #4b4b52;
    --line:       #e3ddcc;
    --ok:         #2f7d12;
    --ok-bg:      #f1ffe6;
    --bad:        #c0140e;
    --bad-bg:     #fff0ef;
    --radius:     14px;
    --shadow:     0 18px 44px -18px rgba(0, 0, 0, 0.55);
    --ease:       cubic-bezier(.22, .61, .36, 1);
}
 
/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, fieldset, legend { margin: 0; }
 
/* ---------- Page ---------- */
body {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    color: var(--ink);
    line-height: 1.55;
    min-height: 100vh;
    padding: 0 0 3rem;
    /* layered atmosphere: gold glow + chessboard weave + dark base */
    background-color: var(--black);
    background-image:
        radial-gradient(1100px 520px at 50% -8%, var(--gold-glow), transparent 70%),
        repeating-conic-gradient(#16161a 0% 25%, #0c0c0e 0% 50%);
    background-size: auto, 56px 56px;
    background-attachment: fixed;
}
 
/* thin checkerboard rule across the very top */
body::before {
    content: "";
    display: block;
    height: 10px;
    background-image:
        linear-gradient(45deg, var(--gold) 25%, transparent 25%),
        linear-gradient(-45deg, var(--gold) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--gold) 75%),
        linear-gradient(-45deg, transparent 75%, var(--gold) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}
 
/* ---------- Container ---------- */
.container {
    width: 95%;
    max-width: 1250px;
    margin: 38px auto;
    padding: 34px;
    background: linear-gradient(180deg, var(--panel), var(--panel-soft));
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    position: relative;

    /* Changed from overflow: hidden so wide tables do not get cut off */
    overflow-x: auto;
    overflow-y: visible;

    animation: rise .7s var(--ease) both;
}

/* gold hairline along the top edge of the card */
.container::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-deep));
}
/* ---------- Header ---------- */
.header {
    text-align: center;
    padding: 34px 18px;
    margin-bottom: 28px;
    background:
        radial-gradient(120% 140% at 50% -40%, rgba(255,255,255,.35), transparent 60%),
        linear-gradient(135deg, var(--gold), var(--gold-deep));
    border-radius: 12px;
    color: var(--black);
    border: 2px solid var(--black);
    position: relative;
    overflow: hidden;
    animation: rise .7s .05s var(--ease) both;
}
/* oversized knight watermark in the header corner */
.header::after {
    content: "\265E";
    position: absolute;
    right: -8px; bottom: -34px;
    font-size: 150px;
    line-height: 1;
    color: rgba(0, 0, 0, 0.12);
    pointer-events: none;
}
.header h1 {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: clamp(28px, 6vw, 44px);
    letter-spacing: -0.01em;
    text-transform: uppercase;
    position: relative;
}
.header p {
    margin-top: 10px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .02em;
    position: relative;
}
 
/* ---------- Headings ---------- */
h1, h2, h3 { color: var(--ink); font-family: 'Fraunces', serif; }
h2 {
    font-size: 1.45rem;
    font-weight: 700;
    padding-bottom: 10px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: .55rem;
    border-bottom: 2px solid var(--line);
}
/* little gold pawn before each section heading */
h2::before {
    content: "\265F";
    color: var(--gold-deep);
    font-size: 1.1em;
}
 
/* ---------- Form ---------- */
form { margin-top: 22px; }
 
fieldset {
    margin-bottom: 24px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,.02);
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
fieldset:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}
legend {
    padding: 2px 12px;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    background: var(--black);
    border-radius: 8px;
}
 
label { font-weight: 600; color: var(--ink); }
 
/* ---------- Text inputs / select / textarea ---------- */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="password"],
input[type="date"],
select,
textarea {
    width: 100%;
    margin-top: 7px;
    margin-bottom: 14px;
    padding: 12px 13px;
    border: 1px solid #c9c3b3;
    border-radius: 9px;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    background: #fff;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
textarea { min-height: 92px; resize: vertical; }
 
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: #fffdf4;
    box-shadow: 0 0 0 3px var(--gold-glow);
}
 
/* custom dropdown arrow */
select {
    appearance: none;
    cursor: pointer;
    padding-right: 2.4rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23d49b00' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}
 
/* ---------- Custom checkboxes & radios ---------- */
input[type="checkbox"],
input[type="radio"] {
    appearance: none;
    width: 19px; height: 19px;
    margin-right: 9px;
    border: 2px solid #b9b2a0;
    background: #fff;
    display: inline-grid;
    place-content: center;
    vertical-align: -4px;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
input[type="checkbox"] { border-radius: 6px; }
input[type="radio"]    { border-radius: 50%; }
 
input[type="checkbox"]::before {
    content: "";
    width: 11px; height: 11px;
    transform: scale(0);
    transition: transform .15s var(--ease);
    box-shadow: inset 12px 12px var(--black);
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
input[type="radio"]::before {
    content: "";
    width: 9px; height: 9px;
    border-radius: 50%;
    transform: scale(0);
    transition: transform .15s var(--ease);
    box-shadow: inset 10px 10px var(--black);
}
input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background: var(--gold);
    border-color: var(--gold-deep);
}
input[type="checkbox"]:checked::before,
input[type="radio"]:checked::before { transform: scale(1); }
 
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
    box-shadow: 0 0 0 3px var(--gold-glow);
}
 
/* grouped option block */
.option-group {
    margin: 8px 0 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 5px solid var(--gold);
    border-radius: 9px;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.option-group:hover {
    transform: translateX(2px);
    box-shadow: -4px 6px 18px -10px rgba(0,0,0,.3);
}
.option-group label { font-weight: 500; cursor: pointer; }
/* highlight an option block when something inside it is selected */
.option-group:has(input:checked) {
    border-left-color: var(--gold-deep);
    background: #fffbf0;
}
 
/* ---------- Buttons ---------- */
input[type="submit"],
button {
    background: var(--black);
    color: var(--gold);
    border: 2px solid var(--gold);
    padding: 13px 24px;
    border-radius: 10px;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
    transition: transform .12s var(--ease), background .2s, color .2s, box-shadow .2s;
}
input[type="submit"]:hover,
button:hover {
    background: var(--gold);
    color: var(--black);
    border-color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -10px var(--gold-glow);
}
input[type="submit"]:active,
button:active { transform: translateY(0); }
button:focus-visible,
input[type="submit"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--gold-glow);
}
 
/* ---------- Links ---------- */
a {
    color: var(--gold-deep);
    font-weight: 600;
    text-decoration: none;
    background-image: linear-gradient(var(--gold), var(--gold));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size .25s var(--ease), color .2s;
}
a:hover { color: var(--black); background-size: 100% 2px; }
 
/* ---------- Nav links box ---------- */
.nav-links {
    margin-top: 22px;
    padding: 15px 18px;
    background: #fff8df;
    border: 1px solid var(--line);
    border-left: 6px solid var(--gold);
    border-radius: 9px;
}
.nav-links a { margin-right: 16px; }
 
/* ---------- Flash messages ---------- */
.success, .error {
    padding: 14px 16px;
    margin: 16px 0;
    border-radius: 9px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .55rem;
    animation: rise .4s var(--ease) both;
}
.success {
    background: var(--ok-bg);
    color: var(--ok);
    border: 1px solid #a9d98c;
    border-left: 6px solid var(--ok);
}
.error {
    background: var(--bad-bg);
    color: var(--bad);
    border: 1px solid #f2a9a5;
    border-left: 6px solid var(--bad);
}
.success::before { content: "\2714"; }   /* check  */
.error::before   { content: "\26A0"; }   /* warning */
 
/* ---------- Member table ---------- */
table {
    width: 100%;
    min-width: 1050px;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 22px;
    background: #fff;
    border: 1px solid var(--black);
    border-radius: 10px;
    overflow: hidden;
}

th {
    background: var(--black);
    color: var(--gold);
    padding: 13px;
    text-align: left;
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: 13px;
}

td {
    padding: 11px 13px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    vertical-align: top;
    word-break: normal;
}

tbody tr {
    transition: background .15s;
}

tr:nth-child(even) {
    background: #fffae8;
}

tr:hover {
    background: #ffefb3;
}
 
/* ---------- Misc ---------- */
small { color: var(--ink-soft); }
 
.footer {
    text-align: center;
    margin-top: 26px;
    padding-top: 16px;
    color: var(--ink-soft);
    border-top: 1px solid var(--line);
    font-size: 13px;
    letter-spacing: .04em;
}
 
/* ---------- Animations ---------- */
@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
 
/* respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
 
/* ---------- Mobile ---------- */
@media screen and (max-width: 700px) {
    .container {
        width: 95%;
        padding: 22px;
        overflow-x: auto;
    }

    .header {
        padding: 26px 14px;
    }

    .header::after {
        font-size: 110px;
        bottom: -26px;
    }

    table {
        min-width: 1050px;
        font-size: 13px;
    }

    th, td {
        padding: 8px;
    }

    input[type="submit"],
    button {
        width: 100%;
    }
}

.panther-logo {
    position: absolute;
    top: 26px;
    right: 30px;
    width: 150px;
    height: auto;
    z-index: 3;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}

/* keep the title text from sliding under the logo */
.container h1,
.container > p { padding-right: 170px; }

/* shrink + reflow on small screens */
@media (max-width: 640px) {
    .panther-logo { width: 96px; top: 18px; right: 18px; }
    .container h1,
    .container > p { padding-right: 108px; }
}

/* ---------- Extra borders for black/yellow table areas ---------- */

/* Adds gold dividers between yellow table headings */
th {
    border-right: 1px solid var(--gold-deep);
    border-bottom: 2px solid var(--gold);
}

/* Removes extra border on the last heading */
th:last-child {
    border-right: none;
}

/* Adds borders around the black left-side label cells in summary tables */
td:first-child {
    border-right: 2px solid var(--gold-deep);
}

/* If your summary table uses black cells on the left, this makes them cleaner */
.summary-table td:first-child,
table td:first-child {
    border-right: 2px solid var(--gold-deep);
}

/* Adds stronger row separation */
td {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid #e8dfc8;
}

/* Optional: stronger full table outline */
table {
    border: 2px solid var(--black);
}