/*
 * Create issue experience
 * Scoped to this workflow so shared screens keep their existing layout.
 */
.create-issue-page {
    --issue-surface: #f7fcfb;
    --issue-surface-muted: #eef8f6;
    --issue-border: #cce4df;
    --issue-text: #082f38;
    --issue-muted: #5b7377;
    max-width: 1240px;
    padding-bottom: 48px;
    margin-inline: auto;
}

.create-issue-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    min-height: 190px;
    padding: clamp(26px, 4vw, 44px);
    margin-bottom: 24px;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(139, 217, 199, .25);
    border-radius: 26px;
    background:
        radial-gradient(circle at 88% 6%, rgba(96, 208, 192, .3), transparent 17rem),
        linear-gradient(125deg, #075f64 0%, #063b47 58%, #061c29 100%);
    box-shadow: 0 24px 56px rgba(1, 17, 25, .28);
}

.create-issue-hero::after {
    position: absolute;
    top: -105px;
    right: -70px;
    width: 260px;
    height: 260px;
    pointer-events: none;
    content: "";
    border: 1px solid rgba(139, 217, 199, .22);
    border-radius: 50%;
    box-shadow: 0 0 0 36px rgba(96, 208, 192, .04);
}

.create-issue-hero > * {
    position: relative;
    z-index: 1;
}

.create-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    color: var(--brand-mint);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.brand-pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--brand-aqua);
    box-shadow: 0 0 0 5px rgba(96, 208, 192, .14);
}

.create-issue-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(1.85rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.035em;
}

.create-issue-hero p {
    max-width: 620px;
    margin: 0;
    color: #d6eeeb;
    font-size: clamp(.95rem, 1.5vw, 1.05rem);
}

.create-hero-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 16px;
}

.required-note {
    color: #d6eeeb;
    font-size: .82rem;
    white-space: nowrap;
}

.required-note > span {
    color: #b9fff4;
    font-weight: 800;
}

.create-section .required-mark {
    color: #b42318;
    font-weight: 900;
}

.create-issue-hero .btn-outline-light {
    min-height: 42px;
    padding-inline: 18px;
    border-color: rgba(255, 255, 255, .52);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(6px);
}

.create-issue-hero .btn-outline-light:hover {
    color: var(--brand-ink);
    border-color: #fff;
    background: #fff;
}

.create-section {
    padding: clamp(22px, 3vw, 30px);
    margin-bottom: 24px;
    color: var(--issue-text);
    border: 1px solid var(--issue-border) !important;
    border-radius: 22px;
    background: linear-gradient(145deg, #fff, var(--issue-surface)) !important;
    box-shadow: 0 18px 42px rgba(1, 23, 29, .18) !important;
}

.create-section-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 20px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--issue-border);
}

.create-section-head.compact {
    padding-bottom: 17px;
    margin-bottom: 18px;
}

.create-step {
    display: inline-grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    color: #fff;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .04em;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-dark));
    box-shadow: 0 8px 18px rgba(7, 95, 100, .22);
}

.create-section h2 {
    margin: 0 0 3px;
    color: var(--issue-text);
    font-size: 1.08rem;
    font-weight: 800;
}

.create-section-head p {
    margin: 0;
    color: var(--issue-muted);
    font-size: .86rem;
}

.reporter-summary {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 72px;
    padding: 14px 16px;
    border: 1px solid var(--issue-border);
    border-radius: 16px;
    background: var(--issue-surface-muted);
}

.reporter-avatar {
    display: inline-grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    color: #fff;
    font-weight: 800;
    border-radius: 14px;
    background: var(--brand-teal-dark);
}

.reporter-copy {
    display: grid;
    min-width: 0;
}

.reporter-copy strong,
.reporter-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reporter-copy strong {
    color: var(--issue-text);
}

.reporter-copy span {
    color: var(--issue-muted);
    font-size: .84rem;
}

.locked-label {
    padding: 7px 10px;
    margin-left: auto;
    color: var(--brand-teal-dark);
    font-size: .72rem;
    font-weight: 800;
    white-space: nowrap;
    border: 1px solid #badfd8;
    border-radius: 999px;
    background: #e3f5f1;
}

