@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Work Sans", Verdana, Geneva, Tahoma, sans-serif;
}

.layout {
    display: flex;
    height: 100vh;
    flex-direction: row;
}

.left-panel {
    flex: 1;
    background-image: url("img/background.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
}

.overlay {
    /* background-color: rgba(0, 0, 0, 0.5); */
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
}

.info {
    text-align: center;
}

.icon img {
    max-width: 280px;
    height: auto;
    margin-bottom: 1rem;
}

.info h2 {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.info p {
    font-size: 1rem;
    color: #ddd;
}

.right-panel {
    flex: 2;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.welfare-form {
    width: 100%;
    max-width: 600px;
    margin-top: 1rem;
}

h1 {
    margin-top: 0;
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #555;
}

fieldset {
    border: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

legend {
    padding: 0;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

input[type="text"],
input[type="tel"],
input[type="file"],
select,
textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.6rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="file"]:focus,
select:focus,
textarea:focus {
    border-color: #DFAC1B;
    outline: 4px solid transparent;
    outline-offset: 2px;
}

input[type="checkbox"] {
    margin-right: 0.5rem;
}

button {
    /* margin-top: 1.5rem; */
    margin-bottom: 2rem;
    padding: 0.75rem 1.5rem;
    background-color: #DFAC1B;
    color: black;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
}

button:hover {
    background-color: #CA8A04;
}

.success-message {
    padding: 2rem;
    text-align: center;
}

.success-message h2 {
    color: #2e7d32;
    margin-bottom: 1rem;
}

.success-message p {
    color: #444;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .icon img {
        max-width: 120px;
    }

    .left-panel,
    .right-panel {
        flex: none;
        width: 100%;
        height: 50vh;
    }

    .right-panel {
        padding: 1rem;
    }
}
