/* ============================================
   MODAL
   ============================================ */
.pp-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 24px;
}
 
.pp-modal-overlay.active {
    display: flex;
}
 
.pp-modal {
    background: #111111;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 48px 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: ppModalIn 0.3s ease;
}
 
@keyframes ppModalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
 
.pp-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
    font-family: 'Montserrat', sans-serif !important;
    line-height: 1;
}
 
.pp-modal-close:hover {
    color: #E5A700;
}
 
.pp-modal h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #FFB803 0%, #F59921 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
 
.pp-modal-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-bottom: 28px;
    line-height: 1.5;
}
 
.pp-form-group {
    margin-bottom: 18px;
}
 
.pp-form-group label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
    font-weight: 500;
}
 
.pp-form-group input {
    width: 100%;
    padding: 12px 16px;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px;
    transition: border-color 0.3s ease;
    outline: none;
    box-sizing: border-box;
}
 
.pp-form-group input:focus {
    border-color: #E5A700;
}
 
.pp-form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
 
.pp-form-submit {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, #FFB803 0%, #F59921 100%);
    color: #000000;
    transition: all 0.3s ease;
}
 
.pp-form-submit:hover {
    background: linear-gradient(135deg, #F59921 0%, #FFB803 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(245, 153, 33, 0.3);
}

.pp-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
 
.pp-form-success {
    display: none;
    text-align: center;
    padding: 20px 0;
}
 
.pp-form-success svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}
 
.pp-form-success h4 {
    font-size: 18px;
    font-weight: 700;
    color: #E5A700;
    margin-bottom: 8px;
}
 
.pp-form-success p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ── Error message ── */
.pp-form-error {
    background: rgba(220, 50, 50, 0.12);
    border: 1px solid rgba(220, 50, 50, 0.3);
    color: #ff6b6b;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
}

/* ── Loading spinner on submit ── */
.pp-form-submit.loading {
    position: relative;
    color: transparent;
}
.pp-form-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: mprSpin 0.6s linear infinite;
}
@keyframes mprSpin {
    to { transform: rotate(360deg); }
}
 
/* Responsive modal */
@media (max-width: 480px) {
    .pp-modal {
        padding: 36px 24px;
    }
    
    .pp-cta-buttons {
        flex-direction: column;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .pp-btn {
        width: 100%;
    }
}
