* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    color: #222;
}

.page {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

h1 {
    margin-top: 0;
    margin-bottom: 10px;
}

.intro {
    margin-top: 0;
    margin-bottom: 24px;
    color: #555;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
}

textarea {
    resize: vertical;
}

.checkbox-field {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 400;
}

.signature-box {
    width: 100%;
    height: 220px;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    position: relative;
}

#signatureCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.signature-actions {
    margin-top: 10px;
}

button {
    border: 0;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 16px;
    cursor: pointer;
}

button[type="submit"] {
    background: #111;
    color: #fff;
}

button.secondary {
    background: #e9e9e9;
    color: #222;
}

.actions {
    margin-top: 24px;
}

.hint {
    font-size: 14px;
    color: #666;
}

.status {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 8px;
    display: none;
}

.status.success {
    display: block;
    background: #e8f7e8;
    color: #1d6b1d;
}

.status.error {
    display: block;
    background: #fdeaea;
    color: #8a1f1f;
}

.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}

@media (max-width: 700px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .page {
        margin: 16px auto;
        padding: 12px;
    }

    .card {
        padding: 18px;
    }
}