/* Modal Overlay */
.ppjv-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

body.ppjv-modal-open {
    overflow: hidden;
}

/* Modal Container */
.ppjv-modal-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    margin: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Modal Content */
.ppjv-modal-content {
    overflow-y: auto;
    max-height: 90vh;
    padding: 30px;
}

/* Password Section */
.ppjv-password-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

/* Password Change Notice */
.ppjv-password-change-notice {
    margin: 15px 0;
    padding: 12px 16px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
}

.ppjv-password-change-notice p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.ppjv-password-change-notice strong {
    font-weight: 600;
}

.ppjv-password-fields .ppjv-field {
    margin-bottom: 15px;
}

.ppjv-password-fields label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.ppjv-password-fields input[type="password"] {
    width: 100%;
    padding: 0px 16px;
    border: 1px solid #095764;
    border-radius: 0px;
    font-size: 16px;
    color: #1f2937;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    min-height: 40px;
}

.ppjv-password-fields input[type="password"]:focus {
    outline: none;
    border-color: #0D7487;
    box-shadow: 0 0 0 3px rgba(13, 116, 135, 0.1);
}

.ppjv-password-fields input[type="password"]:required:invalid {
    border-color: #dc2626;
}

.ppjv-password-fields input[type="password"].error {
    border-color: #dc3545;
}

/* Password Requirements */
.ppjv-password-requirements {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.ppjv-password-requirements h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
}

.ppjv-password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ppjv-password-requirements li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 14px;
}

.ppjv-password-requirements li:before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: bold;
}

.ppjv-password-requirements li.passed:before {
    content: "✓";
    color: #28a745;
}

.ppjv-password-requirements li.passed {
    color: #28a745;
}

.ppjv-password-requirements li.failed {
    color: #dc3545;
}

/* Form Actions */
.ppjv-modal-form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.ppjv-modal-form-actions .button {
    min-width: 200px;
    padding: 12px 24px;
    font-size: 16px;
}

.ppjv-modal-form-actions .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Messages */
.ppjv-modal-messages {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.ppjv-modal-messages.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.ppjv-modal-messages.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.ppjv-modal-messages p {
    margin: 0;
}

/* Single Column Layout for Modal */
.ppjv-modal-content .ppjv-section {
    display: block;
    grid-template-columns: none;
    gap: 0;
}

.ppjv-modal-content .service-location-preferences {
    display: block;
    flex-direction: column;
    gap: 0;
}

.ppjv-modal-content .service-preferences {
    width: 100%;
    margin-bottom: 40px;
}

.ppjv-modal-content .location-preferences {
    width: 100%;
}

.ppjv-modal-content .ppjv-user-profile {
    display: block;
    grid-template-columns: none;
    gap: 0;
}

.ppjv-modal-content .ppjv-terms-grid {
    display: block;
    grid-template-columns: none;
}

.ppjv-modal-content .ppjv-checkbox-item {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 12px;
    padding: 0px 16px 0px 0px;
}

.ppjv-modal-content .ppjv-newsletters-list {
    display: block;
}

.ppjv-modal-content .ppjv-newsletters-list .ppjv-checkbox-item {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 12px;
    padding: 0px 16px 0px 0px;
}

/* Responsive */
@media (max-width: 768px) {
    .ppjv-modal-container {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }

    .ppjv-modal-content {
        padding: 20px;
        max-height: 100vh;
    }

    .ppjv-modal-overlay {
        padding: 0;
    }
}

