﻿body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f8f8f8;
}

.form-container1 {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px #16c9d4;
    max-width: 700px; /* Desktop width limit */
    width: 100%; /* Shrinks on smaller devices */
    animation: fadeIn 0.8s ease-in-out;
    margin: 50px auto;
}

.h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #16c9d4;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

    .input-group input {
        width: 100%;
        padding: 10px;
        border: 2px solid #ccc;
        border-radius: 8px;
        outline: none;
        background: none;
        font-size: 14px;
    }

    .input-group label {
        position: absolute;
        top: 50%;
        left: 12px;
        transform: translateY(-50%);
        background: white;
        padding: 0 5px;
        color: #888;
        transition: 0.3s;
        pointer-events: none;
    }

    .input-group input:focus,
    .input-group input:not(:placeholder-shown) {
        border-color: #16c9d4;
    }

        .input-group input:focus + label,
        .input-group input:not(:placeholder-shown) + label {
            top: 0px;
            left: 8px;
            font-size: 12px;
            color: black;
        }

.save-btn {
    width: 100%;
    background: linear-gradient(45deg, #16c9d4, #a89e7f);
    border: none;
    padding: 12px;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

    .save-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(37, 117, 252, 0.5);
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet */
@media (max-width: 768px) {
    .form-container1 {
        padding: 20px;
    }

    .h2 {
        font-size: 20px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .form-container1 {
        padding: 15px;
        margin: 1px;
        margin-top: 50px;
        margin-bottom: 50px;
    }

    .h2 {
        font-size: 18px;
    }

    .input-group input {
        font-size: 13px;
        padding: 8px;
    }

    .save-btn {
        font-size: 14px;
        padding: 10px;
    }
}
