.hr-page {
    background: var(--fe-surface);
    border-radius: 18px;
    box-shadow: var(--fe-shadow);
    padding: 32px 36px;
    border: 1px solid var(--fe-border);
}

.hr-page h1 {
    margin-bottom: 4px;
}

.hr-section {
    margin-top: 28px;
}

.hr-section h2 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fe-text-muted);
    margin-bottom: 12px;
}

.hr-muted {
    color: var(--fe-text-muted);
}

.hr-back {
    font-size: 14px;
    color: var(--fe-text-muted);
    text-decoration: none;
}

.hr-back:hover {
    color: var(--fe-text);
}

/* Who is filling the forms: unlock form or "Recognized as" bar. */
.hr-identity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--fe-bg);
}

.hr-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.hr-form-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    border: 1px solid var(--fe-border);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.hr-form-card:hover {
    border-color: var(--fe-primary);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.hr-form-card__title {
    font-weight: 600;
}

.hr-form-card__description {
    font-size: 14px;
    color: var(--fe-text-muted);
}

.btn.hr-btn-secondary {
    background: transparent;
    color: var(--fe-text);
    border: 1px solid var(--fe-border);
    padding: 8px 14px;
    font-size: 14px;
}

.btn.hr-btn-secondary:hover {
    background: var(--fe-surface);
}

.hr-submit-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 640px;
}

.hr-identity .btn {
    margin-top: 0;
}

.hr-unlock-form {
    justify-content: flex-start;
}

.hr-unlock-form > span {
    flex-basis: 100%;
}

.hr-unlock-form input,
.hr-submit-form input,
.hr-submit-form textarea,
.hr-submit-form select {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--fe-border);
    background: var(--fe-surface);
    color: var(--fe-text);
    font-family: inherit;
    font-size: 15px;
}

.hr-unlock-form input {
    flex: 1 1 220px;
    max-width: 360px;
}

.hr-submit-form .btn {
    margin-top: 0;
    align-self: flex-start;
}

.hr-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hr-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 200px;
}

.hr-field > label {
    font-weight: 600;
    font-size: 14px;
}

.hr-field--checkbox input {
    align-self: flex-start;
}

.hr-signature {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.hr-signature__canvas {
    width: 100%;
    height: auto;
    background: #fff;
    border: 1px dashed var(--fe-border);
    border-radius: 10px;
    touch-action: none; /* keep the page from scrolling while signing on a touchscreen */
    cursor: crosshair;
}

.hr-signature .btn {
    margin-top: 0;
}

.hr-field img.captcha {
    align-self: flex-start; /* don't stretch to the field width */
    margin: 4px 0;
    border-radius: 8px;
    border: 1px solid var(--fe-border);
}

.hr-field img.captcha ~ input {
    max-width: 200px;
}

.hr-field .hr-muted,
.hr-field-error {
    font-weight: 400;
    font-size: 13px;
}

.hr-field-error {
    color: #dc2626;
}
