body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to right top, #3498db, #8e44ad, #f39c12);
    margin: 0;
    padding: 0;
}

.container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 80%;
    max-width: 450px;
    margin: 50px auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 500;
}

h1 {
    color: #333333;
    text-align: center;
    margin-bottom: 20px;
}

.mainheads {
    font-weight: 700;
    text-align: center;
    margin-top: 20px;
    color: #3498db;
}

.inputtext {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #333333;
}

.inputtext p {
    margin: 0;
    width: 40%;
    padding-top: 1.5%;
}

.inputfield {
    flex: 1;
}

.inputtext #gender {
    padding-top: 4.625px;
    padding-bottom: 7px;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 5px 15px 7px;
    box-sizing: border-box;
    border: 2px solid #3498db;
    border-radius: 6px;
    font-size: 16px;
    color: #333333;
}

input[type="radio"],
input[type="date"] {
    margin-right: 5px;
    margin-left: 7px;
    border: 2px solid #3498db;
    border-radius: 4px;
}

input[type="radio"]:checked {
    background-color: #3498db;
}

input[type="date"] {
    padding: 8px;
    width: 90%;
}

/* Hover effects */
input[type="text"]:hover,
input[type="email"]:hover,
input[type="number"]:hover,
select:hover,
textarea:hover {
    border-color: #2980b9;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #1abc9c;
    outline: none;
}

/* Buttons */
.buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.button {
    padding: 12px 20px;
    width: 48%;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.2s ease-in-out;
}

#paynow {
    background-color: #2ecc71;
    color: white;
}

#paynow:hover {
    background-color: #27ae60;
    transform: scale(1.05);
}

#clear {
    background-color: #e74c3c;
    color: white;
}

#clear:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .container {
        width: 90%;
    }
}