/* Изолированные стили модального окна */
#err-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    font-family: Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
}

#err-modal-container .modal-box {
    background: #ffffff;
    width: 90%;
    max-width: 400px;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #ccc;
    box-sizing: border-box;
}

#err-modal-container h5 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
#err-modal-container h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: bold;
    font-family: "Lobster", sans-serif;
    color: #fc6c3f;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
#err-modal-container strong {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: bold;
    font-family: "Lobster", sans-serif;
    color: #fc6c3f;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
#err-modal-container .input-field {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
    color: #333;
}

#err-modal-container .input-field[readonly] {
    background: #f5f5f5;
    color: #777;
    border: 1px solid #ddd;
    cursor: default;
}

#err-modal-container textarea.input-field {
    height: 110px;
    resize: none;
}

#err-modal-container .footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

#err-modal-container .char-counter {
    font-size: 12px;
    color: #888;
}

#err-modal-container .action-group {
    display: flex;
    gap: 12px;
}

#err-modal-container .btn-err {
    padding: 8px 18px;
    border: 1px solid #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

#err-modal-container .btn-err:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#err-modal-container .btn-send {
    background: #508d0e;
    color: #fff;
    border-color: #fff;
}

#err-modal-container .btn-send:hover:not(:disabled) {
    background: #fc6c3f;
    border-color: #ffffff;
}

#err-modal-container .btn-close {
    background: #508d0e;
    color: #fff;
    border-color: #ccc;
}

#err-modal-container .btn-close:hover {
    background: #fc6c3f;
    border-color: #f5c6cb;
    color: #ffffff;
}

/* Элементы успеха */
#err-success-message {
    text-align: center;
    padding: 20px 0;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.simple-error-link {
    font-size: 20px;
    color: #fc6c3f;
    cursor: pointer;
    font-family: "Lobster", sans-serif;
    transition: color 0.3s ease;
}

.simple-error-link:hover {
    color: #508d0e;
}
.error {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 4px;
    background: url('/pics/main/err.png') no-repeat center center;
    background-size: contain;
    transition: 0.3s ease;
}

.simple-error-link:hover .error {
    filter: brightness(0) saturate(100%) invert(44%) sepia(83%) saturate(493%) hue-rotate(48deg) brightness(92%) contrast(93%);
}