.flashy-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: 9999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease-in-out, opacity 0.3s ease-in-out;
    font-family: 'Inter', sans-serif; /* Using Inter font for consistency */
}

.flashy-modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.flashy-modal-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
	width: 360px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    text-align: left; /* Align form content left */
    transform: scale(0.8); /* Initial scale for the flashy effect */
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.3s ease-in-out; /* Flashy bounce effect */
}

.flashy-modal-overlay.active .flashy-modal-content {
    transform: scale(1); /* Scale to full size when active */
    opacity: 1;
}

.flashy-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #888;
    transition: color 0.2s ease-in-out;
}

.flashy-modal-close:hover {
    color: #333;
}

.flashy-modal-button {
    background-color: #4CAF50; /* Green */
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.flashy-modal-button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.flashy-modal-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.2);
}

/* Form specific styles */
.fmd-modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.fmd-form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.fmd-form-group label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.fmd-form-group input[type=\"text\"],
.fmd-form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box; /* Include padding in width */
}

.fmd-form-group textarea {
    resize: vertical; /* Allow vertical resizing */
}

.fmd-submit-button {
    background-color: #0073aa; /* WordPress blue */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    align-self: flex-end; /* Align button to the right */
}

.fmd-submit-button:hover {
    background-color: #005a87;
    transform: translateY(-2px);
}

.fmd-submit-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.2);
}

.fmd-message-box {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    text-align: center;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .flashy-modal-content {
        padding: 20px;
        border-radius: 10px;
    }
    .flashy-modal-close {
        font-size: 24px;
        top: 10px;
        right: 15px;
    }
    .fmd-modal-form {
        gap: 10px;
    }
}