/* ─── Incident pages ─────────────────────────────────────────────────────── */

.brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

/* Breadcrumb in topbar */
.incidents-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: var(--header-width, min(1500px, calc(100% - 2rem)));
    margin: 0 auto;
    padding: 0.65rem 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
}

.incidents-breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.incidents-breadcrumb a:hover {
    color: #fff;
}

/* Logged-in user chip in header */
.ms-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--brand-navy);
}

.ms-user-icon {
    width: 20px;
    height: 20px;
    stroke: var(--brand-navy);
    stroke-width: 2;
    fill: none;
}

.incident-btn-sm {
    font-size: 0.82rem;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.28rem 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.incident-btn-sm:hover {
    background: var(--soft);
    color: var(--ink);
}

/* Main layout */
.incident-main {
    min-height: calc(100vh - 280px);
    background: var(--soft, #f6f4f1);
    padding: 3rem 1rem 5rem;
}

.incident-page {
    max-width: 700px;
    margin: 0 auto;
}

/* Card */
.incident-card {
    background: #fff;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 12px;
    padding: 2.5rem 2.75rem;
    box-shadow: 0 2px 16px rgba(14, 42, 71, 0.07);
}

.incident-card--center {
    text-align: center;
}

/* Shield icon on landing */
.incident-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.incident-shield-icon {
    width: 72px;
    height: 72px;
    fill: none;
    stroke: var(--burgundy, #8d001c);
    stroke-width: 2.5;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 8px rgba(141, 0, 28, 0.18));
}

.incident-shield-bang {
    stroke-linecap: round;
    stroke-width: 3;
}

/* Headings */
.incident-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--brand-navy-deep, #091d33);
    margin-bottom: 0.65rem;
    line-height: 1.25;
}

.incident-subtitle {
    font-size: 1rem;
    color: var(--muted, #5e6272);
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

/* Info box */
.incident-info-box {
    text-align: left;
    background: #f0f4fa;
    border-left: 3px solid var(--brand-blue, #1e73be);
    border-radius: 0 6px 6px 0;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    font-size: 0.94rem;
    color: var(--ink);
    line-height: 1.6;
}

.incident-info-box p + p {
    margin-top: 0.4rem;
}

.incident-info-box--success {
    background: #f0faf4;
    border-left-color: #22a05a;
}

.incident-next-steps {
    margin: 0.5rem 0 0 1.1rem;
    padding: 0;
    list-style: disc;
}

.incident-next-steps li {
    margin-bottom: 0.35rem;
}

/* Microsoft login button */
.incident-auth-section {
    margin-bottom: 2rem;
}

.incident-auth-label {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 1.1rem;
}

.ms-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border: 1.5px solid #8c8c8c;
    border-radius: 4px;
    padding: 0.65rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #5e5e5e;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, border-color 0.18s;
    text-decoration: none;
}

.ms-login-btn:hover {
    background: #f3f3f3;
    border-color: #5e5e5e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: #323130;
}

.ms-logo {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
}

.incident-auth-note {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 0.85rem;
}

/* Help section */
.incident-help {
    border-top: 1px solid var(--line);
    padding-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.incident-help-link {
    display: inline-block;
    margin-top: 0.4rem;
    color: var(--brand-blue);
    font-weight: 500;
    text-decoration: underline;
}

/* Verified header (form page) */
.incident-verified-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #f0faf4;
    border: 1px solid #b7e4cb;
    border-radius: 8px;
    padding: 0.85rem 1.1rem;
    margin-bottom: 1.75rem;
}

.incident-verified-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    fill: none;
    stroke: #22a05a;
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.incident-verified-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
}

.incident-verified-email {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.1rem;
}

.incident-verified-info {
    flex: 1;
    min-width: 0;
}

.incident-change-account {
    margin-left: auto;
    font-size: 0.82rem;
    color: var(--brand-blue);
    flex-shrink: 0;
    text-decoration: underline;
}

.incident-verified-meta {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 0.15rem;
}

.incident-verified-meta--empty {
    font-style: italic;
    color: #b0a090;
}

.incident-grupos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

.incident-grupo-tag {
    display: inline-block;
    background: #e8f0fa;
    color: var(--brand-navy);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.15rem 0.65rem;
    letter-spacing: 0.02em;
}

/* Form styles */
.incident-section-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
}

.incident-field {
    margin-bottom: 1.4rem;
}

.incident-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.45rem;
}

.required-mark {
    color: var(--burgundy);
    margin-left: 2px;
}

.incident-input,
select.incident-input,
textarea.incident-input {
    display: block;
    width: 100%;
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    appearance: auto;
}

.incident-input:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.15);
}

.incident-field-error {
    font-size: 0.83rem;
    color: var(--burgundy);
    margin-top: 0.35rem;
}

.incident-error-summary {
    background: #fff5f5;
    border: 1px solid #f5c6c6;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--burgundy);
}

.incident-error-summary ul {
    margin: 0.5rem 0 0 1.1rem;
    padding: 0;
}

/* Form footer */
.incident-form-footer {
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
    margin-top: 0.5rem;
}

.incident-disclaimer {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
    line-height: 1.55;
}

.incident-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--burgundy, #8d001c);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 2rem;
    font-size: 0.97rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
}

.incident-submit-btn:hover {
    background: var(--burgundy-dark, #620012);
    box-shadow: 0 4px 12px rgba(141, 0, 28, 0.25);
    color: #fff;
}

.incident-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--line);
    border-radius: 6px;
    padding: 0.73rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    margin-left: 0.75rem;
    transition: background 0.2s;
}

.incident-secondary-btn:hover {
    background: var(--soft);
    color: var(--ink);
}

/* Confirm / Success / Error icons */
.incident-success-icon-wrap,
.incident-error-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.incident-success-icon-wrap svg {
    width: 72px;
    height: 72px;
    fill: none;
    stroke: #22a05a;
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
    filter: drop-shadow(0 2px 8px rgba(34, 160, 90, 0.2));
}

.incident-error-icon-wrap svg {
    width: 72px;
    height: 72px;
    fill: none;
    stroke: var(--burgundy);
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
    filter: drop-shadow(0 2px 8px rgba(141, 0, 28, 0.18));
}

.incident-confirm-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* Footer minimal */
.site-footer .footer-inner .footer-bottom {
    padding: 1.25rem 0;
}
