* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: linear-gradient(to right, #d56127, #0073ff89);
    font-family: Arial, sans-serif;
    padding: 1rem;
}

h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.con {
    background-color: aliceblue;
    padding: 2rem;
    border-radius: 1rem;
    min-height: 40vh;
    width: 100%;
    max-width: 400px; /* keeps it neat on larger screens */
}

.amt input {
    border: 2px solid;
    margin-bottom: 15px;
}

form {
    margin: 2rem 0 1rem 0;
}

form select,
button,
input {
    width: 100%;
    border-radius: 0.75rem;
    border: none;
    outline: none;
}

form input {
    border: 1px solid rgb(11, 11, 11);
    font-size: 1rem;
    height: 3rem;
    padding-left: 0.5rem;
}

.drop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap; /* allows stacking on smaller screens */
    gap: 1rem;
}

.select img {
    max-width: 2rem;
}

.drop i {
    font-size: 1.5rem;
    margin-top: 1rem;
    cursor: pointer;
}

.select {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.5rem;
    border: 2px solid rgba(5, 5, 5, 0.94);
    padding: 0.3rem 0.5rem;
    min-width: 6rem;
}

.select select {
    font-size: 1rem;
    background: none;
}

.msg {
    margin: 2rem 0 2rem 0;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 700;
    word-wrap: break-word;
}

form button {
    height: 3rem;
    font-size: 1.15rem;
    background-color: blueviolet;
    color: aliceblue;
    cursor: pointer;
    transition: background 0.3s ease;
}

form button:hover {
    background-color: indigo;
}

p {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .con {
        padding: 1.5rem;
        max-width: 90%;
    }
    .drop {
        flex-direction: column;
        align-items: stretch;
    }
    .drop i {
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.5rem;
    }
    form input,
    form button,
    .select select {
        font-size: 0.9rem;
    }
    .msg {
        font-size: 1rem;
    }
}
