/* Nút liên hệ gửi bài / đăng tin + modal (P1 — Site.Master + Default.aspx) */
.ola-trending-util__tip {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 6px;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    background-image: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    font: inherit;
    font-size: 12px;
    line-height: 1.45;
    color: #475569;
    cursor: pointer;
    text-align: left;
    max-width: 100%;
}

.ola-trending-util__tip:focus,
.ola-trending-util__tip:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.ola-trending-util__tip-ico {
    flex-shrink: 0;
    color: #ea580c;
    font-size: 13px;
    line-height: 1;
}

.ola-trending-util__tip-label {
    color: #64748b;
    font-weight: 500;
}

.ola-trending-util__tip-phone {
    color: orangered;
    font-weight: 700;
    text-decoration: none;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.ola-trending-util__tip:hover .ola-trending-util__tip-label {
    color: #334155;
}

.ola-trending-util__tip:hover .ola-trending-util__tip-phone {
    color: #b91c1c;
}

/* Trên FAB support (z cực cao) — modal + backdrop phải nổi hơn khi mở tip */
.ola-tip-modal.modal {
    z-index: 200050 !important;
}
body.ola-tip-modal-open .modal-backdrop {
    z-index: 200040 !important;
}
body.ola-tip-modal-open #olaSupportWidget {
    visibility: hidden !important;
    pointer-events: none !important;
}

.ola-tip-modal .modal-dialog.ola-tip-modal__dialog,
.ola-tip-modal__dialog {
    width: min(720px, calc(100vw - 1.25rem));
    max-width: min(720px, calc(100vw - 1.25rem));
    max-height: calc(100dvh - 1rem);
    margin: 0.5rem auto;
    pointer-events: auto;
}

/* Căn giữa ổn định: content co theo viewport, body scroll */
.ola-tip-modal .modal-dialog-centered {
    min-height: calc(100% - 1rem);
    display: flex;
    align-items: center;
}

.ola-tip-modal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
    width: 100%;
    max-height: calc(100dvh - 1rem);
    display: flex;
    flex-direction: column;
}

.ola-tip-modal.modal-dialog-scrollable .modal-content,
.ola-tip-modal .modal-dialog-scrollable .modal-content {
    max-height: calc(100dvh - 1rem);
}

.ola-tip-modal .modal-header {
    background: linear-gradient(135deg, #0b57d0 0%, #1d4ed8 55%, #2563eb 100%);
    color: #fff;
    border: none;
    padding: 18px 20px;
    align-items: flex-start;
    gap: 12px;
    flex-shrink: 0;
}

.ola-tip-modal__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.ola-tip-modal__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.ola-tip-modal .modal-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.ola-tip-modal__subtitle {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}

.ola-tip-modal__hotline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 12px;
    color: #fff;
}

.ola-tip-modal__hotline i {
    font-size: 11px;
    opacity: 0.9;
}

.ola-tip-modal__hotline a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.ola-tip-modal__hotline a:hover {
    text-decoration: underline;
}

.ola-tip-modal .btn-close {
    filter: invert(1);
    opacity: 0.9;
    margin: 0;
    padding: 0.5rem;
}

