.pfp-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(49, 49, 49, 0.62);
    box-sizing: border-box;
}

.pfp-overlay[hidden] {
    display: none !important;
}

.pfp-modal {
    position: relative;
    width: min(100%, 540px);
    border-radius: 18px;
    background: #fff;
    color: #313131;
    box-shadow: 0 24px 70px rgba(49, 49, 49, 0.25);
    animation: pfpFadeUp 0.22s ease-out;
}

.pfp-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 42px 40px 40px;
    font-family: inherit;
}

.pfp-title {
    margin: 0 42px 14px 0;
    color: #313131;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
}

.pfp-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #313131;
    font-size: 32px;
    line-height: 34px;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.pfp-close:hover,
.pfp-close:focus {
    background: rgba(255, 123, 6, 0.12);
    color: #ff7b06;
    outline: none;
}

.pfp-label {
    color: #313131;
    font-size: 17px;
    font-weight: 600;
}

.pfp-input {
    width: 100%;
    min-height: 68px;
    border: 1px solid rgba(49, 49, 49, 0.18);
    border-radius: 14px;
    padding: 0 18px;
    background: #fff;
    color: #313131;
    font-size: 20px;
    line-height: 1.2;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pfp-input::placeholder {
    color: rgba(49, 49, 49, 0.45);
}

.pfp-input:focus {
    border-color: #ff7b06;
    box-shadow: 0 0 0 3px rgba(255, 123, 6, 0.14);
    outline: none;
}

.pfp-consent {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 6px 0 8px;
    color: #313131;
    font-size: 16px;
    line-height: 1.4;
    cursor: pointer;
}

.pfp-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.pfp-checkbox-control {
    position: relative;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border: 2px solid #ff7b06;
    border-radius: 5px;
    background: #fff;
    box-sizing: border-box;
    flex: 0 0 24px;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pfp-checkbox-control::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    opacity: 0;
}

.pfp-checkbox:checked + .pfp-checkbox-control {
    border-color: #ff7b06;
    background: #ff7b06;
}

.pfp-checkbox:checked + .pfp-checkbox-control::after {
    opacity: 1;
}

.pfp-checkbox:focus-visible + .pfp-checkbox-control {
    box-shadow: 0 0 0 3px rgba(255, 123, 6, 0.2);
}

.pfp-consent a,
.pfp-consent a:visited {
    color: #ff7b06;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pfp-submit {
    min-height: 70px;
    border: 0;
    border-radius: 14px;
    background: #ff7b06;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.pfp-submit:hover,
.pfp-submit:focus {
    box-shadow: 0 10px 24px rgba(255, 123, 6, 0.28);
    transform: translateY(-1px);
    outline: none;
}

.pfp-submit:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
    box-shadow: none;
}

.pfp-message {
    display: none;
    color: #313131;
    font-size: 16px;
    line-height: 1.4;
}

.pfp-message.is-visible {
    display: block;
}

.pfp-message.is-error {
    color: #b00020;
}

.pfp-message.is-success {
    color: #2e7d32;
}

.pfp-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@keyframes pfpFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .pfp-form {
        padding: 34px 24px 28px;
    }

    .pfp-title {
        font-size: 30px;
    }
}
