:root {
    color-scheme: light;
    font-family: Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f5f7fb;
    color: #111827;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px;
}

header h1 {
    margin: 0;
    font-size: 28px;
}

header p {
    margin-top: 8px;
    color: #4b5563;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
}

.consent input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.consent span {
    font-weight: 500;
    color: #1f2937;
    line-height: 1.4;
}

.panel {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    margin-top: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

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

select,
input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
}

.pdf-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}

button {
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    background: #e5e7eb;
    color: #111827;
}

button.primary {
    width: 100%;
    margin-top: 12px;
    background: #1d4ed8;
    color: #fff;
    font-weight: 700;
    padding: 14px;
}

#pdfCanvas,
#signatureCanvas {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
}

#pdfCanvas {
    min-height: 380px;
}

#signatureCanvas {
    height: 180px;
    touch-action: none;
}

.signature-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.status {
    margin: 10px 0 0;
    min-height: 20px;
    font-size: 14px;
    color: #374151;
}

@media (max-width: 768px) {
    .container {
        padding: 12px;
    }

    header h1 {
        font-size: 22px;
    }
}
