.sopdet-content-lock-wrap {
    text-align: center;
    margin: 2em auto 4em;
    width: 90%;
    max-width: 90%;
}

.sopdet-lock-benefits {
    margin: 0 auto 1.5rem;
}

.sopdet-lock-benefits p {
    margin-top: 0;
    margin-bottom: 0;
    font-family: 'Montserrat', sans-serif;
}

.sopdet-locked-wrapper {
    padding-top: 40px;
}

.sopdet-locked-wrapper p {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1em;
}

.sopdet-locked-wrapper .et_pb_fullwidth_header,
.sopdet-locked-wrapper .et_pb_fullwidth_header * {
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 0 !important;
}

.sopdet-locked-wrapper h1 {
    margin-top: 2em;
}

.sopdet-unlock-btn {
    background: transparent !important;
    border: 2px solid #bc903c !important;
    border-radius: 30px !important;
    color: #bc903c !important;
    font-family: 'PT Serif', serif !important;
    font-size: 1.5em !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 15px 40px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

.sopdet-unlock-btn:hover {
    border-color: #dfbe81 !important;
    color: #dfbe81 !important;
    background: transparent !important;
}

.sopdet-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sopdet-modal.active {
    display: flex !important;
    animation: sopdetModalFadeIn 0.4s ease forwards;
}

@keyframes sopdetModalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body.app-experience.sopdet-modal-open #main-content {
    position: relative;
}

body.app-experience.sopdet-modal-open #main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://sopdetties.org/wp-content/uploads/2025/11/SOPDETTIES-emptyspacesm.webp');
    background-size: 500px;
    background-position: center;
    background-repeat: repeat;
    opacity: 0 !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 11;
    pointer-events: none;
    animation: sopdetBlurFadeIn 0.4s ease forwards;
}


@keyframes sopdetBlurFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
        -webkit-backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
}

body.sopdet-modal-open #sopdetLoginModal,
body.sopdet-modal-open #sopdetLoginModal * {
    filter: none !important;
    -webkit-filter: none !important;
}

body.sopdet-modal-open {
    position: fixed;
    width: 100%;
}

.sopdet-modal-content {
    background: rgba(254, 254, 254, 0.95);
    border-radius: 30px;
    padding: 2rem 1.5rem;
    max-width: 500px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: block;
}

.sopdet-modal-body {
    margin-top: 10px;
    width: 100%;
}

#sopdetLoginModal .impu-form-links {
    margin-top: 1.5em !important;
    text-align: center !important;
}

#sopdetLoginModal .impu-form-links a {
    color: #666 !important;
}

.sopdet-modal-body input,
.sopdet-modal-body textarea,
.sopdet-modal-body select {
    -webkit-user-select: text !important;
    user-select: text !important;
    touch-action: manipulation !important;
}

.sopdet-modal-close {
    color: #aaa;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    transition: color 0.3s ease;
    z-index: 10;
    background: none;
    border: none;
    padding: 0;
    display: none;
}

.sopdet-modal-close:hover,
.sopdet-modal-close:focus {
    color: #000;
}

@media (max-width: 768px) {
    .sopdet-modal-content {
        width: 100%;
        max-width: 500px;
        padding: 2rem 1.5rem;
    }
    
    .sopdet-unlock-btn {
        font-size: 1.2em !important;
        padding: 12px 30px !important;
    }
}

@media (max-width: 480px) {
    .sopdet-modal-content {
        padding: 1.5rem 1rem;
    }
    
    .sopdet-modal-close {
        font-size: 28px;
        right: 15px;
        top: 10px;
    }
}

@supports (-webkit-touch-callout: none) {
    .sopdet-modal {
        -webkit-overflow-scrolling: touch !important;
    }
    
    .sopdet-modal-content {
        max-height: none !important;
    }
    
    .sopdet-modal-body input[type="text"],
    .sopdet-modal-body input[type="email"],
    .sopdet-modal-body input[type="password"],
    .sopdet-modal-body input[type="tel"],
    .sopdet-modal-body textarea {
        font-size: 16px !important;
    }
}
