#signature-pad,
#renewal-signature-pad {
    display: block;
    width: 100%;
    max-width: 600px;
    height: 200px;
    border: 1px solid #cccccc;
    box-sizing: border-box;
    touch-action: none;
}

#registration-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}

section {
    max-width: 600px;
    margin: 0 auto;
}

main {
    padding: 24px;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #cccccc;
    box-sizing: border-box;
}

input:not([type="checkbox"]):focus,
select:focus,
textarea:focus {
    outline: 2px solid #424874;
    outline-offset: -1px;
}

button[type="submit"] {
    padding: 12px;
    font-size: 16px;
    border: none;
    background-color: #424874;
    color: white;
    cursor: pointer;
    margin-top: 2px;
}

#clear-signature {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #cccccc;
    background-color: white;
    color: #333333;
    cursor: pointer;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    padding: 0;
    accent-color: #424874;
}

#registration-form label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
}

#registration-form h3 {
    margin-top: 40px;
    margin-bottom: 0;
}

.signature-guide {
    margin: 0;
    font-size: 14px;
    color: #666666;
}

body {
    margin: 0;
    font-family: Arial, "Apple SD Gothic Neo", sans-serif;
    color: #222222;
}

header h1 {
    margin-bottom: 4px;
}

header p {
    margin-top: 0;
    color: #666666;
    font-size: 14px;
}

#registration-form > label {
    font-weight: 500;
}

input::placeholder,
textarea::placeholder {
    color: #999999;
}

textarea {
    resize: vertical;
}

.required-mark {
    color: #d9534f;
}

.required-guide {
    margin-top: -8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #666666;
}

#form-message {
    margin: 4px 0 0;
    font-size: 14px;
    text-align: center;
}

/* 관리자 로그인 화면 */

#admin-login-title,
#back-to-start,
#admin-login-form {
    display: block;
    width: calc(100% - 40px);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

#admin-login-title {
    margin-top: 40px;
    margin-bottom: 16px;
}

#back-to-start {
    margin-bottom: 24px;
}

#admin-login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#admin-login-form > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#admin-login-form input {
    width: 100%;
    box-sizing: border-box;
}

#admin-login-form button[type="submit"] {
    width: 100%;
}

@media (max-width: 600px) {
    main {
        padding: 16px;
    }
}