:root {
    --bg: #f5f1ea;
    --cream: #fffaf2;
    --panel: #ffffff;
    --text: #111833;
    --navy: #071645;
    --muted: #5f6473;
    --line: rgba(7,22,69,.14);
    --maroon: #7b0000;
    --maroon2: #9c1111;
    --ochre: #b7652b;
    --ochre2: #d79a4d;
    --success: #0f7a3b;
    --danger: #b42318;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(123,0,0,.12), transparent 34%),
        radial-gradient(circle at bottom right, rgba(183,101,43,.13), transparent 38%),
        linear-gradient(135deg, #f7f0e6, #fffaf2 52%, #f3e4d2);
    color: var(--text);
}
.wrap { width: min(1220px, calc(100% - 32px)); margin: 0 auto; padding: 30px 0 60px; }
.hero {
    overflow: hidden;
    border: 1px solid rgba(123,0,0,.22);
    background: linear-gradient(135deg, var(--maroon) 0%, #650000 52%, #3d0505 100%);
    border-radius: 22px;
    box-shadow: 0 22px 60px rgba(55,0,0,.24);
    margin-bottom: 22px;
}
.hero-inner {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 24px;
    align-items: center;
    padding: 28px 30px;
    background:
        linear-gradient(90deg, rgba(255,255,255,.08), transparent 28%),
        radial-gradient(circle at top right, rgba(215,154,77,.24), transparent 34%);
}
.logo-box { background: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.logo-box img { display: block; width: 100%; height: auto; }
.brand { color: #f4d4a1; text-transform: uppercase; letter-spacing: .16em; font-weight: bold; font-size: 13px; }
h1 { margin: 10px 0 10px; font-size: clamp(34px, 5vw, 58px); line-height: 1.02; color: #fff; }
.hero p { color: rgba(255,255,255,.88); font-size: 18px; line-height: 1.55; max-width: 900px; }
.notice {
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.1);
    border-radius: 16px;
    padding: 16px 18px;
    color: rgba(255,255,255,.9);
    margin-top: 18px;
}
.card {
    border: 1px solid rgba(7,22,69,.14);
    background: rgba(255,255,255,.96);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 18px 50px rgba(50,35,20,.14);
    margin-bottom: 22px;
}
.section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.section:last-child { border-bottom: 0; }
.section h2 { margin: 0 0 14px; font-size: 24px; color: var(--navy); }
.section h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    margin-top: 10px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--maroon), var(--ochre2));
}
.section p { color: var(--muted); margin-top: -4px; line-height: 1.5; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.full { grid-column: 1 / -1; }
label { display: block; color: var(--navy); font-weight: bold; margin-bottom: 7px; font-size: 14px; }
input, select, textarea {
    width: 100%;
    border: 1px solid rgba(7,22,69,.22);
    background: #fffaf2;
    color: var(--text);
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 15px;
    outline: none;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus {
    border-color: var(--maroon);
    box-shadow: 0 0 0 3px rgba(123,0,0,.12);
    background: #fff;
}
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.check {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(7,22,69,.14);
    background: linear-gradient(135deg, #fffaf2, #f7ead8);
    border-radius: 12px;
    padding: 11px;
    color: var(--muted);
}
.check input { width: auto; margin: 0; accent-color: var(--maroon); }
.check span { font-size: 14px; }
.table-form { width: 100%; border-collapse: separate; border-spacing: 0 10px; }
.table-form th { text-align: left; color: var(--navy); font-size: 13px; padding: 0 6px; }
.table-form td { padding: 0 6px; }
.yn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.actions { padding-top: 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
button, .button {
    border: 0;
    background: linear-gradient(135deg, var(--maroon), var(--maroon2));
    color: #fff;
    font-weight: bold;
    font-size: 17px;
    border-radius: 14px;
    padding: 15px 24px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(123,0,0,.24);
    text-decoration: none;
    display: inline-block;
}
button:hover, .button:hover { filter: brightness(1.08); }
.small { color: var(--muted); font-size: 13px; }
.alert { border-radius: 16px; padding: 16px 18px; margin-bottom: 18px; line-height: 1.5; }
.alert.success { border: 1px solid rgba(15,122,59,.35); background: rgba(15,122,59,.10); color: #0b5d2d; }
.alert.error { border: 1px solid rgba(180,35,24,.35); background: rgba(180,35,24,.10); color: #8a1d15; }
.required { color: var(--maroon); }
.footer { color: var(--muted); text-align: center; margin-top: 24px; font-size: 13px; }

.upload-box {
    border: 1px dashed rgba(123,0,0,.32);
    background: linear-gradient(135deg, #fffaf2, #f7ead8);
    border-radius: 16px;
    padding: 16px;
}
.file-input-hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.upload-trigger {
    font-size: 15px;
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(123,0,0,.18);
}
.selected-files {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}
.file-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(7,22,69,.14);
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
}
.file-name {
    color: var(--navy);
    font-weight: bold;
    word-break: break-word;
}
.file-size {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}
.remove-file {
    border: 0;
    background: #071645;
    color: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: none;
}
.empty-files {
    color: var(--muted);
    font-size: 13px;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(7,22,69,.10);
    border-radius: 12px;
    padding: 10px 12px;
}

@media (max-width: 900px) {
    .grid, .grid3, .check-grid { grid-template-columns: 1fr; }
    .hero-inner { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
    .logo-box { width: 125px; }
    .card { padding: 20px; border-radius: 18px; }
    .table-form, .table-form tbody, .table-form tr, .table-form td { display: block; width: 100%; }
    .table-form th { display: none; }
    .table-form td { padding: 4px 0; }
}


/* Andrew intro / partner section */
.partner-panel {
    border: 1px solid rgba(7,22,69,.14);
    background: rgba(255,255,255,.96);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 18px 50px rgba(50,35,20,.14);
    margin-bottom: 22px;
}
.partner-kicker {
    color: var(--maroon);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
}
.partner-panel h2 {
    color: var(--navy);
    margin: 0 0 12px;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.08;
}
.partner-panel p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
    max-width: 940px;
}
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 14px;
    margin-top: 18px;
}
.benefit-card {
    border: 1px solid rgba(7,22,69,.14);
    background: linear-gradient(135deg, #fffaf2, #f7ead8);
    border-radius: 14px;
    padding: 16px;
}
.benefit-card strong {
    display: block;
    color: var(--navy);
    margin-bottom: 7px;
}
.benefit-card span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}
.start-registration {
    display: inline-block;
    margin-top: 20px;
    background: linear-gradient(135deg, var(--maroon), var(--maroon2));
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 14px;
    padding: 14px 22px;
    box-shadow: 0 12px 30px rgba(123,0,0,.20);
}

/* Progressive accordion form sections */
.section {
    border: 1px solid rgba(7,22,69,.12);
    border-radius: 16px;
    margin: 14px 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
}
.section:last-child {
    border-bottom: 1px solid rgba(7,22,69,.12);
}
.section-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    border: 0;
    border-radius: 0;
    background: linear-gradient(135deg, #fffaf2, #f7ead8);
    color: var(--navy);
    box-shadow: none;
    padding: 16px 18px;
    text-align: left;
    cursor: pointer;
}
.section-toggle:hover {
    filter: none;
    background: linear-gradient(135deg, #fff6e7, #f3dfc4);
}
.section-number {
    background: var(--maroon);
    color: #fff;
    border-radius: 999px;
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    font-size: 13px;
    font-weight: bold;
}
.section-title {
    font-size: 21px;
    font-weight: bold;
}
.section-status {
    color: var(--muted);
    font-size: 13px;
    font-weight: bold;
}
.section-content {
    padding: 22px;
    border-top: 1px solid rgba(7,22,69,.10);
}
.section.collapsed .section-content {
    display: none;
}
.section.open {
    border-color: rgba(123,0,0,.22);
}
.continue-section {
    margin-top: 20px;
    font-size: 15px;
    padding: 12px 18px;
    border-radius: 12px;
}
.final-submit-panel {
    border: 1px solid rgba(123,0,0,.20);
    background: linear-gradient(135deg, #fffaf2, #f7ead8);
    border-radius: 18px;
    padding: 18px;
    margin-top: 20px;
}
.submission-note {
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 14px;
}
.submission-note strong {
    color: var(--navy);
}

@media (max-width: 900px) {
    .benefit-grid {
        grid-template-columns: 1fr;
    }
    .section-toggle {
        grid-template-columns: auto 1fr;
    }
    .section-status {
        grid-column: 2;
    }
}


/* Registration entry state */
#registration-form {
    position: relative;
}

#registration-form::before {
    content: "Complete the sections below to register your business capability with Nexus Supply Group.";
    display: block;
    margin-bottom: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(123,0,0,.14);
    background: linear-gradient(135deg, #fffaf2, #f7ead8);
    border-radius: 14px;
    color: var(--muted);
    line-height: 1.5;
}