.create-field {
    margin-bottom: 4px;
}

.create-issue-page .form-label {
    margin-bottom: 8px;
    color: #163f46;
    font-size: .84rem;
    font-weight: 800;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.label-row > span {
    color: var(--issue-muted);
    font-size: .74rem;
    white-space: nowrap;
}

.create-issue-page .form-control,
.create-issue-page .form-select {
    min-height: 48px;
    color: var(--issue-text);
    border: 1px solid #b9d7d2;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 1px 0 rgba(6, 47, 53, .03);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.create-issue-page textarea.form-control {
    min-height: 142px;
    padding-top: 13px;
    resize: vertical;
}

.create-issue-page .form-control::placeholder {
    color: #809396;
}

.create-issue-page .form-control:hover,
.create-issue-page .form-select:hover {
    border-color: #80bdb4;
}

.create-issue-page .form-control:focus,
.create-issue-page .form-select:focus {
    color: var(--issue-text);
    border-color: var(--brand-teal-dark);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(11, 127, 130, .13);
}

.create-issue-page .form-control[aria-invalid="true"],
.create-issue-page .form-select[aria-invalid="true"] {
    border-color: #b42318;
}

.create-section :focus-visible {
    outline-color: var(--brand-teal-dark);
}

.create-issue-hero :focus-visible {
    outline-color: var(--brand-aqua);
}

.create-issue-page .field-help {
    color: var(--issue-muted);
    font-size: .78rem;
}

.create-issue-page .invalid-feedback {
    margin-top: 7px;
    color: #9f1d18;
    font-size: .78rem;
    font-weight: 700;
}

.create-issue-page .form-check {
    color: var(--issue-text);
}

.create-issue-page .form-check-input:checked {
    border-color: var(--brand-teal);
    background-color: var(--brand-teal);
}

.create-switch {
    min-height: 48px;
    padding: 12px 14px 12px 46px;
    border: 1px solid var(--issue-border);
    border-radius: 12px;
    background: var(--issue-surface-muted);
}

.signature-canvas {
    display: block;
    height: 180px;
    border: 1px dashed #85bdb5;
    border-radius: 14px;
    background: #fff;
}

.create-issue-page .signature-canvas + div .btn {
    min-height: 34px;
    color: var(--brand-teal-dark);
    border-color: #80bdb4;
}

.brand-dropzone {
    display: grid;
    place-items: center;
    min-height: 210px;
    padding: 26px 18px;
    color: var(--issue-muted);
    text-align: center;
    border: 2px dashed #9bc9c1;
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 35%, rgba(96, 208, 192, .12), transparent 7rem),
        var(--issue-surface-muted);
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.brand-dropzone:hover,
.brand-dropzone.is-dragging {
    border-color: var(--brand-teal);
    background-color: #e2f4f0;
    transform: translateY(-2px);
}

.brand-dropzone strong {
    margin-top: 12px;
    color: var(--issue-text);
    font-size: .95rem;
}

.brand-dropzone > span:not(.upload-mark) {
    font-size: .82rem;
}

.brand-dropzone small {
    margin-top: 9px;
    color: #71878a;
    font-size: .72rem;
}

.upload-mark {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: #fff;
    border-radius: 17px;
    background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-dark));
    box-shadow: 0 10px 24px rgba(7, 95, 100, .24);
}

.browse-label {
    color: var(--brand-teal-dark);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.attachment-list {
    display: grid;
    gap: 9px;
    margin-top: 18px;
}

.attachment-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--issue-muted);
    font-size: .74rem;
    font-weight: 700;
}

.attachment-list-head button {
    padding: 3px 0;
    color: var(--brand-teal-dark);
    font: inherit;
    border: 0;
    background: transparent;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--issue-border);
    border-radius: 13px;
    background: #fff;
}

.file-mark {
    display: inline-grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    overflow: hidden;
    color: var(--brand-teal-dark);
    font-size: .58rem;
    font-weight: 900;
    border-radius: 10px;
    background: #e2f4f0;
}

