:root {
    --np-ink: #123f31;
    --np-ink-soft: #506157;
    --np-fresh: #83ca4d;
    --np-lime: #c5ee19;
    --np-lime-soft: #f4f8dc;
    --np-cream: #fffefa;
    --np-line: #e1e5dc;
    --np-muted: #eef1eb;
    --np-danger: #a13b34;
}

html.np-modal-active,
html.np-modal-active body {
    overflow: hidden;
}

.np-modal-bg,
.np-modal-bg *,
.np-modal-bg *::before,
.np-modal-bg *::after {
    box-sizing: border-box;
}

.np-modal-bg {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(14px, 4vw, 40px);
    background: rgba(28, 43, 38, 0.48);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 180ms ease-out;
}

.np-modal-bg.np-open {
    opacity: 1;
}

.np-modal {
    position: relative;
    width: min(560px, 100%);
    max-height: 92vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 30px;
    color: var(--np-ink);
    background: var(--np-cream);
    border-radius: 34px;
    box-shadow: 0 26px 80px rgba(10, 37, 28, 0.22);
    font-family: "Avenir Next", Avenir, "Century Gothic", "Trebuchet MS", sans-serif;
    transform: scale(0.96) translateY(8px);
    animation: np-modal-in 260ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    scrollbar-color: #dce2d8 transparent;
    scrollbar-width: thin;
}

.np-modal:focus {
    outline: 0;
}

@keyframes np-modal-in {
    to {
        transform: scale(1) translateY(0);
    }
}

.np-close {
    position: absolute;
    top: 30px;
    right: 30px;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    color: var(--np-ink);
    background: var(--np-muted);
    border: 0;
    border-radius: 50%;
    font: 400 30px/1 Arial, sans-serif;
    cursor: pointer;
    transition: background 160ms ease-out, transform 160ms ease-out;
}

.np-close:hover {
    background: #e4e9e1;
    transform: rotate(3deg);
}

.np-close:focus-visible,
.np-btn:focus-visible,
.np-form input:focus-visible,
.np-form select:focus-visible,
.np-form textarea:focus-visible {
    outline: 3px solid rgba(131, 202, 77, 0.38);
    outline-offset: 2px;
}

.np-modal-head {
    padding-right: 58px;
    margin-bottom: 24px;
}

.np-modal-head p {
    margin: 0 0 5px;
    color: var(--np-ink);
    font-size: 18px;
    line-height: 1.2;
}

.np-modal-head h2 {
    margin: 0;
    color: var(--np-ink);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.np-tld,
.np-free {
    color: var(--np-fresh);
}

.np-form {
    display: grid;
    gap: 20px;
}

.np-summary {
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--np-line);
    border-radius: 18px;
}

.np-summary > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 5px 0;
    color: var(--np-ink-soft);
    font-size: 16px;
}

.np-summary strong {
    color: var(--np-ink);
    font-weight: 700;
    text-align: right;
}

.np-summary strong.np-free {
    color: var(--np-fresh);
}

.np-summary .np-summary-total {
    padding-top: 15px;
    margin-top: 13px;
    color: var(--np-ink);
    border-top: 1px dashed var(--np-line);
    font-weight: 700;
}

.np-summary-total strong {
    font-size: 24px;
    letter-spacing: -0.04em;
}

.np-summary-mini {
    padding-block: 16px;
}

.np-summary-mini > div {
    padding: 0;
    font-weight: 600;
}

.np-summary-mini strong {
    font-size: 22px;
}

.np-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
}

.np-field {
    display: grid;
    gap: 7px;
}

.np-field label,
.np-payment legend {
    padding: 0;
    color: var(--np-ink-soft);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
}

.np-field label span {
    color: #91a097;
    font-size: 0.88em;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.np-form input,
.np-form select,
.np-form textarea {
    width: 100%;
    min-height: 49px;
    margin: 0;
    padding: 11px 15px;
    color: var(--np-ink);
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--np-line);
    border-radius: 14px;
    box-shadow: none;
    font: inherit;
    font-size: 16px;
    line-height: 1.3;
    transition: border-color 160ms ease-out, box-shadow 160ms ease-out;
}