.ola-tip-modal .modal-body {
    padding: 18px 20px 12px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.ola-tip-modal .modal-footer,
.ola-tip-modal__footer {
    flex-shrink: 0;
    border: none;
    border-top: 1px solid #e2e8f0;
    padding: 12px 20px 16px;
    background: #fff;
}

.ola-tip-modal__intro {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
}

.ola-tip-modal .form-label {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 5px;
}

.ola-tip-modal .form-control {
    border-radius: 10px;
    font-size: 14px;
    padding: 9px 12px;
    border-color: #e2e8f0;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ola-tip-modal .form-control:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ola-tip-modal .ola-tip-field {
    margin-bottom: 10px;
}

.ola-tip-modal .ola-tip-field--editor .note-editor.note-frame {
    border-radius: 10px;
    border-color: #e2e8f0;
    overflow: hidden;
    box-shadow: none;
}

.ola-tip-modal .ola-tip-field--editor .note-toolbar {
    border-bottom-color: #e2e8f0;
    background: #f8fafc;
    border-radius: 10px 10px 0 0;
}

.ola-tip-modal .ola-tip-field--editor .note-editable {
    /* Trước 500px cố định → modal tràn viewport / lệch centered */
    min-height: clamp(180px, 28vh, 280px);
    max-height: clamp(220px, 36vh, 360px);
    overflow-y: auto !important;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 14px;
    line-height: 1.6;
    color: #0f172a;
}

.ola-tip-modal .ola-tip-field--editor .note-editor.note-frame {
    max-width: 100%;
}

/* Summernote dialog/link trong Bootstrap modal — tránh bị che */
.ola-tip-modal .note-modal,
.ola-tip-modal .note-popover,
.ola-tip-modal .note-dropdown-menu {
    z-index: 1065 !important;
}

/* Phòng fullscreen sót (không dùng trong modal) */
body > .note-editor.note-frame.fullscreen {
    z-index: 2000 !important;
}

.ola-tip-modal .ola-tip-editor-hint {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.45;
    color: #94a3b8;
}

.ola-tip-modal .ola-tip-captcha {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
}

.ola-tip-modal .ola-tip-captcha__label {
    display: block;
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

.ola-tip-modal .ola-tip-captcha__row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.ola-tip-modal .ola-tip-captcha__img-btn {
    flex: 0 0 118px;
    width: 118px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ola-tip-modal .ola-tip-captcha__img-btn:hover {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ola-tip-modal .ola-tip-captcha__img-btn img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ola-tip-modal .ola-tip-captcha__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-indent: 0.35em;
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ola-tip-modal .ola-tip-captcha__input::placeholder {
    letter-spacing: 0.28em;
    text-indent: 0.28em;
    font-weight: 600;
    color: #cbd5e1;
}

.ola-tip-modal .ola-tip-captcha__input:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

.ola-tip-modal .ola-tip-alert {
    display: none;
    font-size: 13px;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.ola-tip-modal .ola-tip-alert.is-show {
    display: block;
}

.ola-tip-modal .ola-tip-alert.is-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.ola-tip-modal .ola-tip-alert.is-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.ola-tip-modal__intro.is-hidden,
.ola-tip-contact-form.is-hidden {
    display: none !important;
}

.ola-tip-modal__footer.is-hidden {
    display: none !important;
}

.ola-tip-success {
    display: none;
    text-align: center;
    padding: 24px 12px 16px;
}

.ola-tip-success.is-show {
    display: block;
    animation: olaTipSuccessFadeIn 0.35s ease;
}

@keyframes olaTipSuccessFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes olaTipSuccessPop {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }

    70% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.ola-tip-success__icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
    border: 3px solid #6ee7b7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: #059669;
    animation: olaTipSuccessPop 0.5s ease;
}

.ola-tip-success__title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: #065f46;
    letter-spacing: -0.01em;
}

.ola-tip-success__msg {
    margin: 0 auto 14px;
    max-width: 360px;
    font-size: 14px;
    line-height: 1.65;
    color: #047857;
}

.ola-tip-success__hint {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

.ola-tip-success__hint strong {
    color: #0b57d0;
    font-weight: 700;
}

.ola-tip-modal .ola-tip-form-actions {
    margin-top: 14px;
    padding-top: 4px;
}

.ola-tip-modal__footer .btn-submit-tip,
.ola-tip-modal .btn-submit-tip {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 13px 16px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.01em;
    color: #fff;
    background: linear-gradient(135deg, #0b57d0 0%, #2563eb 100%);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.ola-tip-modal .btn-submit-tip:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.34);
}

.ola-tip-modal .btn-submit-tip:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 575.98px) {
    .ola-tip-modal .modal-dialog.ola-tip-modal__dialog {
        width: calc(100vw - 0.75rem);
        max-width: calc(100vw - 0.75rem);
        margin: 0.35rem auto;
        align-items: flex-start;
    }

    .ola-tip-modal .modal-header,
    .ola-tip-modal .modal-body,
    .ola-tip-modal .modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ola-tip-modal .ola-tip-field--editor .note-editable {
        min-height: 160px;
        max-height: 40vh;
    }

    .ola-tip-modal .ola-tip-captcha__row {
        flex-direction: column;
    }

    .ola-tip-modal .ola-tip-captcha__img-btn {
        width: 100%;
        flex-basis: auto;
    }
}
