.modern-modal-content {
    border: 1px solid #e6edf5;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    background: #ffffff;
}

.modern-modal-header {
    padding: 0.9rem 1.1rem 0.8rem;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.modern-modal-title {
    margin: 0;
    color: #0d6efd;
    font-size: 1.02rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

.modern-modal-body {
    padding: 1rem 1.1rem;
    background: #fbfdff;
}

.modal-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.modal-form-field-full {
    grid-column: 1 / -1;
}

.modal-form-field label {
    display: block;
    margin-bottom: 0.32rem;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.9rem;
}

.modal-form-field input,
.modal-form-field select,
.modal-form-field textarea {
    width: 100%;
    border: 1px solid #dbe7f3;
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
    background: #ffffff;
    color: #0f172a;
    box-shadow: none;
    transition: all 0.2s ease;
    font-size: 0.94rem;
}

.modal-form-field input,
.modal-form-field select {
    min-height: 40px;
}

.modal-form-field textarea {
    min-height: 160px;
    resize: vertical;
}

.modal-form-field input:focus,
.modal-form-field select:focus,
.modal-form-field textarea:focus {
    border-color: #93c5fd;
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.modal-form-field .errorlist {
    list-style: none;
    padding-left: 0;
    margin: 0 0 0.3rem 0;
    color: #dc3545;
    font-size: 0.84rem;
    font-weight: 600;
}

.modern-modal-footer {
    padding: 0.85rem 1.1rem 0.95rem;
    border-top: 1px solid #eef2f7;
    background: #ffffff;
    display: flex;
    justify-content: flex-end;
    gap: 0.7rem;
}

.btn-soft-back,
.btn-soft-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0.56rem 0.95rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    min-width: 105px;
}

.btn-soft-back {
    background: #f8fafc;
    color: #475569;
    border-color: #dbe7f3;
}

.btn-soft-back:hover {
    background: #eef2f7;
    color: #0f172a;
}

.btn-soft-primary {
    background: #198754;
    color: #ffffff;
    border-color: #198754;
}

.btn-soft-primary:hover {
    background: #157347;
    color: #ffffff;
    border-color: #157347;
}

@media (max-width: 768px) {
    .modern-modal-header,
    .modern-modal-body,
    .modern-modal-footer {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .modern-modal-title {
        font-size: 0.98rem;
    }

    .modern-modal-footer {
        flex-direction: column;
    }

    .btn-soft-back,
    .btn-soft-primary {
        width: 100%;
    }

    .modal-form-field textarea {
        min-height: 130px;
    }
}