.np-form input::placeholder,
.np-form textarea::placeholder {
    color: #7c7e7e;
    opacity: 1;
}

.np-form input:focus,
.np-form select:focus,
.np-form textarea:focus {
    border-color: var(--np-fresh);
    box-shadow: 0 0 0 4px rgba(131, 202, 77, 0.12);
}

.np-form textarea {
    min-height: 86px;
    resize: vertical;
}

.np-amount-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 10px;
}

.np-payment {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

.np-payment legend {
    margin-bottom: 12px;
}

.np-pay-methods {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.np-pay-option {
    position: relative;
    cursor: pointer;
}

.np-pay-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    opacity: 0;
}

.np-pay-face {
    display: grid;
    min-height: 72px;
    padding: 10px 6px;
    place-items: center;
    align-content: center;
    gap: 6px;
    color: var(--np-ink-soft);
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--np-line);
    border-radius: 14px;
    transition: border-color 160ms ease-out, background 160ms ease-out, transform 160ms ease-out;
}

.np-pay-face svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.np-pay-face strong {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.np-paypal {
    font-size: 22px;
    font-style: italic;
    font-weight: 800;
}

.np-pay-option input:checked + .np-pay-face {
    color: var(--np-ink);
    background: var(--np-lime-soft);
    border-color: var(--np-ink);
    transform: translateY(-2px);
}

.np-pay-option input:focus-visible + .np-pay-face {
    outline: 3px solid rgba(131, 202, 77, 0.38);
    outline-offset: 3px;
}

.np-payment-note {
    padding: 10px 12px;
    margin-top: 8px;
    color: var(--np-ink-soft);
    background: var(--np-muted);
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.5;
}

.np-actions {
    display: grid;
    grid-template-columns: minmax(120px, 0.7fr) minmax(180px, 1fr);
    gap: 10px;
}

.np-btn {
    min-height: 50px;
    padding: 12px 20px;
    border: 1px solid var(--np-ink);
    border-radius: 999px;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: color 160ms ease-out, background 160ms ease-out, transform 160ms ease-out;
}

.np-btn:hover {
    transform: translateY(-2px);
}

.np-btn:disabled {
    cursor: wait;
    opacity: 0.62;
    transform: none;
}

.np-btn-primary {
    color: var(--np-cream);
    background: var(--np-ink);
}

.np-btn-lime {
    color: var(--np-ink);
    background: var(--np-lime);
    border-color: var(--np-lime);
}

.np-btn-lime:hover {
    background: var(--np-fresh);
    border-color: var(--np-fresh);
}

.np-btn-primary:hover {
    color: var(--np-ink);
    background: var(--np-fresh);
}

.np-btn-ghost {
    color: var(--np-ink);
    background: transparent;
}

.np-btn-ghost:hover {
    background: var(--np-muted);
}

.np-trust {
    margin: -7px 0 0;
    color: #7b887f;
    font-size: 12px;
    text-align: center;
}

.np-form-error {
    min-height: 0;
    margin-top: -12px;
    color: var(--np-danger);
    font-size: 16px;
    font-weight: 600;
}

.np-form-error:empty {
    display: none;
}

.np-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    opacity: 0 !important;
}

.np-success {
    display: grid;
    min-height: 320px;
    place-items: center;
    align-content: center;
    gap: 16px;
    text-align: center;
}

.np-success .np-ok {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: var(--np-ink);
    background: var(--np-fresh);
    border-radius: 50%;
    font-size: 30px;
    font-weight: 800;
}

.np-success h2 {
    margin: 0;
    font-size: 30px;
}

.np-success > p {
    max-width: 620px;
    margin: 0;
    color: var(--np-ink-soft);
    font-size: 16px;
}

.np-success .np-summary {
    width: min(100%, 700px);
}

.np-success .np-btn {
    width: min(100%, 360px);
}

.np-feedback-band,
.np-feedback-band *,
.np-feedback-band *::before,
.np-feedback-band *::after {
    box-sizing: border-box;
}

.np-feedback-band {
    width: 100%;
    padding: clamp(26px, 4vw, 48px) clamp(18px, 4vw, 48px);
    font-family: "Avenir Next", Avenir, "Century Gothic", "Trebuchet MS", sans-serif;
}

