/* --- MODAL OVERLAY --- */
.prm-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Mobile: Bottom Sheet */
}

/* --- MODAL CONTENT --- */
.prm-modal-content {
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 16px 16px 0 0;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    animation: prm-slide-up 0.3s ease-out;
}

@media (min-width: 768px) {
    .prm-modal-overlay { align-items: center; }
    .prm-modal-content { border-radius: 16px; }
}

@keyframes prm-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* --- FORM ELEMENTS --- */
.prm-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.prm-modal-header h3 { margin: 0; font-size: 1.2rem; }
#prm-close-modal { background: none; border: none; font-size: 24px; cursor: pointer; }

.prm-form-row { display: flex; gap: 15px; margin-bottom: 15px; }
.prm-col { flex: 1; }

.prm-modal-content input, 
.prm-modal-content select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px; /* Prevents zoom on iPhone */
}

/* --- PRICE DISPLAY --- */
.prm-price-display {
    background: #f0f7ff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 15px 0;
    border: 1px dashed #2271b1;
}
.prm-price-display .amount { font-size: 24px; font-weight: bold; color: #2271b1; display: block; }

/* --- WHATSAPP BUTTON --- */
.prm-whatsapp-btn {
    width: 100%;
    background: #25D366;
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}
.prm-whatsapp-btn:hover { background: #1fae53; }
.prm-whatsapp-btn:disabled { background: #ccc; cursor: wait; }

/* Note */
.prm-secure-note { text-align: center; font-size: 12px; color: #888; margin-top: 10px; }