.gjpopup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.gjpopup[hidden] {
    display: none;
}

.gjpopup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.gjpopup__dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 10px;
    padding: 32px 28px 28px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    outline: none;
}

.gjpopup__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: #444444;
    cursor: pointer;
}

.gjpopup__close:hover {
    color: #000000;
}

.gjpopup__title {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.25;
}

.gjpopup__intro {
    margin-bottom: 16px;
}

.gjpopup__intro p:last-child {
    margin-bottom: 0;
}

.gjpopup__question {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

.gjpopup__question legend {
    font-weight: 600;
    margin-bottom: 8px;
}

.gjpopup__choice {
    display: block;
    margin-bottom: 6px;
    cursor: pointer;
}

.gjpopup__choice input {
    margin-right: 8px;
}

.gjpopup__field {
    margin-bottom: 12px;
}

.gjpopup__label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.gjpopup__field input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c9c9c9;
    border-radius: 6px;
    font-size: 16px;
}

.gjpopup__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.gjpopup__consent {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 14px;
}

.gjpopup__error {
    margin: 0 0 12px;
    color: #a11212;
    font-weight: 600;
}

.gjpopup__submit {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    border: 0;
    border-radius: 6px;
    background: #2f6b3c;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.gjpopup__submit[disabled] {
    opacity: 0.6;
    cursor: default;
}

.gjpopup__success {
    text-align: center;
}

.gjpopup__success h3 {
    margin-top: 0;
}

.gjpopup__cta {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    border-radius: 6px;
    background: #2f6b3c;
    color: #ffffff;
    text-decoration: none;
}

body.gjpopup-open {
    overflow: hidden;
}

.gjpopup-inline {
    max-width: 420px;
}

.gjpopup-inline .gjpopup__submit {
    width: auto;
    min-width: 160px;
}

.gjpopup-inline .gjpopup__success {
    text-align: left;
}

@media (max-width: 480px) {
    .gjpopup__dialog {
        padding: 28px 18px 20px;
    }
}