.np-feedback-card {
    position: relative;
    isolation: isolate;
    display: flex;
    width: min(100%, 1180px);
    min-height: 152px;
    padding: 32px 44px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
    overflow: hidden;
    color: var(--np-cream);
    background: var(--np-ink);
    border-radius: 34px;
}

.np-feedback-card::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: repeating-linear-gradient(
        126deg,
        transparent 0 27px,
        rgba(197, 238, 25, 0.09) 28px 31px,
        transparent 32px 58px
    );
    content: "";
}

.np-feedback-copy {
    flex: 1;
    min-width: 230px;
}

.np-feedback-quote {
    margin: 0 0 6px;
    color: var(--np-cream);
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.np-feedback-quote span,
.np-feedback-quote strong {
    color: var(--np-lime);
}

.np-feedback-quote span {
    margin-right: 2px;
    font-size: 1.25em;
}

.np-feedback-copy > p:last-child {
    max-width: 54ch;
    margin: 0;
    color: #b9c9be;
    font-size: 15px;
    line-height: 1.45;
}

.np-feedback-open {
    min-width: 245px;
    min-height: 58px;
    padding: 14px 28px;
    color: var(--np-ink);
    background: var(--np-lime);
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background 160ms ease-out, transform 160ms ease-out;
}

.np-feedback-open:hover {
    background: var(--np-fresh);
    transform: translateY(-2px);
}

.np-feedback-open:focus-visible,
.np-feedback-leaf:focus-visible {
    outline: 3px solid rgba(197, 238, 25, 0.5);
    outline-offset: 3px;
}

.np-feedback-modal .np-modal-head {
    margin-bottom: 22px;
}

.np-rating-field {
    gap: 12px;
}

.np-feedback-rating {
    display: flex;
    gap: 8px;
}

.np-feedback-leaf {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 8px;
    place-items: center;
    color: #c9d0c5;
    background: transparent;
    border: 1px solid var(--np-line);
    border-radius: 14px;
    cursor: pointer;
    transition: color 150ms ease-out, border-color 150ms ease-out, background 150ms ease-out;
}

.np-feedback-leaf svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.np-feedback-leaf:hover {
    color: var(--np-fresh);
    border-color: var(--np-fresh);
}

.np-feedback-leaf.np-on {
    color: var(--np-ink);
    background: var(--np-lime);
    border-color: var(--np-lime);
}

.np-feedback-trust {
    color: var(--np-ink-soft);
    font-weight: 600;
}

.np-feedback-trust span {
    color: var(--np-fresh);
}

@media (max-width: 720px) {
    .np-modal-bg {
        align-items: end;
        padding: 0;
    }

    .np-modal {
        width: 100%;
        max-height: 94vh;
        padding: 24px 18px 20px;
        border-radius: 28px 28px 0 0;
    }

    .np-close {
        top: 20px;
        right: 18px;
        width: 42px;
        height: 42px;
        font-size: 28px;
    }

    .np-modal-head {
        padding-right: 60px;
        margin-bottom: 22px;
    }

    .np-form {
        gap: 18px;
    }

    .np-summary {
        padding: 16px;
        border-radius: 16px;
    }

    .np-summary > div {
        font-size: 16px;
    }

    .np-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .np-form input,
    .np-form select,
    .np-form textarea {
        min-height: 50px;
        padding: 11px 14px;
        border-radius: 14px;
        font-size: 16px;
    }

    .np-amount-row {
        grid-template-columns: minmax(0, 1fr) 112px;
        gap: 10px;
    }

    .np-pay-methods {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .np-pay-face {
        min-height: 72px;
        border-radius: 14px;
    }

    .np-actions {
        grid-template-columns: 1fr;
    }

    .np-actions .np-btn-primary {
        grid-row: 1;
    }

    .np-feedback-card {
        min-height: 0;
        padding: 26px 24px;
        align-items: stretch;
        border-radius: 26px;
    }

    .np-feedback-open {
        width: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .np-modal-bg,
    .np-modal,
    .np-close,
    .np-btn,
    .np-pay-face {
        animation: none;
        transition: none;
    }
}
