/* COC Permits — Frontend Styles */

/* ── Form header info bar ─────────────────────────────────────────────────── */
.coc-form-header-info {
    background: #eef1fa;
    border: 1px solid #c7d0ec;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 24px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 14px;
}
.coc-form-fee-notice { font-weight: 500; color: #2B3E84; }
.coc-form-contact    { color: #555; }
.coc-form-contact a  { color: #2B3E84; }

/* ── Field hint inline ────────────────────────────────────────────────────── */
.coc-field-hint-inline {
    font-size: 12px;
    color: #595959;
    font-weight: 400;
}

/* ── Sub-license type options (food truck / mobile vendor) ────────────────── */
.coc-license-type-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}
.coc-license-option {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 2px solid #dde1ea;
    border-radius: 8px;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.coc-license-option:hover   { border-color: #2B3E84; background: #f8f9fe; }
.coc-license-option.selected { border-color: #2B3E84; background: #eef1fa; }
/* Visually hide radio but keep it focusable for keyboard/screen reader users */
.coc-license-option input[type="radio"] {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
}
/* Highlight the card when the radio inside receives keyboard focus */
.coc-license-option:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px #2563eb;
    outline: none;
}
.coc-license-option-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}
.coc-license-option-price  { font-weight: 700; color: #2B3E84; white-space: nowrap; }
.coc-license-option-desc   { font-size: 13px; color: #666; line-height: 1.5; }

/* ── Info boxes ───────────────────────────────────────────────────────────── */
.coc-info-box {
    background: #f0f4ff;
    border-left: 4px solid #2B3E84;
    border-radius: 4px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.6;
    margin-top: 12px;
}
.coc-info-box--upload {
    background: #fff8e6;
    border-left-color: #d4860a;
}
.coc-info-box--warning {
    background: #fff3cd;
    border-left-color: #d4860a;
}
.coc-info-box a { color: inherit; font-weight: 600; }

/* ── Radio group ──────────────────────────────────────────────────────────── */
.coc-radio-group        { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 6px; }
.coc-radio-group--inline { gap: 8px 16px; }
.coc-radio-label        { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; }

/* ── Background questions ─────────────────────────────────────────────────── */
.coc-bg-question {
    border-bottom: 1px solid #eee;
    padding: 14px 0;
}
.coc-bg-question:last-child  { border-bottom: none; }
.coc-bg-question-text        { margin: 0 0 8px; font-size: 14px; }
.coc-bg-detail               { margin-top: 10px; }

/* ── Legal text block ─────────────────────────────────────────────────────── */
.coc-legal-text {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 14px 16px;
    font-size: 13px;
    color: #444;
    line-height: 1.7;
}
.coc-legal-text p { margin: 0 0 10px; }
.coc-legal-text p:last-child { margin-bottom: 0; }

/* ── Wizard shell ─────────────────────────────────────────────────────────── */
.coc-form-wizard {
    max-width: 840px;
    margin: 0 auto;
    font-size: 15px;
}

/* ── Type selector ────────────────────────────────────────────────────────── */
.coc-type-cards {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.coc-type-card {
    flex: 1;
    min-width: 200px;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color .2s, box-shadow .2s;
}
.coc-type-card:hover {
    border-color: #003366;
    box-shadow: 0 2px 8px rgba(0,51,102,.15);
    color: #003366;
}
.coc-type-icon  { font-size: 2em; }
.coc-type-price { font-size: 13px; color: #666; }

/* ── Pre-fill notice ──────────────────────────────────────────────────────── */
.coc-prefill-notice {
    background: #e8f0fe;
    border-left: 4px solid #2271b1;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* ── License year badge ────────────────────────────────────────────────────── */
.coc-license-year-badge {
    display: inline-block;
    background: #003366;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ── Progress bar ─────────────────────────────────────────────────────────── */
.coc-progress-bar {
    margin-bottom: 28px;
}
.coc-progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
    color: #555;
}
.coc-progress-track {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}
.coc-progress-fill {
    height: 100%;
    background: #003366;
    border-radius: 3px;
    transition: width .3s ease;
}
.coc-step-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
}
.coc-step-label {
    font-size: 11px;
    color: #aaa;
    text-align: center;
    flex: 1;
}
.coc-step-label.coc-step-done   { color: #003366; }
.coc-step-label.coc-step-active { color: #003366; font-weight: 600; }

/* ── Form layout ──────────────────────────────────────────────────────────── */
.coc-step-inner { padding-bottom: 8px; }
.coc-step-inner h3 { margin-top: 0; color: #003366; }
.coc-step-desc { color: #666; margin-bottom: 20px; }

.coc-field-group {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}
.coc-field-group h4 {
    margin: 0 0 16px;
    font-size: 15px;
    color: #003366;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.coc-field-row { margin-bottom: 14px; }
.coc-field-row--half  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.coc-field-row--third { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 640px) {
    .coc-field-row--half,
    .coc-field-row--third { grid-template-columns: 1fr; }
}

.coc-label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
    color: #374151;
}
.coc-label span { color: #dc2626; }

.coc-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    color: #111;
    box-sizing: border-box;
    transition: border-color .15s;
}
.coc-input:focus {
    outline: none;
    border-color: #003366;
    box-shadow: 0 0 0 2px rgba(0,51,102,.15);
}
.coc-input.coc-invalid { border-color: #dc2626; }

.coc-field-error {
    display: block;
    color: #dc2626;
    font-size: 12px;
    margin-top: 3px;
}
.coc-field-hint { display: block; font-size: 13px; color: #595959; margin-top: 2px; }

.coc-checkbox-label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 14px;
    cursor: pointer;
    line-height: 1.5;
}
.coc-checkbox-label input { margin-top: 3px; flex-shrink: 0; }

/* ── Liquor license type rows (with expandable City Code detail) ──────────── */
.coc-license-type-row {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: #fff;
}
.coc-license-type-label {
    margin: 0;
}
.coc-license-type-text {
    font-size: 14px;
    line-height: 1.4;
}
.coc-license-type-fee {
    color: #003366;
    font-weight: 600;
    margin-left: 4px;
}
.coc-license-detail {
    margin-top: 8px;
    margin-left: 26px;
    font-size: 13px;
}
.coc-license-detail summary {
    color: #2563eb;
    cursor: pointer;
    font-size: 12px;
    user-select: none;
    padding: 2px 0;
    list-style: revert;
}
.coc-license-detail summary:hover {
    text-decoration: underline;
}
.coc-license-detail[open] summary {
    color: #1d4ed8;
    margin-bottom: 6px;
}
.coc-license-detail p {
    margin: 4px 0 0;
    padding: 10px 12px;
    background: #f6f8fa;
    border-left: 3px solid #003366;
    border-radius: 0 4px 4px 0;
    color: #374151;
    line-height: 1.55;
}
.coc-sublicense-fields {
    margin-top: 12px;
    margin-left: 26px;
    padding: 12px;
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
}

/* ── User menu bar (logout etc.) on portal pages ─────────────────────────── */
.coc-user-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    margin-bottom: 16px;
    background: #f6f8fa;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    color: #4b5563;
}
.coc-user-menu-greeting { margin-right: auto; }
.coc-user-menu-link,
.coc-user-menu-logout {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 500;
}
.coc-user-menu-link:hover,
.coc-user-menu-logout:hover { text-decoration: underline; }
.coc-user-menu-logout {
    padding: 4px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
}
.coc-user-menu-logout:hover { background: #f3f4f6; text-decoration: none; }

/* Document checklist note (e.g. "required to obtain but not to upload") */
.coc-doc-note {
    margin: 4px 0 8px;
    padding: 8px 12px;
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    border-radius: 0 4px 4px 0;
    font-size: 12px;
    line-height: 1.5;
    color: #78350f;
}

/* ── Form navigation ──────────────────────────────────────────────────────── */
.coc-form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}
.coc-save-status { font-size: 13px; color: #666; }
.coc-status-saving { color: #595959; }
.coc-status-ok     { color: #16a34a; }
.coc-status-err    { color: #dc2626; }

.coc-btn-primary {
    background: #003366 !important;
    color: #fff !important;
    border-color: #003366 !important;
}
.coc-btn-primary:hover { background: #002244 !important; }

.coc-error-msg {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 4px;
    margin-top: 12px;
    font-size: 14px;
}

/* ── Review step ──────────────────────────────────────────────────────────── */
.coc-review-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 20px;
}
.coc-review-table th,
.coc-review-table td {
    padding: 5px 8px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    vertical-align: top;
}
.coc-review-table th { width: 40%; color: #666; font-weight: 400; }

.coc-esig-box {
    background: #f0f4ff;
    border: 1px solid #c7d2fe;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}
.coc-esig-box h4 { margin: 0 0 10px; color: #003366; }
.coc-esig-box ul { margin: 8px 0 16px 20px; }
.coc-esig-datestamp { color: #666; font-size: 13px; margin-top: 8px; }

.coc-price-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 16px 20px;
}
.coc-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    color: #003366;
    margin-bottom: 8px;
}
.coc-price-note { font-size: 13px; color: #666; margin: 0; }

/* ── Info box ─────────────────────────────────────────────────────────────── */
.coc-info-box {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    color: #78350f;
}

/* ── Hide footer newsletter + explore sections on permit pages ─────────────── */
.coc-permits-page .section-signup,
.coc-permits-page .gallery-wrapper,
.coc-permits-page [data-id="58c3fee"],
.coc-permits-page [data-id="cf5f1b2"] {
    display: none !important;
}

/* ── Page content spacing ─────────────────────────────────────────────────── */
.coc-permits-page .page-content,
.coc-permits-page .entry-content {
    padding-top: 48px;
    padding-bottom: 64px;
}

/* ── Login notice ─────────────────────────────────────────────────────────── */
.coc-login-notice {
    max-width: 560px;
    margin: 60px auto;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 48px 40px;
    text-align: center;
}
.coc-login-notice h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 22px;
    color: #1a1a2e;
}
.coc-login-notice p { font-size: 16px; margin-bottom: 24px; color: #555; }
.coc-login-notice .coc-btn-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── My Applications ──────────────────────────────────────────────────────── */
.coc-my-apps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.coc-my-apps-header h2 { margin: 0; }

.coc-apps-table-wrap { overflow-x: auto; }
.coc-apps-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.coc-apps-table th {
    background: #f3f4f6;
    padding: 10px 12px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #666;
    border-bottom: 2px solid #e5e7eb;
}
.coc-apps-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.coc-apps-table tr:hover td { background: #fafafa; }

.coc-status-pill {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}
.coc-status-draft        { background: #9ca3af; }
.coc-status-submitted    { background: #2271b1; }
.coc-status-pending_docs { background: #d97706; }
.coc-status-under_review { background: #7c3aed; }
.coc-status-approved     { background: #16a34a; }
.coc-status-rejected     { background: #dc2626; }

.coc-docs-complete { color: #16a34a; font-weight: 600; }
.coc-docs-pending  { color: #d97706; font-weight: 600; }

.coc-empty-state {
    background: #f9fafb;
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: #666;
}

/* ── Application detail (frontend) ───────────────────────────────────────── */
.coc-app-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.coc-app-detail-header h2 { margin: 0; }

.coc-docs-upload-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 20px;
}
.coc-docs-upload-table th {
    background: #f3f4f6;
    padding: 8px 10px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    border-bottom: 2px solid #e5e7eb;
}
.coc-docs-upload-table td {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.coc-view-file  { font-size: 12px; }
.coc-doc-notes  { font-size: 12px; color: #595959; font-style: italic; }

.coc-doc-status { font-weight: 600; font-size: 13px; }
.coc-doc-pending   { color: #d97706; }
.coc-doc-requested { color: #2271b1; }
.coc-doc-received  { color: #16a34a; }
.coc-doc-waived    { color: #595959; }

.coc-comm-card {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
}
.coc-comm-card-header {
    background: #f3f4f6;
    padding: 8px 14px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}
.coc-comm-card-body {
    padding: 14px;
    font-size: 14px;
}

.coc-received-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
}
.coc-received-box h2 { color: #16a34a; margin-top: 0; }

.coc-upload-result.coc-success { color: #16a34a; }
.coc-upload-result.coc-error   { color: #dc2626; }

/* ── Document upload step ──────────────────────────────────────────────── */
.coc-doc-checklist { display: flex; flex-direction: column; gap: 12px; }

.coc-doc-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 16px;
    background: #fff;
}
.coc-doc-item:has(.coc-doc-received),
.coc-doc-item:has(.coc-doc-accepted) { border-color: #bbf7d0; background: #f0fdf4; }
.coc-doc-item--waived { border-color: #e5e7eb; background: #f9fafb; opacity: .85; }

.coc-doc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
}
.coc-doc-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.coc-doc-label { font-weight: 600; font-size: 14px; }

.coc-sample-link {
    font-size: 12px;
    color: #2271b1;
    text-decoration: none;
    white-space: nowrap;
}
.coc-sample-link:hover { text-decoration: underline; }

.coc-exempt-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 6px 0 10px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    line-height: 1.4;
}
.coc-exempt-row input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; }

.coc-doc-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.coc-doc-required    { background: #fee2e2; color: #b91c1c; }
.coc-doc-optional    { background: #f3f4f6; color: #6b7280; }
.coc-doc-received    { background: #dcfce7; color: #15803d; }
.coc-doc-accepted    { background: #166534; color: #fff; }
.coc-doc-waived-badge { background: #e5e7eb; color: #6b7280; font-style: italic; }

.coc-doc-uploaded {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #16a34a;
}
.coc-doc-filename { font-style: italic; }
.coc-doc-replace-btn {
    background: none;
    border: 1px solid #6b7280;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 12px;
    cursor: pointer;
    color: #374151;
}
.coc-doc-replace-btn:hover { background: #f3f4f6; }

/* Wizard: single-button upload row */
.coc-doc-upload-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.coc-file-input {
    /* Visually hidden but accessible — triggered programmatically */
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.coc-attach-btn {
    background: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.coc-attach-btn:hover:not(:disabled) { background: #1e40af; }
.coc-attach-btn:disabled { opacity: .6; cursor: not-allowed; }

.coc-upload-result { font-size: 13px; }

/* My Applications table upload form (separate from wizard) */
.coc-upload-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.coc-upload-form input[type="file"] {
    font-size: 13px;
    flex: 1;
    min-width: 200px;
}
.coc-upload-form button[type="submit"] {
    background: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 7px 18px;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
}
.coc-upload-form button[type="submit"]:disabled { opacity: .6; cursor: not-allowed; }
.coc-upload-form button[type="submit"]:hover:not(:disabled) { background: #1e40af; }

.coc-info-box--warn {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

/* ── Accessibility ───────────────────────────────────────────────────────── */

/* Screen-reader-only utility — visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

/* Focus indicators for all interactive elements */
.coc-btn-primary:focus-visible,
.coc-btn-next:focus-visible,
.coc-btn-prev:focus-visible,
.coc-btn-pay:focus-visible,
.coc-attach-btn:focus-visible,
.coc-type-card:focus-visible,
.coc-user-menu-link:focus-visible,
.coc-user-menu-logout:focus-visible,
.coc-upload-form button:focus-visible,
.coc-exempt-check:focus-visible,
a:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Skip-to-content link — only visible on keyboard focus */
.coc-skip-link {
    position: absolute;
    top: -100px;
    left: 8px;
    background: #003366;
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    font-size: 14px;
    border-radius: 0 0 4px 4px;
    text-decoration: none;
}
.coc-skip-link:focus {
    top: 0;
}

/* ─────────────────────────────────────────────────────────────────────
   Permit & License Portal — landing page on /forms-permits-and-licenses/
   ───────────────────────────────────────────────────────────────────── */

.coc-portal { max-width: 1080px; margin: 0 auto; }

.coc-portal-hero {
    background: linear-gradient(135deg, #003366 0%, #00509e 100%);
    color: #fff;
    padding: 48px 32px 40px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 32px;
}
.coc-portal-hero h1 {
    color: #fff;
    margin: 0 0 12px;
    font-size: clamp(24px, 3.5vw, 34px);
    line-height: 1.2;
}
.coc-portal-lede {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    line-height: 1.55;
    margin: 0 auto 24px;
    max-width: 640px;
}
.coc-portal-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}
.coc-portal-greeting {
    color: rgba(255,255,255,0.95);
    font-size: 16px;
    margin-right: 8px;
}
.coc-portal-greeting strong { color: #fff; }
.coc-portal-btn {
    padding: 12px 22px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
}
.coc-portal-btn--secondary {
    background: rgba(255,255,255,0.12) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.5) !important;
}
.coc-portal-btn--secondary:hover {
    background: rgba(255,255,255,0.22) !important;
}
.coc-portal-badge {
    display: inline-block;
    background: #fff;
    color: #003366;
    border-radius: 999px;
    padding: 1px 9px;
    font-size: 13px;
    font-weight: 700;
    margin-left: 8px;
    line-height: 1.4;
}
.coc-portal-logout {
    color: rgba(255,255,255,0.85) !important;
    text-decoration: underline;
    font-size: 14px;
    margin-left: 4px;
}
.coc-portal-hero-note {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    margin: 14px 0 0;
}

.coc-portal-section-h {
    font-size: 20px;
    margin: 0 0 18px;
    color: #1f2937;
}

.coc-portal-inprogress {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 22px 26px;
    margin-bottom: 32px;
}
.coc-portal-inprogress .coc-portal-section-h { color: #15803d; }
.coc-portal-app-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.coc-portal-app-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #d1fae5;
}
.coc-portal-app-row:last-child { border-bottom: none; }
.coc-portal-app-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.coc-portal-app-meta strong {
    color: #1f2937;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.coc-portal-app-type {
    color: #6b7280;
    font-size: 13px;
    margin-top: 1px;
}

.coc-portal-types { margin-bottom: 32px; }

.coc-portal-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.coc-portal-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px 22px 22px;
    text-decoration: none !important;
    color: #1f2937 !important;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.coc-portal-card:hover,
.coc-portal-card:focus-visible {
    border-color: #003366;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 51, 102, 0.10);
    outline: none;
}
.coc-portal-card-icon {
    font-size: 36px;
    line-height: 1;
    margin-bottom: 12px;
}
.coc-portal-card-title {
    font-size: 18px;
    margin: 0 0 2px;
    color: #1f2937;
}
.coc-portal-card-subtitle {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 12px;
}
.coc-portal-card-desc {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 16px;
    flex-grow: 1;
}
.coc-portal-card-price {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
    margin-bottom: 14px;
}
.coc-portal-card-price strong {
    color: #003366;
    font-size: 16px;
}
.coc-portal-card-price span {
    color: #6b7280;
    font-size: 12px;
    margin-top: 2px;
}
.coc-portal-card-cta {
    color: #003366;
    font-weight: 600;
    font-size: 14px;
    align-self: flex-start;
}

.coc-portal-help {
    background: #f9fafb;
    border-radius: 8px;
    padding: 22px 26px;
    text-align: center;
}
.coc-portal-help p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}
.coc-portal-help a { color: #003366; font-weight: 600; }

@media (max-width: 720px) {
    .coc-portal-hero { padding: 36px 22px 32px; }
    .coc-portal-cards { grid-template-columns: 1fr; }
    .coc-portal-app-row {
        grid-template-columns: 1fr;
        gap: 6px;
        text-align: left;
    }
    .coc-portal-app-row .coc-status-pill,
    .coc-portal-app-row .button { justify-self: start; }
}

/* ── Repeatable special events (liquor) ─────────────────────────────────── */
.coc-special-event-row { position: relative; }
.coc-special-event-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
}
.coc-se-remove {
    background: none; border: none; color: #b91c1c; cursor: pointer;
    font-size: 13px; text-decoration: underline; padding: 0;
}
.coc-se-remove:hover { color: #7f1d1d; }
#coc-add-special-event { margin-top: 4px; }
.coc-se-fee-line { color: #374151; font-size: 14px; }
