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

body {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

.form-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.form-hero {
    background: #ffffff;
    color: #000000;
    text-align: center;
    padding: 48px 24px 40px;
    border-bottom: 2px solid #333;
}

.unit9-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.form-hero h1 {
    font-size: 2.4em;
    font-weight: 300;
    margin-bottom: 12px;
}

.form-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: #333333;
    font-size: 1.05em;
}

.form-panel {
    width: min(760px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 48px;
    flex: 1;
}

.back-link {
    display: inline-block;
    margin-bottom: 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.back-link::before {
    content: "← ";
}

.back-link:hover {
    text-decoration: underline;
}

.required-note {
    text-align: right;
    font-size: 14px;
    margin-bottom: 20px;
}

fieldset {
    border: 0;
    margin: 0 0 28px;
    padding: 0;
}

legend {
    font-size: 0.95em;
    margin-bottom: 12px;
    padding: 0;
}

.hint {
    color: #bbbbbb;
    font-size: 14px;
    margin: -4px 0 10px;
}

.form-group {
    margin-bottom: 28px;
}

label,
legend {
    display: block;
    color: #ffffff;
}

.form-group label {
    margin-bottom: 8px;
    font-size: 0.95em;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font: inherit;
    font-size: 16px;
    background: #f8f9fa;
    color: #000000;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #000000;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.choice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 10px 0;
    font-weight: 400;
    cursor: pointer;
}

.choice input {
    margin-top: 4px;
    accent-color: #ffffff;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.status-error ul {
    margin: 8px 0 0 18px;
}

.status-error li + li {
    margin-top: 4px;
}

.field-error {
    color: #ffd6dc;
    background: #3a1518;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 8px;
    font-size: 14px;
}

.form-group.invalid input,
.form-group.invalid textarea,
fieldset.invalid {
    border-color: #f5c6cb;
}

fieldset.invalid {
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 12px 12px 4px;
}

.submit-section {
    text-align: center;
    margin-top: 12px;
}

.btn-submit {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 8px;
    padding: 14px 32px;
    font: inherit;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
}

.btn-submit:hover {
    background: #ffffff;
    color: #000000;
}

.hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.site-footer {
    background: #000000;
    border-top: 1px solid #333;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .form-hero {
        padding: 32px 16px;
    }

    .form-hero h1 {
        font-size: 1.8em;
    }

    .form-panel {
        width: min(760px, calc(100% - 24px));
    }
}
