.project-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9999;
}

.project-modal {
    width: min(1150px, 100%);
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-head {
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.modal-head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.modal-sub {
    margin-top: 6px;
    font-size: 13px;
    color: #475569;
}

.close-btn {
    float: left;
    font-size: 26px;
    border: none;
    background: none;
    cursor: pointer;
    color: #64748b;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

.form-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, 1fr);
}

.form-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-item.col-2 {
    grid-column: span 2;
}

label {
    font-size: 13px;
    color: #475569;
}

input,
select,
textarea {
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
}

textarea {
    min-height: 90px;
}

.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-primary {
    background: #2563eb;
    border: none;
    padding: 10px 16px;
    color: white;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #e2e8f0;
    border: none;
    padding: 10px 16px;
    color: #0f172a;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}
