/* Popup Modal Styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.popup-modal {
    background: white;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.popup-overlay.show .popup-modal {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: #333;
}

.popup-title {
    text-align: center;
    color: #4b1f40;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: bold;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    outline: none;
    color: #9ca3af;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #4b1f40;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
   background: linear-gradient(45deg, #4b1f40, #30122a);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    border: solid thin white;
    width: 50%;
    margin-bottom: 20px;
}

.submit-btn:hover {
    background: linear-gradient(45deg, #30122a, #22091c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(75, 31, 64, 0.4);
}

.popup-trigger {
    background: linear-gradient(45deg, #4b1f40, #30122a);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px auto;
    display: block;
}

.popup-trigger:hover {
    background: linear-gradient(45deg, #30122a, #22091c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(75, 31, 64, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .popup-modal {
        padding: 20px;
        width: 95%;
        margin: 10px;
    }
    
    .popup-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .submit-btn {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .popup-trigger {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .popup-modal {
        padding: 15px;
        width: 98%;
        margin: 5px;
    }
    
    .popup-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .popup-form {
        gap: 15px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 10px 18px;
        font-size: 14px;
        margin-bottom: 20px;
    }
}

/* Animation for form submission */
.popup-form.submitting {
    opacity: 0.7;
    pointer-events: none;
}

.popup-form.submitting .submit-btn {
    background: #6c757d;
    cursor: not-allowed;
}
