@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@400;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Almarai', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(-45deg, #1f1c2c, #43306e, #928dab, #1c1a29);
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.contact-form {
    background-color: rgba(44, 42, 54, 0.95);
    padding: 45px 40px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
    width: 420px;
    color: #fff;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 30px;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 22px 45px 14px 15px;
    border-radius: 10px;
    border: none;
    background-color: #3a3846;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.4s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    background-color: #474556;
    border: 2px solid #ff8c00;
    box-shadow: 0 0 12px rgba(255, 140, 0, 0.6);
}

.input-group label {
    position: absolute;
    right: 15px;
    color: #bbb;
    font-size: 14px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-group input+label,
.input-group input:focus+label,
.input-group input:not(:placeholder-shown)+label {
    top: -12px;
    font-size: 12px;
    color: #ffd700;
}

.input-group textarea+label {
    top: 18px;
}

.input-group textarea:focus+label,
.input-group textarea:not(:placeholder-shown)+label {
    top: -14px;
    font-size: 12px;
    color: #ffd700;
}

.input-group i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffd700;
    transition: all 0.3s ease;
}

.contact-form button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(90deg, #ff8c00, #ff0080);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(255, 0, 128, 0.5);
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 0, 128, 0.7);
}

.response-message {
    text-align: center;
    margin-top: 22px;
    font-weight: bold;
    font-size: 15px;
    color: #ffd700;
    min-height: 20px;
}

@media(max-width:480px) {
    .contact-form {
        width: 95%;
        padding: 35px 25px;
    }
}