
:root {
    --orange: #ff3300;
    --orange-dark: #ce2900;
    --black: #090909;
    --ink: #171717;
    --muted: #676767;
    --line: #d8d8d8;
    --soft: #f5f5f5;
    --white: #fff;
    --success: #08783e;
    --danger: #b42318;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 51, 0, .28), transparent 28rem),
        linear-gradient(145deg, #202020, #080808 60%);
    color: var(--ink);
    font: 16px/1.5 Arial, Helvetica, sans-serif;
}

/* At least a screen tall, so on a tall phone the background does not start over below a short page (the login). */
@media screen {
    body { min-height: 100vh; }
}

/* Main page */
.page {
    width: min(100% - 32px, 980px);
    margin: auto;
    padding: 42px 0;
}

/* Header / Banner */
.brand {
    position: relative;
    overflow: hidden;
    padding: 32px clamp(24px, 5vw, 52px);
    color: #fff;
    background: var(--orange);
    border-radius: 18px 18px 0 0;
}

.brand::before,
.brand::after {
    content: none !important;
    display: none !important;
}

/* JBL logo */
.logo {
    display: inline-grid;
    place-items: center;
    min-width: 88px;
    min-height: 52px;
    padding: 8px 15px;
    background: transparent;
    color: var(--orange);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -2px;
}

.logo img {
    display: block;
    width: auto;
    height: 52px;
    max-width: 100%;
    object-fit: contain;
}

/* Header text */
.brand h1 {
    margin: 18px 0 5px;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1;
    text-transform: uppercase;
}

.brand p {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0;
}

/* Registration form card */
.card {
    padding: clamp(24px, 5vw, 52px);
    background: #fff;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
}

/* Notices */
.notice {
    margin: 0 0 24px;
    padding: 13px 15px;
    border-left: 5px solid var(--orange);
    background: #fff3ef;
}

.notice.success {
    border-color: var(--success);
    background: #edfff4;
    color: #075c30;
}

.notice.error {
    border-color: var(--danger);
    background: #fff0f0;
    color: #8f1c12;
}

/* Progress indicator */
.progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 34px;
}

.progress span {
    overflow-wrap: anywhere;
    padding-bottom: 8px;
    border-bottom: 3px solid #ddd;
    color: #777;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.progress span.active {
    border-color: var(--orange);
    color: var(--orange);
}

/* Form steps and conditional fields */
.step[hidden],
.conditional[hidden],
.field[hidden] {
    display: none !important;
}

.kicker {
    margin: 0 0 6px;
    color: var(--orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h2 {
    margin: 0 0 26px;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.05;
}

/* Form grids */
.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.full {
    grid-column: 1 / -1;
}

/* Form fields */
.field {
    display: grid;
    gap: 7px;
    align-content: start;
}

.field label {
    font-size: 14px;
    font-weight: 800;
}

.req {
    color: var(--orange);
}

input,
select {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #bbb;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

input:focus,
select:focus {
    outline: 3px solid rgba(255, 51, 0, .2);
    border-color: var(--orange);
}

.hint {
    color: var(--muted);
    font-size: 12px;
}

/* Form buttons */
.actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid var(--orange);
    border-radius: 8px;
    background: var(--orange);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.button:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
}

.button.secondary {
    background: #fff;
    color: var(--orange);
}

.button.secondary:hover {
    background: #fff3ef;
}

.button:disabled {
    cursor: wait;
    opacity: .65;
    transform: none;
}

/* Conditional form sections */
.conditional {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--soft);
}

/* File upload */
.file {
    padding: 10px;
    border: 1px dashed #aaa;
    border-radius: 8px;
    background: #fafafa;
}

.file input {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
}

/* Thank-you page */
.thank-you {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.thank-you__card {
    width: min(100%, 590px);
    padding: clamp(38px, 7vw, 72px);
    overflow: hidden;
    text-align: center;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .32);
}

.paper-plane {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    margin: 0 auto 28px;
    border-radius: 50%;
    background: #fff0eb;
}

.paper-plane svg {
    width: 70px;
    height: 70px;
    fill: var(--orange);
    filter: drop-shadow(7px 8px 0 rgba(255, 51, 0, .16));
}

.thank-you h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: .95;
    text-transform: uppercase;
}

.thank-you p {
    max-width: 38ch;
    margin: 0 auto 28px;
    color: var(--muted);
}

/* Admin dashboard */
.admin-shell {
    width: min(100% - 32px, 1300px);
    margin: auto;
    padding: 34px 0;
}

.admin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.admin-top h1 {
    margin: 0;
}

.admin-card {
    padding: 24px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .2);
}

/* Dashboard statistics */
.stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 18px 0;
}

.stat {
    padding: 18px;
    border-radius: 10px;
    background: #151515;
    color: #fff;
}

.stat span {
    display: block;
    color: #bbb;
    font-size: 12px;
    text-transform: uppercase;
}

.stat strong {
    font-size: 30px;
}

/* Tables */
.table-wrap {
    overflow: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table th,
.table td {
    padding: 11px 9px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

.table th {
    background: #f4f4f4;
}

/* Status labels */
.status {
    display: inline-block;
    padding: 4px 7px;
    border-radius: 99px;
    background: #eee;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
}

.status.approved {
    background: #ddf7e8;
    color: #08783e;
}

.status.rejected {
    background: #fee3e3;
    color: #a21515;
}

/* Inline actions */
.inline {
    display: flex;
    gap: 7px;
}

.small {
    min-height: 32px;
    padding: 5px 8px;
    font-size: 12px;
}

/* Login page */
.login {
    width: min(100% - 32px, 420px);
    margin: 10vh auto;
    padding: 30px;
    background: #fff;
    border-radius: 14px;
}

/* Mobile responsiveness */
@media (max-width: 720px) {
    .grid,
    .grid.three {
        grid-template-columns: 1fr;
    }

    .full {
        grid-column: auto;
    }

    .progress {
        gap: 4px;
    }

    .progress span {
        font-size: 10px;
    }

    .actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .page {
        padding: 20px 0;
    }

    .brand {
        padding: 24px;
    }

    .brand h1 {
        font-size: 32px;
    }

    .logo img {
        height: 44px;
    }

    .admin-top {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Admin and validator pages: the logo image on its own, the same mark the help chat uses, with no box. */
.logo.logo--image {
    min-width: 0;
    min-height: 0;
    padding: 0;
    background: transparent;
}

/* The "I'm not a robot" box above Submit Registration (recaptcha.php). Google draws it 304px wide. */
.captcha-field { margin-top: 4px; }
.captcha-field .g-recaptcha { min-height: 78px; }
.captcha-message { color: #b42318; font-weight: 700; }
@media (max-width: 360px) { .captcha-field .g-recaptcha { transform: scale(.9); transform-origin: 0 0; } }
