/* Page background */

    body {
    margin: 0px 0 0 -60px;
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #c3b1f9, #9bb5ff);
    flex-direction: column-reverse;
}


/* Form card */
.contact-form {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 400px;
}

/* Heading */
.contact-form h2 {
    text-align: center;
    color: #6b21a8;
    margin-bottom: 30px;
    font-size: 28px;
}

/* Form groups with floating labels */
.form-group {
    position: relative;
    margin-bottom: 25px;
    width: 95%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 12px;
    border: 1.5px solid #d1b2ff;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    background: #f8f5ff;
    transition: all 0.3s ease;
    resize: none;
    color: #333;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #9f5de2;
    box-shadow: 0 0 8px rgba(159, 93, 226, 0.3);
}

/* Floating labels */
.form-group label {
    position: absolute;
    left: 12px;
    top: 14px;
    background: white;
    padding: 0 5px;
    color: #a78bfa;
    pointer-events: none;
    transition: 0.3s;
    font-size: 14px;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 12px;
    color: #6b21a8;
}

/* Button */
.contact-form button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #a855f7, #9333ea);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3);
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: linear-gradient(135deg, #9333ea, #7e22ce);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4);
}
.modal {
    display: none;   /* MUST be none */
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 400px;
    border-radius: 10px;
    position: relative;
}

/* Responsive */
@media (max-width: 450px) {
    .contact-form {
        width: 108%;
        padding: 30px 20px;
    }
    .form-group {
        width: 95%;
    }
}