/* ========================================
   Popup Form Styles
   ======================================== */

/* Popup Overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

.popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Popup Container */
.popup-container {
    background: #ffffff;
    border-radius: 20px;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Popup Header */
.popup-header {
    background: linear-gradient(135deg, #e74c3c 0%, #3498db 100%);
    padding: 30px;
    border-radius: 20px 20px 0 0;
    position: relative;
    text-align: center;
}

.popup-header h2 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.popup-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Popup Body */
.popup-body {
    padding: 35px 30px;
}

/* Form Styles */
.popup-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.popup-form .form-row.full-width {
    grid-template-columns: 1fr;
}

.popup-form .form-group {
    margin-bottom: 0;
}

.popup-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.popup-form label .required {
    color: #e74c3c;
}

.popup-form input,
.popup-form textarea,
.popup-form select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    color: #2c3e50;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.popup-form input:focus,
.popup-form textarea:focus,
.popup-form select:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.popup-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Submit Button */
.popup-form .submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #e74c3c 0%, #3498db 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.popup-form .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
}

.popup-form .submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success/Error Messages */
.popup-message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.popup-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.popup-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 767px) {
    .popup-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .popup-header {
        padding: 25px 20px;
    }
    
    .popup-header h2 {
        font-size: 24px;
    }
    
    .popup-body {
        padding: 25px 20px;
    }
    
    .popup-form .form-row {
        grid-template-columns: 1fr;
    }
}
