.sgnl-signup-box {
    container-type: inline-size;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
}

.sgnl-signup-box__inner {
    background:
        radial-gradient(circle at top right, rgba(199, 127, 164, 0.14), transparent 28%),
        linear-gradient(145deg, #fff8fb, #fffaf5);
    border: 1px solid #efdce4;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(111, 74, 92, 0.12);
    padding: clamp(22px, 3vw, 34px);
    position: relative;
    overflow: hidden;
}

.sgnl-signup-box__inner::after {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
    border-radius: 999px;
    content: "";
    height: 180px;
    position: absolute;
    right: -40px;
    top: -80px;
    width: 180px;
    z-index: 0;
}

.sgnl-signup-box__header,
.sgnl-signup-form,
.sgnl-signup-box__notice {
    position: relative;
    z-index: 1;
}

.sgnl-signup-box h3 {
    color: #2f2130;
    font-size: clamp(28px, 4vw, 34px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 10px;
    text-wrap: balance;
}

.sgnl-signup-box__description,
.sgnl-signup-box__privacy,
.sgnl-signup-box__notice {
    color: #6d5967;
    margin: 0;
    overflow-wrap: anywhere;
}

.sgnl-signup-box__header {
    margin-bottom: 22px;
}

.sgnl-signup-box__notice {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #ead5df;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(113, 74, 93, 0.08);
    margin-bottom: 18px;
    padding: 14px 16px;
}

.sgnl-signup-form {
    container-type: inline-size;
    display: grid;
    gap: 20px;
}

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

.sgnl-signup-form__field {
    display: block;
}

.sgnl-signup-form input:not([type="checkbox"]) {
    background: #ffffff;
    box-sizing: border-box;
    border: 1px solid #dfc9d4;
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    color: #3c2b39;
    font-size: 16px;
    min-height: 58px;
    padding: 0 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    width: 100%;
}

.sgnl-signup-form input:not([type="checkbox"]):focus {
    border-color: #b86f92;
    box-shadow: 0 0 0 4px rgba(184, 111, 146, 0.15);
    outline: none;
    transform: translateY(-1px);
}

.sgnl-signup-form__section-title {
    color: #342533;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

.sgnl-signup-form__choices {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.sgnl-choice-card,
.sgnl-consent-card {
    display: block;
}

.sgnl-choice-card__input,
.sgnl-consent-card__input {
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
}

.sgnl-choice-card__box,
.sgnl-consent-card__box {
    background: rgba(255, 255, 255, 0.82);
    box-sizing: border-box;
    border: 1px solid #e4d2db;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(111, 74, 92, 0.06);
    cursor: pointer;
    display: flex;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.sgnl-choice-card__box {
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 16px 18px;
}

.sgnl-consent-card__box {
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
}

.sgnl-choice-card__check,
.sgnl-consent-card__check {
    background: #ffffff;
    border: 1.5px solid #cba8ba;
    border-radius: 12px;
    display: inline-flex;
    flex: 0 0 24px;
    height: 24px;
    justify-content: center;
    margin-top: 1px;
    position: relative;
    transition: all 0.2s ease;
    width: 24px;
}

.sgnl-choice-card__check::after,
.sgnl-consent-card__check::after {
    border-bottom: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
    content: "";
    height: 10px;
    left: 8px;
    opacity: 0;
    position: absolute;
    top: 4px;
    transform: rotate(45deg) scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease;
    width: 5px;
}

.sgnl-choice-card__label,
.sgnl-consent-card__text {
    color: #392935;
    display: block;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.sgnl-choice-card__label {
    font-weight: 600;
}

.sgnl-consent-card__text {
    color: #5f4c59;
}

.sgnl-choice-card__input:checked + .sgnl-choice-card__box,
.sgnl-consent-card__input:checked + .sgnl-consent-card__box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 236, 243, 0.98));
    border-color: #bc7898;
    box-shadow: 0 18px 32px rgba(154, 87, 120, 0.12);
}

.sgnl-choice-card__input:checked + .sgnl-choice-card__box .sgnl-choice-card__check,
.sgnl-consent-card__input:checked + .sgnl-consent-card__box .sgnl-consent-card__check {
    background: #a25d7f;
    border-color: #a25d7f;
}

.sgnl-choice-card__input:checked + .sgnl-choice-card__box .sgnl-choice-card__check::after,
.sgnl-consent-card__input:checked + .sgnl-consent-card__box .sgnl-consent-card__check::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.sgnl-choice-card__box:hover,
.sgnl-consent-card__box:hover,
.sgnl-choice-card__input:focus + .sgnl-choice-card__box,
.sgnl-consent-card__input:focus + .sgnl-consent-card__box {
    border-color: #c88aa8;
    box-shadow: 0 16px 30px rgba(154, 87, 120, 0.12);
    transform: translateY(-1px);
}

.sgnl-signup-form button {
    align-items: center;
    background: linear-gradient(135deg, #a65f82, #8f4f70);
    border: 0;
    box-sizing: border-box;
    border-radius: 999px;
    box-shadow: 0 14px 28px rgba(154, 87, 120, 0.22);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 16px;
    font-weight: 600;
    justify-content: center;
    min-height: 56px;
    min-width: 180px;
    padding: 0 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sgnl-signup-form button:hover {
    background: linear-gradient(135deg, #b86c91, #925372);
    box-shadow: 0 18px 34px rgba(122, 73, 101, 0.24);
    transform: translateY(-2px);
}

.sgnl-signup-form__footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
}

.sgnl-signup-box__privacy {
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .sgnl-signup-box__inner::after {
        height: 140px;
        right: -50px;
        top: -70px;
        width: 140px;
    }

    .sgnl-signup-form {
        gap: 18px;
    }

    .sgnl-signup-form__choices {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sgnl-choice-card__box,
    .sgnl-consent-card__box {
        padding: 15px 16px;
    }
}

@media (max-width: 767px) {
    .sgnl-signup-box {
        border-radius: 0;
    }

    .sgnl-signup-form__grid {
        grid-template-columns: 1fr;
    }

    .sgnl-signup-form__choices {
        grid-template-columns: 1fr;
    }

    .sgnl-signup-box__inner {
        border-radius: 22px;
        padding: 22px;
    }

    .sgnl-signup-box__inner::after {
        height: 110px;
        right: -36px;
        top: -52px;
        width: 110px;
    }

    .sgnl-signup-box h3 {
        font-size: 28px;
    }

    .sgnl-signup-form {
        gap: 16px;
    }

    .sgnl-signup-form input:not([type="checkbox"]) {
        font-size: 16px;
        min-height: 54px;
        padding: 0 16px;
    }

    .sgnl-choice-card__box {
        min-height: 60px;
        padding: 14px 15px;
    }

    .sgnl-consent-card__box {
        padding: 14px 15px;
    }

    .sgnl-signup-form__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .sgnl-signup-form button {
        width: 100%;
    }

    .sgnl-signup-box__privacy {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .sgnl-signup-box__inner {
        border-radius: 18px;
        padding: 18px;
    }

    .sgnl-signup-box h3 {
        font-size: 24px;
    }

    .sgnl-signup-box__description,
    .sgnl-choice-card__label,
    .sgnl-consent-card__text {
        font-size: 14px;
        line-height: 1.45;
    }

    .sgnl-signup-form__section-title {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .sgnl-choice-card__box,
    .sgnl-consent-card__box {
        border-radius: 16px;
    }

    .sgnl-choice-card__check,
    .sgnl-consent-card__check {
        border-radius: 10px;
        flex-basis: 22px;
        height: 22px;
        width: 22px;
    }

    .sgnl-choice-card__check::after,
    .sgnl-consent-card__check::after {
        height: 9px;
        left: 7px;
        top: 3px;
    }

    .sgnl-signup-form button {
        min-height: 52px;
        min-width: 0;
        padding: 0 20px;
    }
}
