/* ========================================
   PROFESSIONAL DYNAMIC FORM MODAL
   ======================================== */

.kasambahay-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1200;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.kasambahay-overlay.active {
    opacity: 1;
    visibility: visible;
}

.pro-modal {
    background: #ffffff;
    width: 100%;
    max-width: 650px;
    margin: auto;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.98);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.kasambahay-overlay.active .pro-modal {
    transform: translateY(0) scale(1);
}

.pro-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #475569;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.pro-close-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    transform: rotate(90deg);
}

.pro-modal-banner {
    width: 100%;
}

.pro-modal-banner img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
    display: block;
}

.pro-modal-body {
    padding: 32px 40px;
}

.pro-modal-header {
    margin-bottom: 28px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
}

.pro-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.pro-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
}

.pro-required-note {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 16px;
}

.pro-required-note .req, .pro-label .req {
    color: #ef4444;
    font-weight: bold;
    margin-left: 2px;
}

.pro-field-group {
    margin-bottom: 24px;
}

.pro-label {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    color: #334155;
    font-weight: 600;
    margin-bottom: 8px;
}

.pro-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    color: #0f172a;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.pro-input::placeholder {
    color: #94a3b8;
}

.pro-input:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

textarea.pro-input {
    resize: vertical;
    min-height: 100px;
}

.pro-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.pro-submit-btn {
    background: #1e3a8a; /* Barangay Belair Navy */
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(30, 58, 138, 0.2), 0 2px 4px -1px rgba(30, 58, 138, 0.1);
}

.pro-submit-btn:hover {
    background: #172554;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(30, 58, 138, 0.25), 0 4px 6px -1px rgba(30, 58, 138, 0.1);
}

.pro-submit-btn:active {
    transform: translateY(0);
}

.pro-clear-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 6px;
    transition: all 0.2s;
}

.pro-clear-btn:hover {
    background: #f1f5f9;
    color: #334155;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .pro-modal-body {
        padding: 24px 20px;
    }
    .pro-title {
        font-size: 1.5rem;
    }
    .pro-modal-banner img {
        height: 160px;
    }
}
