@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body{
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container{
    width: 100%;
    max-width: 480px;
}

.contact-form{
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    animation: fadeIn 0.6s ease;
}

.contact-form h2{
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
    color: #333;
}

.input-box{
    position: relative;
    margin-bottom: 25px;
}

.input-box input,
.input-box textarea{
    width: 100%;
    padding: 12px 10px;
    font-size: 15px;
    border: 1.5px solid #bbb;
    border-radius: 10px;
    outline: none;
    resize: none;
    transition: 0.3s;
}

.input-box label{
    position: absolute;
    left: 15px;
    top: 12px;
    color: #888;
    font-size: 15px;
    pointer-events: none;
    transition: 0.3s;
}

/* Floating label effect */
.input-box input:focus ~ label,
.input-box input:valid ~ label,
.input-box textarea:focus ~ label,
.input-box textarea:valid ~ label{
    top: -10px;
    left: 10px;
    font-size: 13px;
    background: #fff;
    padding: 0 5px;
    color: #2575fc;
}

/* Focus border */
.input-box input:focus,
.input-box textarea:focus{
    border-color: #2575fc;
}

.btn{
    width: 100%;
    padding: 12px;
    border: none;
    outline: none;
    background: linear-gradient(135deg, #2575fc, #6a11cb);
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover{
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Animation */
@keyframes fadeIn{
    from{ opacity: 0; transform: translateY(20px); }
    to{ opacity: 1; transform: translateY(0); }
}
