/* Modal Background */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dimmer background */
    overflow: auto;
}

/* Modal Content */
.modal-content {
    position: relative;
    margin: 15% auto;
    padding: 25px;
    background: #fffaf0;
    border-radius: 15px;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.6s ease-in-out;
    font-family: 'Verdana', sans-serif;
}

@media only screen and (max-width: 480px) {
 .modal-content {
   
    margin: 40% auto;
 
}
}

/* Fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Close Button */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px; /* Increase size */
    color: #ff7e5f; /* More prominent color */
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 5px 10px;
    border-radius: 50%; /* Rounded background */
}

.close:hover {
    background-color: rgba(255, 126, 95, 0.2); /* Add a soft hover effect */
    color: #d65c43; /* Darken color on hover */
}


/* Form Heading & Description */
.modal-content h2 {
    margin-bottom: 15px;
    color: #333;
    font-size: 22px;
    font-weight: 600;
}

.modal-content p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
    line-height: 1.4;
}

/* Form Styling */
.modal-content label {
    display: block;
    margin-bottom: 5px;
    color: #444;
    text-align: left;
    font-size: 15px;
}

.modal-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s ease;
    background-color: #f9f9f9;
}

.modal-content input:focus {
    border-color: #ff7e5f;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 126, 95, 0.2);
}

/* Submit Button Styling */
.modal-content button[type="submit"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
}

.modal-content button[type="submit"]:hover {
    background: linear-gradient(135deg, #feb47b, #ff7e5f);
}

.modal-content button[type="submit"]:active {
    transform: scale(0.98);
}
