/* Custom CSS for Quality Medigen Pharmaceuticals Website */

/* General Body Styling (ensure Inter font is loaded via CDN in HTML) */
body {
    font-family: 'Inter', sans-serif;
}

/* Animations */
@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-down {
    animation: fade-in-down 0.8s ease-out forwards;
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

/* Shake on Hover (defined in HTML <style> for immediate availability) */
/* You can move the @keyframes shake and .shake-on-hover rule here if preferred */

/* Utility classes for consistency (Tailwind handles most of these) */
/* This file is mainly for custom animations or specific overrides */

/* Modal specific styles (moved from HTML for better separation) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); /* shadow-lg */
    position: relative;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #4B5563; /* gray-600 */
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #1F2937; /* gray-800 */
}

/* Custom Modal Styles (for contact form success message) */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.custom-modal-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: 1rem; /* rounded-xl */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); /* stronger shadow */
    position: relative;
    max-width: 90%;
    width: 400px; /* Fixed width for the modal */
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.custom-modal-overlay.show .custom-modal-content {
    transform: translateY(0);
}

.custom-modal-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.75rem; /* Larger close button */
    cursor: pointer;
    color: #6B7280; /* gray-500 */
    transition: color 0.2s ease;
    line-height: 1; /* Align 'x' properly */
}

.custom-modal-close-btn:hover {
    color: #1F2937; /* gray-800 */
}
