.vq-contract-wrap {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.vq-contract-form {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.vq-admin-info {
    margin: 16px 0;
    padding: 14px 16px;
    border: 1px solid #c3c4c7;
    border-left: 4px solid #b42318;
    border-radius: 6px;
    background: #fff;
}

.vq-admin-info p {
    margin: 8px 0 0;
}

.vq-section {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 18px;
}

.vq-section h2 {
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 1.3;
}

.vq-grid {
    display: grid;
    gap: 14px 18px;
}

.vq-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vq-field {
    display: grid;
    gap: 6px;
}

.vq-field span {
    font-weight: 600;
}

.vq-field strong {
    color: #b42318;
}

.vq-field input,
.vq-field textarea {
    width: 100%;
    max-width: 100%;
    border-radius: 4px;
    min-height: 42px;
    box-sizing: border-box;
}

.vq-field input {
    min-height: 42px;
    box-sizing: border-box;
}

.vq-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.vq-actions p {
    margin: 0;
    color: #50575e;
}

.vq-contract-frontend .notice {
    padding: 10px 14px;
    border-left: 4px solid #2271b1;
    background: #fff;
}

.vq-contract-frontend {
    position: relative;
    left: 50%;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    color: #1f2328;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding: 32px clamp(20px, 5vw, 80px);
    box-sizing: border-box;
}

.vq-contract-frontend .vq-contract-form,
.vq-contract-frontend .vq-consultant-header,
.vq-contract-frontend .notice {
    width: 100%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.vq-contract-frontend .vq-contract-form {
    gap: 22px;
}

.vq-contract-frontend .vq-section {
    width: 100%;
    box-sizing: border-box;
}

.vq-contract-frontend .vq-grid.two {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.vq-contract-frontend h1,
.vq-contract-frontend h2,
.vq-contract-frontend p {
    letter-spacing: 0;
}

.vq-consultant-area {
    max-width: 560px;
}

.vq-login-panel {
    border: 1px solid #d8dee4;
    border-radius: 8px;
    background: #fff;
    padding: 30px;
    box-shadow: 0 18px 48px rgba(31, 35, 40, 0.08);
}

.vq-kicker {
    margin: 0 0 6px;
    color: #b42318;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.vq-login-panel h1,
.vq-consultant-header h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.vq-login-copy {
    margin: 10px 0 22px;
    color: #59636e;
}

.vq-login-form {
    display: grid;
    gap: 16px;
}

.vq-checkbox {
    display: flex;
    align-items: center;
    gap: 9px;
}

.vq-primary-button,
.vq-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 5px;
    border: 1px solid transparent;
    padding: 0 16px;
    font-weight: 700;
    cursor: pointer;
}

.vq-primary-button {
    background: #b42318;
    color: #fff;
}

.vq-primary-button:hover {
    background: #8f1d15;
    color: #fff;
}

.vq-secondary-button {
    background: #fff;
    color: #1f2328;
    border-color: #c9d1d9;
}

.vq-secondary-button:hover {
    background: #f6f8fa;
}

.vq-alert {
    margin: 0 0 16px;
    padding: 11px 13px;
    border-radius: 5px;
    font-weight: 600;
}

.vq-alert.error {
    border: 1px solid #f0b8b3;
    background: #fff4f2;
    color: #8f1d15;
}

.vq-alert.success {
    border: 1px solid #9fd8b4;
    background: #edf9f0;
    color: #146c2e;
}

.vq-consultant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.vq-consultant-user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #59636e;
    font-weight: 600;
}

.vq-logout-form {
    margin: 0;
}

.vq-contract-frontend .button.button-primary,
.vq-contract-frontend .button-primary,
.vq-contract-frontend .button {
    min-height: 42px;
    border-radius: 5px;
    border: 1px solid #b42318;
    background: #b42318;
    color: #fff;
    padding: 0 16px;
    font-weight: 700;
    text-decoration: none;
}

.vq-contract-frontend .button:hover {
    background: #8f1d15;
    color: #fff;
}

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

    .vq-actions {
        align-items: stretch;
    }

    .vq-actions .button {
        width: 100%;
        text-align: center;
    }

    .vq-login-panel {
        padding: 22px;
    }

    .vq-contract-frontend {
        padding: 24px 14px;
    }

    .vq-contract-frontend .vq-grid.two {
        grid-template-columns: 1fr;
    }

    .vq-consultant-header,
    .vq-consultant-user {
        align-items: flex-start;
        flex-direction: column;
    }
}
