.custom-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.custom-modal-content {
    background: #ffffff;
    width: min(900px, 92vw);
    max-height: 88vh;
    overflow-y: auto;
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
}

.custom-modal-content input,
.custom-modal-content textarea {
    width: 100%;
    padding: 12px 14px;
    margin-top: 10px;
    border: 1px solid #d7dde8;
    border-radius: 12px;
    font-size: 14px;
}

.custom-modal-content textarea {
    min-height: 280px;
    resize: vertical;
    line-height: 1.6;
}

.variable-tag {
    display: inline-flex;
    align-items: center;
    background: #006099;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 999px;
    margin: 5px;
    font-size: 12px;
    font-weight: 600;
}

.contract-preview {
    white-space: pre-wrap;
    background: #f8fafc;
    padding: 24px;
    border-radius: 16px;
    margin-top: 20px;
    line-height: 1.7;
    border: 1px solid #e5eaf2;
    color: #1f2937;
}

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

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    color: #334155;
    font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #d7dde8;
    border-radius: 12px;
    font-size: 14px;
    background: #ffffff;
}

.form-group input:disabled {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

.draft-context {
    margin: 12px 0 18px 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f4f8fb;
    font-size: 14px;
    border-left: 5px solid #006099;
    color: #334155;
}

.contract-doc-actions,
.contracts-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.contract-doc-actions button,
.contracts-actions button,
.card button,
.section-header button {
    border: none;
    border-radius: 12px;
    padding: 9px 14px;
    background: #006099;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.contract-doc-actions button:hover,
.contracts-actions button:hover,
.card button:hover,
.section-header button:hover {
    opacity: 0.9;
}

.danger-btn {
    background: #b42318 !important;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #334155;
}

.checkbox-label input {
    width: auto;
}