/* Vendor applications: the overview of an account's applications and the per-event application form. */
.apply { max-width: 960px; margin: 0 auto; padding: 24px 16px 48px; }
.apply h1 { margin: 8px 0 6px; }
.apply h2 { margin: 28px 0 12px; font-size: 1.25rem; }
.apply-lead { color: #44505c; margin: 0 0 18px; }
.apply-notice, .apply-error { padding: 12px 14px; border-radius: 8px; margin: 0 0 16px; }
.apply-notice { background: #e8f3ec; border: 1px solid #b9dcc5; }
.apply-error { background: #fdecea; border: 1px solid #f1b5ae; }
.apply-empty { background: #f5f6f8; padding: 16px; border-radius: 8px; }

.apply-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.apply-card { background: #fff; border: 1px solid #dfe3e8; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.apply-card h3 { margin: 0; font-size: 1.08rem; }
.apply-card p { margin: 0; }
.apply-card .button { margin-top: auto; align-self: flex-start; }
.apply-meta { color: #5b6672; font-size: .92rem; }
.apply-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: #e7eef8; color: #1d4273; }
.apply-badge.green { background: #e2f3e7; color: #17603a; }
.apply-badge.amber { background: #fff1cf; color: #7a5200; }
.apply-badge.red { background: #fde4e1; color: #96281b; }
.apply-badge.grey { background: #eceef1; color: #4a5560; }

.apply-panel { background: #fff; border: 1px solid #dfe3e8; border-radius: 12px; padding: 20px; margin: 0 0 18px; }
.apply-panel > h2:first-child { margin-top: 0; }
.apply-panel h3 { margin: 20px 0 8px; font-size: 1.05rem; }
.apply-warning { background: #fff8e6; border-color: #ecd391; }
.apply-prose, .apply-terms { line-height: 1.55; overflow-wrap: anywhere; }
.apply-terms { max-height: 320px; overflow-y: auto; border: 1px solid #dfe3e8; border-radius: 8px; padding: 14px; background: #fafbfc; }
.apply-details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 10px; }
.apply-details dt { color: #5b6672; }
.apply-details dd { margin: 0; overflow-wrap: anywhere; }
.apply-list { margin: 0 0 12px; padding-left: 20px; }

/* The site's default form card is not wanted here: each section is its own panel. */
.apply .apply-form { border: 0; padding: 0; background: none; box-shadow: none; max-width: none; }
.apply .apply-table { display: table; width: 100%; }
.apply-form fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.apply-form legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.apply-form label { display: block; margin: 0 0 14px; font-weight: 600; }
.apply-form label input:not([type=radio]):not([type=checkbox]), .apply-form label select, .apply-form label textarea { display: block; width: 100%; max-width: 100%; margin-top: 6px; font-weight: 400; box-sizing: border-box; }
.apply-form .help, .apply .help { color: #5b6672; font-size: .92rem; font-weight: 400; margin: 4px 0 10px; }
.apply-form .required-mark { color: #8a3b00; font-weight: 400; font-size: .9rem; }
.apply-form .choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 0 0 8px; }
.apply-form .choice input { margin-top: 4px; flex: 0 0 auto; }
.apply-form .choice-columns { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 16px; }
.apply-form .choice-inline { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.apply-form .application-question { border-top: 1px solid #eef0f3; padding-top: 14px; }
.apply-form .application-question:first-of-type { border-top: 0; padding-top: 0; }
.apply-document { border: 1px solid #e3e6ea !important; border-radius: 10px; padding: 14px !important; }
.apply-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 14px; }
.apply-extra { display: flex; justify-content: space-between; gap: 16px; align-items: center; border-top: 1px solid #eef0f3; padding: 12px 0; }
.apply-extra label { margin: 0; flex: 0 0 auto; }
.apply-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 18px; }
.apply-accept { margin-top: 16px !important; font-weight: 600 !important; }

.table-scroll { overflow-x: auto; }
.apply-table { width: 100%; border-collapse: collapse; }
.apply-table th, .apply-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #eef0f3; vertical-align: top; }
.apply-table th { font-size: .9rem; color: #44505c; }
.apply-table .num { text-align: right; white-space: nowrap; }
.apply-table .choice { margin: 0; }
.apply-table small { color: #5b6672; }

.price-lines { display: grid; grid-template-columns: 1fr max-content; gap: 8px 18px; margin: 0 0 12px; }
.price-lines dt { min-width: 0; }
.price-lines dd { margin: 0; text-align: right; white-space: nowrap; }
.apply-price { border-color: #b9cfe8; background: #f7fafe; }
.apply [hidden] { display: none !important; }

@media (max-width: 600px) {
    .apply-panel { padding: 16px; }
    .apply-details { grid-template-columns: 1fr; gap: 2px; }
    .apply-details dd { margin-bottom: 8px; }
    .apply-extra { flex-direction: column; align-items: flex-start; }
}

/* October 2026: late applications, insurance, sponsorship, contact actions */
.apply-late{border-left:6px solid #b45309;background:#fff7ed}
.apply-late .apply-late-title{font-size:1.25rem;font-weight:800;color:#9a3412;margin:0 0 6px;text-transform:none}
.apply-callout{border-left:4px solid #6b4a94;background:#f8f5fb;padding:12px 16px;border-radius:0 10px 10px 0;margin:10px 0}
.contact-actions{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 4px}
.contact-actions .button{margin:0}
.apply-badge.amber{background:#fef3c7;color:#92400e}
.doc-upload{border:1px solid #e5dcef;border-radius:12px;padding:16px;margin:12px 0;background:#fff}
.doc-pending{border-left:4px solid #b45309;background:#fff7ed;padding:10px 14px;border-radius:0 8px 8px 0}
.flag-row{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}


/* Question boxes, fields, choices, uploads and errors now come from the shared forms.css (class "amcc-form"). */
.apply .visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.form-key{font-size:.95rem;color:#3d3a4d;margin:10px 0 14px}
.apply-form .apply-actions button{padding:0 22px;font-size:1rem}
@media(max-width:600px){.apply-form .q .input-short{max-width:100%!important}}
.apply-saved{border-left:5px solid #17603a;font-weight:600;margin:0 0 16px}
#price:focus{outline:3px solid #e8b13a;outline-offset:4px}

/* October 2026: progress list, primary Save and continue, counters, field-level errors, temporary access codes */
.apply-progress{background:#f3f8f7;border:1px solid #d3e3e0;border-radius:12px;padding:14px 18px;margin:0 0 18px}
.apply-progress p{margin:0 0 8px}
.apply-progress ol{margin:0;padding-left:22px;columns:2;column-gap:28px}
.apply-progress li{margin:2px 0;break-inside:avoid}
@media(max-width:640px){.apply-progress ol{columns:1}}
.apply-form .apply-actions button.save-continue,.apply-form .apply-actions button[value=submit]{background:#17695f;color:#fff;border:2px solid #17695f;border-radius:10px;font-weight:700;padding:0 24px;min-height:52px;cursor:pointer;text-decoration:none}
.apply-form .apply-actions button.save-continue:hover,.apply-form .apply-actions button[value=submit]:hover{background:#0f4f48;border-color:#0f4f48}
.apply-form .apply-actions button[value=submit]{background:#0d4a44;border-color:#0d4a44}
.char-count{display:block;margin:4px 0 0;font-size:.85rem;color:#53635f}
.char-count.low{color:#8a5a00;font-weight:600}
.amcc-form .q.has-field-error{border-left:6px solid var(--f-err,#b42318)}
.q-error.field-level{margin:6px 0 10px}
.bypass-code{margin:12px 0 4px;padding:12px 14px;border:1px dashed #b9c9c6;border-radius:10px;background:#fbfdfc}
.bypass-code .inline-label{display:inline-block;min-width:min(320px,100%)}
.bypass-code input{text-transform:uppercase;letter-spacing:.06em}
.bypass-code[data-confirmed] {border-style:solid;border-color:#8fc1b8;background:#f1f8f6}
.bypass-details{margin:12px 0 0}
.bypass-details>summary{cursor:pointer;font-weight:650;color:#12645c}
.promo-details{border:0;padding:0;margin:0}
.promo-details>legend{font-weight:700;margin-bottom:6px}
.choice-columns{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:6px 14px}
.session-ended{position:sticky;top:8px;z-index:20}
.abn-names{margin:10px 0 0;border:0;padding:0}
.abn-names legend{font-weight:700;margin-bottom:4px}
/* Product & Service Selection (11 Oct 2026) */
.psel{border:1px solid #d3e3e0;border-radius:14px;padding:18px;background:#fff}
.psel-kicker{margin:0;font-size:.8rem;letter-spacing:.06em;text-transform:uppercase;color:#53635f;font-weight:700}
.psel-title{margin:2px 0 12px;font-size:1.35rem}
.psel-intro p{margin:0 0 8px}
.psel-authorised{color:#0f5f55;background:#eef7f4;border-radius:8px;padding:8px 12px;display:inline-block}
.psel-stats{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}
.psel-stats div{background:#f3f8f7;border:1px solid #d3e3e0;border-radius:10px;padding:8px 14px;min-width:120px}
.psel-stats dt{font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;color:#53635f}
.psel-stats dd{margin:0;font-size:1.25rem;font-weight:700;color:#173f3b}
.psel-search label,.psel-cat-body>label{display:block;font-weight:650;margin:8px 0 4px}
.psel-search input,.psel-cat-body input[type=search]{width:100%;max-width:640px}
.psel-status{font-size:.9rem;color:#53635f;margin:6px 0}
.psel-results .psel-list,.psel-cat-results .psel-list{max-height:360px;overflow:auto;border:1px solid #e1e8e6;border-radius:10px;padding:6px 10px;margin-bottom:10px}
.psel-tools{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin:12px 0}
.psel-only{display:flex;gap:6px;align-items:center;font-weight:500}
.psel-cat{border:1px solid #d3e3e0;border-radius:12px;margin:8px 0;background:#fbfdfc}
.psel-cat>summary{list-style:none;display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px 14px;cursor:pointer}
.psel-cat>summary::-webkit-details-marker{display:none}
.psel-cat>summary::after{content:"\25BE";grid-column:3;justify-self:end;color:#17695f}
.psel-cat[open]>summary::after{content:"\25B4"}
.psel-cat-letter{width:36px;height:36px;border-radius:50%;background:#17695f;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700}
.psel-cat-text strong{display:block}
.psel-cat-text small{color:#53635f}
.psel-cat-count{grid-column:2/4;font-size:.85rem;color:#53635f}
@media(min-width:760px){.psel-cat>summary{grid-template-columns:40px minmax(0,1fr) auto auto}.psel-cat-count{grid-column:3}.psel-cat>summary::after{grid-column:4}}
.psel-cat-body{padding:0 14px 14px}
.psel-subs h5{margin:14px 0 6px;font-size:.95rem;color:#173f3b;border-bottom:1px solid #e1e8e6;padding-bottom:4px}
.psel-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:4px 14px}
.psel-item{display:flex;gap:8px;align-items:flex-start;padding:6px 4px;border-radius:6px;min-height:40px}
.psel-item:hover{background:#f1f8f6}
.psel-item input{margin-top:3px;flex-shrink:0;width:20px;height:20px}
.psel-item small{color:#53635f}
.psel-item em{font-style:normal;font-size:.78rem;color:#8a5a00;margin-left:4px}
.psel-item.is-off{opacity:.6}
.psel-summary{background:#f3f8f7;border-radius:12px;padding:12px 16px;margin-top:14px}
.psel-summary h4{margin:0 0 6px}
.psel-summary ol{margin:0 0 6px;padding-left:22px}
.psel-summary li{margin:3px 0}
.psel-summary-count{margin:0;font-weight:600}
.psel-auth{border-top:1px solid #e1e8e6;margin-top:18px;padding-top:12px}
.psel-auth p{margin:0 0 8px}
.psel-other{margin-top:12px}
.psel-other input{width:100%;max-width:520px}
.link-button{background:none;border:0;color:#12645c;text-decoration:underline;cursor:pointer;padding:4px 2px;font:inherit;min-height:32px}/* Stall or site type as responsive cards (11 Oct 2026): one fee per card for the chosen days; no narrow price columns. */
.stall-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:.75rem;margin:.5rem 0 1rem}
.stall-cards .stall-card{display:flex;align-items:flex-start;gap:.6rem;border:1px solid var(--line,#d0d5dd);border-radius:10px;padding:.85rem .9rem;margin:0;min-width:0;background:var(--card,#fff)}
.stall-cards .stall-card>span{display:block;min-width:0;overflow-wrap:anywhere}
.stall-cards .stall-card:has(input:checked){border-color:var(--accent,#1d4ed8);box-shadow:0 0 0 2px var(--accent,#1d4ed8) inset}
.stall-cards .stall-card:has(input:disabled){opacity:.6}
.stall-fee{display:block;margin-top:.45rem;font-weight:700;font-size:1.05em}
/* Applicant dashboard (11 Oct 2026). */
.apply-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:10px;margin:8px 0 18px}
.apply-stats>div{border:1px solid #d0d5dd;border-radius:10px;padding:10px 12px;background:#fff;min-width:0}
.apply-stats span{display:block;font-size:.8rem;text-transform:uppercase;letter-spacing:.04em;color:#475467}
.apply-stats strong{display:block;font-size:1.35rem;margin-top:2px}
.apply-ref{margin:0;font:600 .85rem/1.3 ui-monospace,SFMono-Regular,Menlo,monospace;color:#475467;overflow-wrap:anywhere}
.apply-facts{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;margin:8px 0 12px;font-size:.95rem}
.apply-facts dt{color:#475467}.apply-facts dd{margin:0;min-width:0;overflow-wrap:anywhere}
.apply-card.needs-action{border-left:4px solid #d6a53c}
/* Discard an unfinished draft (confirmation tick inside a disclosure). */
.apply-discard{margin-top:10px}.apply-discard summary{cursor:pointer;color:#8a2c2c;font-weight:600}
.apply-discard form{margin-top:8px}.apply-discard .tick{display:flex;gap:8px;align-items:flex-start;margin:6px 0 10px}
