/* General form styling */
form {
    width: 50%; /* Form width set for laptop/desktop */
    margin: 0 auto;
    background-color: #f4f7f8; /* Light background for the form */
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
    padding: 20px;
    box-sizing: border-box;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    color: #333; /* Darker text color for readability */
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    color: #333;
    background-color: #fff;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

textarea {
    height: 100px;
}

input:focus, select:focus, textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
    outline: none;
}

/* Button styling */
button {
    width: 100%;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 16px;
    transition: background-color 0.3s ease-in-out;
}

button:hover {
    background-color: #0056b3;
}

/* Success popup styling */
.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Semi-transparent overlay for better effect */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
}

.popup-content {
    background-color: #fff;
    border-radius: 12px; /* Rounded corners for modern look */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%; /* Ensure it's responsive for mobile */
    padding: 24px;
    text-align: center;
    animation: popupFadeIn 0.5s ease-in-out;
    box-sizing: border-box;
}

.popup-content h2 {
    color: #28a745; /* Green for success */
    font-size: 26px;
    margin-bottom: 15px;
    font-weight: bold;
}

.popup-content p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

.popup-content a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.popup-content a:hover {
    color: #0056b3;
}

.popup-content button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 12px;
    transition: background-color 0.3s ease-in-out;
}

.popup-content button:hover {
    background-color: #218838;
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}

.close:hover {
    color: #000;
}

/* Fade-in animation for the popup */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Media query for laptop/desktop screens */
/* Media query for mobile screens */
@media (max-width: 768px) {
    form {
        width: 90%; /* Form width for mobile screens */
        margin: 10px auto;
        padding: 20px;
    }

    label {
        font-size: 14px; /* Adjust label font size for better readability on smaller screens */
    }

    input, select, textarea {
        padding: 14px;
        font-size: 14px;
    }

    textarea {
        height: auto; /* Ensure textarea height scales properly */
    }

    button {
        padding: 14px 16px;
        font-size: 18px;
    }

    .popup-content {
        width: 90%; /* Ensure popup content is fully responsive */
    }

    .popup-content h2 {
        font-size: 22px; /* Reduce the font size of popup heading */
    }

    .popup-content p {
        font-size: 14px; /* Adjust popup paragraph font size */
    }

    .close {
        font-size: 22px; /* Adjust close button size */
    }
}

