/*
 * NaviGAYs Public Submissions — Step 1
 */

.ngps-shell [data-ngps-step-one] {
    position: relative;
}

.ngps-shell .ngps-step-one-card {
    position: relative;
    margin-top: 20px;
    padding: 22px;
    border: 1px solid rgba(83, 28, 59, 0.11);
    border-radius: 22px;
    background:
            linear-gradient(
                    145deg,
                    rgba(255, 255, 255, 0.99),
                    rgba(255, 248, 252, 0.96)
            );
    box-shadow:
            0 15px 42px rgba(68, 4, 39, 0.055);
}

.ngps-shell .ngps-step-one-card:first-of-type {
    margin-top: 0;
}

.ngps-shell .ngps-step-one-card__heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
}

.ngps-shell .ngps-step-one-card__heading > div {
    min-width: 0;
}

.ngps-shell .ngps-step-one-card__heading h3 {
    margin: 0;
    color: var(--ngps-ink, #2b071b);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.ngps-shell .ngps-step-one-card__heading p {
    margin: 5px 0 0;
    color: var(--ngps-muted, #74717a);
    font-size: 13px;
    line-height: 1.65;
}

.ngps-shell .ngps-step-one-card__number {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 35px;
    height: 35px;
    border: 1px solid rgba(221, 28, 108, 0.12);
    border-radius: 12px;
    background: rgba(221, 28, 108, 0.09);
    color: var(--ngps-pink, #dd1c6c);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.ngps-shell .ngps-type-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.ngps-shell .ngps-type-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    min-height: 176px;
    margin: 0;
    padding: 20px;
    overflow: hidden;
    border: 1px solid rgba(72, 26, 52, 0.13);
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
            0 8px 24px rgba(52, 7, 32, 0.04);
    cursor: pointer;
    isolation: isolate;
    transition:
            transform 180ms ease,
            border-color 180ms ease,
            box-shadow 180ms ease,
            background-color 180ms ease;
}

.ngps-shell .ngps-type-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    right: -54px;
    bottom: -62px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background:
            radial-gradient(
                    circle,
                    rgba(221, 28, 108, 0.1),
                    rgba(221, 28, 108, 0)
            );
    opacity: 0;
    transition: opacity 180ms ease;
}

.ngps-shell .ngps-type-card:hover {
    transform: translateY(-2px);
    border-color: rgba(221, 28, 108, 0.27);
    box-shadow:
            0 15px 34px rgba(96, 5, 53, 0.085);
}

.ngps-shell .ngps-type-card:hover::before,
.ngps-shell .ngps-type-card.is-selected::before {
    opacity: 1;
}

.ngps-shell .ngps-type-card:focus-within {
    border-color: var(--ngps-pink, #dd1c6c);
    outline: 3px solid rgba(221, 28, 108, 0.16);
    outline-offset: 3px;
}

.ngps-shell .ngps-type-card.is-selected {
    border-color: var(--ngps-pink, #dd1c6c);
    background:
            linear-gradient(
                    145deg,
                    #ffffff,
                    rgba(255, 237, 246, 0.94)
            );
    box-shadow:
            0 17px 40px rgba(126, 0, 62, 0.12),
            inset 0 0 0 1px rgba(221, 28, 108, 0.07);
}

.ngps-shell .ngps-type-card input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.ngps-shell .ngps-type-card__check {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border: 1px solid rgba(89, 44, 68, 0.16);
    border-radius: 999px;
    background: #ffffff;
    color: transparent;
    transition:
            background-color 180ms ease,
            border-color 180ms ease,
            color 180ms ease,
            transform 180ms ease;
}

.ngps-shell .ngps-type-card__check svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ngps-shell .ngps-type-card.is-selected
.ngps-type-card__check {
    border-color: var(--ngps-pink, #dd1c6c);
    background: var(--ngps-pink, #dd1c6c);
    color: #ffffff;
    transform: scale(1.04);
}

.ngps-shell .ngps-type-card__icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 51px;
    height: 51px;
    margin-top: 1px;
    border: 1px solid rgba(221, 28, 108, 0.11);
    border-radius: 16px;
    background: rgba(221, 28, 108, 0.085);
    color: var(--ngps-pink, #dd1c6c);
    transition:
            background-color 180ms ease,
            color 180ms ease,
            transform 180ms ease;
}

.ngps-shell .ngps-type-card__icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ngps-shell .ngps-type-card.is-selected
.ngps-type-card__icon {
    background: var(--ngps-pink, #dd1c6c);
    color: #ffffff;
    transform: translateY(-1px);
}

.ngps-shell .ngps-type-card__copy {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 2px;
    padding-right: 24px;
    flex-direction: column;
}

.ngps-shell .ngps-type-card__copy strong {
    color: var(--ngps-ink, #2b071b);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.4;
}

.ngps-shell .ngps-type-card__copy small {
    display: block;
    margin-top: 9px;
    color: var(--ngps-muted, #74717a);
    font-size: 12.5px;
    line-height: 1.65;
}

.ngps-shell .ngps-step-one-fields {
    align-items: start;
    margin-top: 20px;
}

.ngps-shell [data-ngps-business-only][hidden] {
    display: none !important;
}

.ngps-shell .ngps-field-help {
    display: block;
    margin-top: 7px;
    color: var(--ngps-muted, #71717a);
    font-size: 12px;
    line-height: 1.55;
}

.ngps-shell .ngps-field em {
    color: var(--ngps-pink, #dd1c6c);
    font-style: normal;
}

.ngps-shell .ngps-field input.is-invalid,
.ngps-shell .ngps-field select.is-invalid,
.ngps-shell .ngps-field textarea.is-invalid,
.ngps-shell .ngps-field input[aria-invalid="true"],
.ngps-shell .ngps-field select[aria-invalid="true"],
.ngps-shell .ngps-field textarea[aria-invalid="true"] {
    border-color: #dc2626 !important;
    box-shadow:
            0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.ngps-shell select:disabled,
.ngps-shell input:disabled,
.ngps-shell textarea:disabled {
    cursor: not-allowed;
    color: #8a8790;
    background-color: #f5f4f6;
    opacity: 1;
}

.ngps-shell .ngps-step-one-status {
    position: relative;
    margin-top: 16px;
    padding: 13px 15px 13px 42px;
    border: 1px solid;
    border-radius: 14px;
    font-size: 12.5px;
    font-weight: 750;
    line-height: 1.55;
}

.ngps-shell .ngps-step-one-status::before {
    position: absolute;
    top: 50%;
    left: 15px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-50%);
}

.ngps-shell .ngps-step-one-status[hidden] {
    display: none !important;
}

.ngps-shell .ngps-step-one-status.is-checking,
.ngps-shell .ngps-step-one-status.is-info {
    border-color: rgba(37, 99, 235, 0.2);
    background: rgba(239, 246, 255, 0.95);
    color: #1d4ed8;
}

.ngps-shell .ngps-step-one-status.is-checking::before {
    content: "";
    border-right-color: transparent;
    animation:
            ngpsStepOneSpin
            700ms
            linear
            infinite;
}

.ngps-shell .ngps-step-one-status.is-info::before {
    content: "i";
}

.ngps-shell .ngps-step-one-status.is-success {
    border-color: rgba(22, 163, 74, 0.2);
    background: rgba(240, 253, 244, 0.95);
    color: #166534;
}

.ngps-shell .ngps-step-one-status.is-success::before {
    content: "✓";
}

.ngps-shell .ngps-step-one-status.is-warning {
    border-color: rgba(217, 119, 6, 0.22);
    background: rgba(255, 251, 235, 0.97);
    color: #92400e;
}

.ngps-shell .ngps-step-one-status.is-warning::before {
    content: "!";
}

.ngps-shell .ngps-step-one-status.is-error {
    border-color: rgba(220, 38, 38, 0.22);
    background: rgba(254, 242, 242, 0.97);
    color: #b91c1c;
}

.ngps-shell .ngps-step-one-status.is-error::before {
    content: "×";
}

@keyframes ngpsStepOneSpin {
    to {
        transform:
                translateY(-50%)
                rotate(360deg);
    }
}

.ngps-shell .ngps-additional-categories
.ngps-inline-heading {
    align-items: flex-start;
    margin-bottom: 0;
}

.ngps-shell .ngps-additional-categories
.ngps-inline-heading > .ngps-step-one-card__heading {
    flex: 1 1 auto;
}

.ngps-shell .ngps-additional-category-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.ngps-shell .ngps-additional-category-list:empty {
    display: none;
}

.ngps-shell .ngps-additional-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr)
        46px;
    align-items: end;
    gap: 11px;
    margin: 0;
    padding: 14px;
    border: 1px solid rgba(78, 30, 57, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
}

.ngps-shell .ngps-additional-row__field {
    display: flex;
    min-width: 0;
    margin: 0;
    flex-direction: column;
    gap: 7px;
}

.ngps-shell .ngps-additional-row__field > span {
    color: var(--ngps-ink, #2b071b);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.ngps-shell .ngps-additional-row select {
    width: 100%;
    min-width: 0;
}

.ngps-shell .ngps-icon-button {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(220, 38, 38, 0.18);
    border-radius: 13px;
    background: rgba(254, 242, 242, 0.9);
    color: #c81e1e;
    font: inherit;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
    transition:
            transform 160ms ease,
            border-color 160ms ease,
            background-color 160ms ease;
}

.ngps-shell .ngps-icon-button:hover {
    transform: translateY(-1px);
    border-color: rgba(220, 38, 38, 0.4);
    background: #fef2f2;
}

.ngps-shell .ngps-icon-button:focus-visible {
    outline: 3px solid rgba(220, 38, 38, 0.14);
    outline-offset: 2px;
}

.ngps-shell .ngps-button.is-checking,
.ngps-shell .ngps-progress__item.is-checking {
    pointer-events: none;
    opacity: 0.7;
}

.ngps-shell .ngps-alert--warning,
.ngps-shell .ngps-form-message.is-warning {
    border-color: rgba(217, 119, 6, 0.22);
    background: rgba(255, 251, 235, 0.96);
    color: #92400e;
}

html.ngps-popup-lock,
body.ngps-popup-lock {
    overflow: hidden !important;
}

.ngps-popup[hidden] {
    display: none !important;
}

.ngps-popup {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    font-family:
            Inter,
            ui-sans-serif,
            system-ui,
            -apple-system,
            BlinkMacSystemFont,
            "Segoe UI",
            sans-serif;
}

.ngps-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(31, 5, 20, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation:
            ngpsPopupBackdropIn
            160ms
            ease
            both;
}

.ngps-popup__dialog {
    position: relative;
    width: min(100%, 440px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
            0 32px 90px rgba(42, 0, 24, 0.28),
            0 8px 24px rgba(42, 0, 24, 0.13);
    animation:
            ngpsPopupDialogIn
            190ms
            ease
            both;
}

.ngps-popup__accent {
    height: 5px;
    background: #2563eb;
}

.ngps-popup--success .ngps-popup__accent {
    background: #16a34a;
}

.ngps-popup--warning .ngps-popup__accent {
    background: #d97706;
}

.ngps-popup--error .ngps-popup__accent {
    background: #dc2626;
}

.ngps-popup__content {
    display: grid;
    justify-items: center;
    padding: 30px 28px 22px;
    text-align: center;
}

.ngps-popup__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 17px;
    border-radius: 19px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}

.ngps-popup--success .ngps-popup__icon {
    background: #f0fdf4;
    color: #16a34a;
}

.ngps-popup--warning .ngps-popup__icon {
    background: #fffbeb;
    color: #d97706;
}

.ngps-popup--error .ngps-popup__icon {
    background: #fef2f2;
    color: #dc2626;
}

.ngps-popup__title {
    margin: 0;
    color: #2b071b;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.ngps-popup__message {
    margin: 10px 0 0;
    color: #6f6670;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-line;
}

.ngps-popup__actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 28px 28px;
}

.ngps-popup__button {
    min-width: 135px;
    min-height: 42px;
    padding: 10px 24px;
    border: 0;
    border-radius: 10px;
    background: #6d183d;
    color: #ffffff;
    box-shadow:
            0 10px 22px rgba(184, 14, 88, 0.22);
    font: inherit;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    transition:
            transform 160ms ease,
            box-shadow 160ms ease;
}

.ngps-popup__button:hover {
    transform: translateY(-1px);
    box-shadow:
            0 13px 26px rgba(184, 14, 88, 0.27);
}

.ngps-popup__button:focus-visible {
    outline: 3px solid rgba(221, 28, 108, 0.25);
    outline-offset: 3px;
}

.ngps-popup__button--secondary {
    border: 1px solid rgba(109, 24, 61, 0.22);
    background: #ffffff;
    color: #6d183d;
    box-shadow: none;
}

.ngps-popup__button--secondary:hover {
    box-shadow: 0 9px 20px rgba(109, 24, 61, 0.12);
}

/* Friendly inline notification surface. It reads like part of the product,
   not a system alert, and stays on one row whenever the viewport allows. */
@media (min-width: 720px) {
    .ngps-popup {
        align-items: start;
        padding-top: clamp(74px, 11vh, 120px);
    }

    .ngps-popup__backdrop {
        background: rgba(17, 24, 39, 0.22);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    .ngps-popup__dialog {
        display: grid;
        width: min(calc(100% - 40px), 1040px);
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        overflow: visible;
        border: 1px solid #e4e7ec;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 18px 50px rgba(31, 37, 51, 0.16);
    }

    .ngps-popup__accent {
        position: absolute;
        top: 13px;
        bottom: 13px;
        left: 0;
        width: 4px;
        height: auto;
        border-radius: 0 4px 4px 0;
    }

    .ngps-popup__content {
        display: grid;
        min-width: 0;
        grid-template-columns: 36px auto minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        padding: 16px 18px 16px 22px;
        text-align: left;
    }

    .ngps-popup__icon {
        width: 36px;
        height: 36px;
        margin: 0;
        border-radius: 11px;
        font-size: 17px;
    }

    .ngps-popup__title {
        font-size: 15px;
        line-height: 1.3;
        white-space: nowrap;
    }

    .ngps-popup__message {
        min-width: 0;
        margin: 0;
        color: #667085;
        font-size: 13px;
        line-height: 1.45;
        white-space: normal;
    }

    .ngps-popup__actions {
        flex-wrap: nowrap;
        padding: 12px 16px 12px 8px;
    }

    .ngps-popup__button {
        min-width: 96px;
        min-height: 40px;
        padding: 9px 16px;
        border-radius: 11px;
        box-shadow: none;
    }
}

@keyframes ngpsPopupBackdropIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes ngpsPopupDialogIn {
    from {
        opacity: 0;
        transform:
                translateY(12px)
                scale(0.97);
    }

    to {
        opacity: 1;
        transform:
                translateY(0)
                scale(1);
    }
}

/* --------------------------------------------------------------------------
 * Step 1 category workflow
 * -------------------------------------------------------------------------- */

.ngps-shell [data-ngps-category-card][hidden],
.ngps-shell [data-ngps-additional-card][hidden],
.ngps-shell [data-ngps-parent-field][hidden],
.ngps-shell [data-ngps-child-field][hidden],
.ngps-shell .ngps-additional-row__field[hidden] {
    display: none !important;
}

.ngps-shell .ngps-additional-categories {
    overflow: hidden;
}

.ngps-shell .ngps-additional-category-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.ngps-shell .ngps-additional-category-list:empty {
    display: none;
}

.ngps-shell .ngps-additional-row {
    animation:
            ngpsAdditionalCategoryIn
            180ms
            ease
            both;
}

.ngps-shell .ngps-additional-row--single {
    grid-template-columns:
        minmax(0, 1fr)
        46px;
}

.ngps-shell .ngps-additional-category-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(83, 28, 59, 0.09);
}

.ngps-shell .ngps-category-limit {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.ngps-shell .ngps-category-limit strong {
    color: var(--ngps-ink, #2b071b);
    font-size: 12.5px;
    font-weight: 900;
    line-height: 1.4;
}

.ngps-shell .ngps-category-limit span {
    color: var(--ngps-muted, #71717a);
    font-size: 12px;
    line-height: 1.55;
}

.ngps-shell .ngps-category-limit a {
    color: var(--ngps-pink, #dd1c6c);
    font-weight: 850;
    text-decoration: none;
}

.ngps-shell .ngps-category-limit a:hover {
    text-decoration: underline;
}

.ngps-shell [data-ngps-add-category] {
    flex: 0 0 auto;
    white-space: nowrap;
}

.ngps-shell [data-ngps-add-category]:disabled {
    cursor: not-allowed;
    transform: none;
    opacity: 0.58;
}

@keyframes ngpsAdditionalCategoryIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 760px) {
    .ngps-shell .ngps-additional-row,
    .ngps-shell .ngps-additional-row--single {
        grid-template-columns:
            minmax(0, 1fr)
            44px;
    }

    .ngps-shell .ngps-additional-row:not(
        .ngps-additional-row--single
    ) .ngps-additional-row__field {
        grid-column: 1 / -1;
    }

    .ngps-shell .ngps-additional-row:not(
        .ngps-additional-row--single
    ) .ngps-icon-button {
        grid-column: 2;
    }

    .ngps-shell .ngps-additional-category-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ngps-shell [data-ngps-add-category] {
        width: 100%;
    }
}

/* Final popup layout: a compact modern card. The title and message occupy
   their own aligned rows, so copy remains naturally one or two lines without
   forcing the entire notification into a single horizontal strip. */
.ngps-popup {
    place-items: center!important;
    padding: 18px!important;
}
.ngps-popup__backdrop {
    background: rgba(17, 24, 39, .32)!important;
    backdrop-filter: blur(3px)!important;
    -webkit-backdrop-filter: blur(3px)!important;
}
.ngps-popup__dialog {
    display: block!important;
    width: min(100%, 680px)!important;
    overflow: hidden!important;
    border: 1px solid #e4e7ec!important;
    border-radius: 22px!important;
    background: #fff!important;
    box-shadow: 0 24px 70px rgba(31, 37, 51, .2)!important;
}
.ngps-popup__accent {
    position: static!important;
    width: 100%!important;
    height: 4px!important;
    border-radius: 0!important;
}
.ngps-popup__content {
    display: grid!important;
    grid-template-columns: 46px minmax(0, 1fr)!important;
    grid-template-rows: auto auto!important;
    align-items: center!important;
    justify-items: start!important;
    gap: 5px 14px!important;
    padding: 24px 26px 17px!important;
    text-align: left!important;
}
.ngps-popup__icon {
    grid-column: 1!important;
    grid-row: 1 / 3!important;
    width: 46px!important;
    height: 46px!important;
    margin: 0!important;
    border-radius: 14px!important;
    font-size: 21px!important;
}
.ngps-popup__title {
    grid-column: 2!important;
    grid-row: 1!important;
    margin: 0!important;
    font-size: 18px!important;
    line-height: 1.3!important;
    white-space: normal!important;
}
.ngps-popup__message {
    grid-column: 2!important;
    grid-row: 2!important;
    width: 100%!important;
    margin: 0!important;
    color: #667085!important;
    font-size: 13.5px!important;
    line-height: 1.55!important;
    white-space: normal!important;
    text-wrap: pretty;
}
.ngps-popup__actions {
    justify-content: flex-end!important;
    flex-wrap: wrap!important;
    gap: 9px!important;
    padding: 0 26px 22px!important;
}
.ngps-popup__button {
    min-width: 108px!important;
    min-height: 42px!important;
    padding: 9px 18px!important;
    border-radius: 12px!important;
    box-shadow: none!important;
}
@media (max-width: 520px) {
    .ngps-popup {padding: 12px!important}
    .ngps-popup__dialog {border-radius: 18px!important}
    .ngps-popup__content {
        grid-template-columns: 40px minmax(0, 1fr)!important;
        gap: 5px 11px!important;
        padding: 20px 18px 15px!important;
    }
    .ngps-popup__icon {
        width: 40px!important;
        height: 40px!important;
        border-radius: 12px!important;
        font-size: 18px!important;
    }
    .ngps-popup__title {font-size: 16px!important}
    .ngps-popup__message {font-size: 12.5px!important}
    .ngps-popup__actions {padding: 0 18px 18px!important}
    .ngps-popup__button {flex: 1 1 120px!important}
}
