* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #e8f4fc;
    font-family: "맑은 고딕", "Malgun Gothic", sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #1565c0;
    color: white;
    text-align: center;
    padding: 20px;
}

header h1 {
    font-size: 2em;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

header p {
    font-size: 0.95em;
    opacity: 0.9;
}

header hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.4);
    margin-top: 12px;
}

section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 20px;
}

form {
    background-color: #e1f0fb;
    border: 2px solid #90caf9;
    border-radius: 12px;
    padding: 30px 40px;
    width: 100%;
    max-width: 600px;
}

article {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

article label {
    color: #0d47a1;
    font-weight: bold;
    min-width: 180px;
    font-size: 0.95em;
}

article input[type="radio"],
article input[type="checkbox"] {
    accent-color: #1565c0;
    margin-right: 2px;
}

article select {
    border: 1px solid #90caf9;
    border-radius: 4px;
    padding: 4px 8px;
    color: #1a237e;
    background-color: white;
}

article.textarea-row {
    flex-direction: column;
    align-items: flex-start;
}

article.textarea-row label {
    margin-bottom: 8px;
}

textarea {
    width: 100%;
    border: 1px solid #90caf9;
    border-radius: 6px;
    padding: 8px;
    font-family: "맑은 고딕", "Malgun Gothic", sans-serif;
    resize: vertical;
    color: #37474f;
}

textarea::placeholder {
    color: #90a4ae;
}

.submit-row {
    justify-content: center;
    margin-top: 10px;
}

input[type="submit"] {
    background-color: #1565c0;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 40px;
    font-size: 1em;
    cursor: pointer;
    font-family: "맑은 고딕", "Malgun Gothic", sans-serif;
    transition: background-color 0.2s;
}

input[type="submit"]:hover {
    background-color: #7b1fa2;
}

footer {
    background-color: #b39ddb;
    color: #1a237e;
    text-align: center;
    padding: 15px;
    font-size: 0.9em;
}