.attachment-copy {
    display: grid;
    flex: 1;
    min-width: 0;
}

.attachment-copy strong {
    overflow: hidden;
    color: var(--issue-text);
    font-size: .77rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-copy small {
    color: var(--issue-muted);
    font-size: .68rem;
}

.attachment-remove {
    display: inline-grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    color: #9f1d18;
    font-size: 1.1rem;
    border: 0;
    border-radius: 9px;
    background: #fff0ee;
}

.attachment-remove:hover {
    color: #fff;
    background: #9f1d18;
}

.create-review {
    position: sticky;
    top: 98px;
}

.review-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.review-heading > div {
    display: grid;
    gap: 2px;
}

.review-heading span {
    color: var(--issue-muted);
    font-size: .76rem;
}

.review-heading strong {
    color: var(--issue-text);
    font-size: 1.08rem;
}

.completion-number {
    display: inline-grid;
    place-items: center;
    min-width: 48px;
    height: 38px;
    color: var(--brand-teal-dark) !important;
    font-weight: 800;
    border-radius: 12px;
    background: #e2f4f0;
}

.completion-track {
    height: 8px;
    margin: 17px 0 18px;
    overflow: hidden;
    border-radius: 999px;
    background: #dcebe8;
}

.completion-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-teal), var(--brand-aqua));
    transition: width .25s ease;
}

.required-checklist {
    display: grid;
    gap: 9px;
    padding: 0;
    margin: 0 0 20px;
    list-style: none;
}

.required-checklist li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--issue-muted);
    font-size: .78rem;
}

.required-checklist li > span {
    display: inline-grid;
    place-items: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: transparent;
    font-size: .7rem;
    font-weight: 900;
    border: 1px solid #accbc6;
    border-radius: 50%;
    background: #fff;
}

.required-checklist li.is-complete {
    color: #225f55;
}

.required-checklist li.is-complete > span {
    color: #fff;
    border-color: var(--brand-teal);
    background: var(--brand-teal);
}

.create-review .alert-danger {
    color: #801b16;
    border-color: #f4b8b3;
    border-radius: 12px;
    background: #fff0ee;
}

.create-review .btn-lg {
    min-height: 52px;
    font-size: .95rem;
}

.create-review .btn:disabled {
    color: #d8ece8;
    border-color: #537d7d;
    background: #537d7d;
    box-shadow: none;
    cursor: wait;
    opacity: 1;
}

.submit-help {
    display: block;
    margin-top: 11px;
    color: var(--issue-muted);
    font-size: .72rem;
    text-align: center;
}

.brand-loader,
.brand-load-error {
    display: grid;
    place-items: center;
    gap: 9px;
    min-height: 320px;
    padding: 32px;
    color: #e6f5f2;
    text-align: center;
    border: 1px solid rgba(139, 217, 199, .22);
    border-radius: 24px;
    background: rgba(6, 47, 53, .62);
    box-shadow: var(--shadow-soft);
}

.brand-loader small,
.brand-load-error p {
    margin: 0;
    color: #b9d8d4;
}

.brand-loader-mark {
    width: 44px;
    height: 44px;
    margin-bottom: 6px;
    border: 4px solid rgba(139, 217, 199, .22);
    border-top-color: var(--brand-aqua);
    border-radius: 50%;
    animation: issue-loader-spin .8s linear infinite;
}

@keyframes issue-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1199.98px) {
    .create-review {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .create-issue-page {
        padding-top: 14px;
        padding-bottom: 28px;
    }

    .create-issue-hero {
        align-items: flex-start;
        flex-direction: column;
        min-height: 0;
        padding: 26px 22px;
        border-radius: 20px;
    }

    .create-hero-actions {
        justify-content: space-between;
        width: 100%;
    }

    .create-section {
        padding: 20px 17px;
        border-radius: 18px;
    }

    .locked-label {
        display: none;
    }

    .brand-dropzone {
        min-height: 180px;
    }
}

@media (max-width: 420px) {
    .create-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .create-hero-actions .btn {
        width: 100%;
    }

    .reporter-summary {
        padding-inline: 12px;
    }
}
