*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #F8F9FA;
}

/* Sections */
.intro, .planner-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1em;
}

.intro {
    margin-top: 0;
    background-image: url('bg.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-color: #2C3E50;
    color: white;
    padding: 2em 0;
    text-align: center;
}

.planner-input {
    margin: 1em auto;
    width: 90%;
    max-width: 500px;
    padding: 2em;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Headings */
h1 {
    font-size: 2.2rem;
    margin-top: .5em;
}

h2, h3, h4 {
    text-align: center;
    font-weight: 300;
    margin: 0 0 .5em 0;
    padding: 0 2rem;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1rem;
    font-weight: 400;
    color: #354CA1;
}

strong {
    font-weight: 700;
}

/* Form Styling */
textarea, input[type="text"], input[type="number"], select {
    border: 2px solid #2C3E50;
    width: 100%;
    max-width: 400px;
    padding: 12px;
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 10px;
    display: block;
    text-align: center;
}

/* Style for dropdown */
select {
    background-color: white;
    color: #2C3E50;
    font-family: 'Poppins', sans-serif;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #2C3E50;
    width: 100%;
    max-width: 400px;
    font-size: 1rem;
    text-align: center;
}

/* Button Styling */
button {
    margin-top: 10px;
    background: #27AE60;
    width: 45%;
    max-width: 250px;
    padding: 12px;
    color: white;
    border: none;
    border-radius: 5px;
    font-family: 'Poppins';
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    display: inline-block;
    text-align: center;
}

button:hover {
    background: #1E8449;
}

/* Buttons in a flexbox for alignment */
.planner-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Output Section */
.planner-output {
    display: none;
    width: 90%;
    max-width: 500px;
    margin: 20px auto;
    border: 3px solid #27AE60;
    padding: 1.5em;
    border-radius: 15px;
    background: #ECF0F1;
    color: #2C3E50;
    font-size: 1.1rem;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Media Queries for Responsive Design */
@media (min-width: 600px) {
    main {
        display: flex;
    }

    .intro {
        height: 100vh;
        max-width: 50%;
        justify-content: space-around;
        background-position: bottom 50% right;
    }

    .planner-input {
        justify-content: center;
        align-items: center;
        margin-top: unset;
        width: 50%;
    }

    p {
        background-color: white;
        color: #2C3E50;
        padding: .3em;
        border-radius: 5px;
    }
}
