/* =========================================================
   IN AN HOANG NAM
   POPUP YÊU CẦU BÁO GIÁ
========================================================= */

.inh-quote-modal {
    --q-green: var(--primary, #08265B);
    --q-border: #D0DDEC;

    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 999998;
    box-sizing: border-box;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.inh-quote-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.inh-quote-open {
    overflow: hidden;
}

.inh-quote-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

/* ---------- Hộp popup ---------- */
.inh-quote-box {
    position: relative;
    display: flex;
    width: 880px;
    max-width: 100%;
    margin: auto;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    z-index: 2;
    transform: translateY(-10px) scale(0.98);
    transition: transform 0.2s ease;
}

.inh-quote-modal.is-open .inh-quote-box {
    transform: translateY(0) scale(1);
}

.inh-quote-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #6b7571;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    transition: background-color 0.2s, color 0.2s;
}

.inh-quote-close:hover {
    color: #222;
    background: #F0F4F9;
}

/* ---------- Cột trái ---------- */
.inh-quote-left {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 14px 16px 16px;
    background: #f1f5f6;
    box-sizing: border-box;
}

.inh-quote-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--q-green);
}

.inh-quote-note {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.55;
    color: #333;
}

.inh-quote-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.inh-quote-row {
    display: flex;
    gap: 10px;
}

.inh-quote-row>* {
    flex: 1 1 0;
    min-width: 0;
}

/* Ô nhập */
.inh-quote-form .inh-quote-input,
.inh-quote-form .inh-quote-textarea {
    display: block;
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.3;
    color: #222;
    background: #ffffff;
    border: 1px solid var(--q-border);
    border-radius: 4px;
    box-shadow: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.inh-quote-form .inh-quote-textarea {
    min-height: 120px;
    resize: vertical;
}

.inh-quote-form .inh-quote-input::placeholder,
.inh-quote-form .inh-quote-textarea::placeholder {
    color: #66758C;
}

.inh-quote-form .inh-quote-input:focus,
.inh-quote-form .inh-quote-textarea:focus {
    outline: 0;
    border-color: var(--q-green);
    box-shadow: 0 0 0 3px rgba(8, 38, 91, 0.15);
}

.inh-quote-form .is-invalid {
    border-color: #d93025;
    box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.12);
}

/* Bỏ mũi tên tăng giảm của input number */
.inh-quote-input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.inh-quote-input[type="number"]::-webkit-outer-spin-button,
.inh-quote-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.inh-quote-label {
    margin-top: 6px;
    font-size: 16px;
    color: #222;
}

.inh-quote-label span {
    color: #66758C;
}

/* Khách chưa đăng nhập */
.inh-quote-guest {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.inh-quote-login-hint {
    margin: 0;
    font-size: 13px;
    color: #465672;
}

.inh-quote-login-hint a {
    color: var(--q-green);
    font-weight: 600;
    text-decoration: underline;
}

/* 3 nút ưu tiên */
.inh-quote-priority {
    margin-top: 8px;
}

.inh-quote-option {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.inh-quote-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.inh-quote-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 6px 8px;
    font-size: 14px;
    text-align: center;
    color: #222;
    background: #ffffff;
    border: 1px solid var(--q-border);
    border-radius: 3px;
    box-sizing: border-box;
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.inh-quote-option:hover span {
    border-color: var(--q-green);
}

.inh-quote-option input:checked+span {
    color: var(--q-green);
    border-color: var(--q-green);
    background: #ffffff;
    box-shadow: inset 0 0 0 1px var(--q-green);
}

.inh-quote-option input:focus-visible+span {
    outline: 2px solid var(--q-green);
    outline-offset: 2px;
}

/* Ô bẫy bot */
.inh-quote-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Thông báo */
.inh-quote-message {
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.45;
    border-radius: 4px;
}

.inh-quote-message.is-error {
    color: #a1261b;
    background: #fdecea;
}

.inh-quote-message.is-success {
    color: #061A42;
    background: #EDF3FA;
}

/* Nút gửi */
.inh-quote-submit {
    width: 100%;
    margin-top: 8px;
    padding: 15px 16px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #ffffff;
    background: var(--q-green);
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    transition: filter 0.2s, opacity 0.2s;
}

.inh-quote-submit:hover {
    filter: brightness(0.92);
}

.inh-quote-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ---------- Cột phải ---------- */
.inh-quote-right {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 16px 24px;
    background: #ffffff;
    box-sizing: border-box;
}

.inh-quote-right-title {
    align-self: flex-start;
    margin: 0;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--q-green);
}

.inh-quote-mascot {
    display: block;
    width: 78%;
    max-width: 340px;
    height: auto;
    margin: auto 0;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .inh-quote-modal {
        padding: 12px 8px;
    }

    .inh-quote-box {
        flex-direction: column;
        width: 480px;
    }

    .inh-quote-left {
        flex: none;
        max-width: 100%;
    }

    .inh-quote-right {
        display: none;
    }

    .inh-quote-title {
        padding-right: 28px;
        font-size: 20px;
    }
}

@media (max-width: 420px) {
    .inh-quote-row--3 {
        gap: 6px;
    }

    .inh-quote-form .inh-quote-input {
        padding: 11px 10px;
        font-size: 14px;
    }

    .inh-quote-option span {
        font-size: 13px;
    }
}

/* =========================================================
   COMBOBOX CHỌN SẢN PHẨM
========================================================= */

.inh-quote-combo {
    position: relative;
}

.inh-quote-form .inh-quote-combo .inh-quote-input {
    padding-right: 40px;
}

.inh-quote-combo-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #465672;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.inh-quote-combo-toggle svg {
    transition: transform 0.2s;
}

.inh-quote-combo.is-open .inh-quote-combo-toggle svg {
    transform: rotate(180deg);
}

.inh-quote-combo-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 240px;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid var(--q-border);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    z-index: 20;
}

.inh-quote-combo-list[hidden] {
    display: none;
}

.inh-quote-combo-item,
.inh-quote-combo-status {
    margin: 0;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.4;
}

.inh-quote-combo-item {
    color: #222;
    cursor: pointer;
}

.inh-quote-combo-item.is-active {
    color: var(--q-green);
    background: rgba(8, 38, 91, 0.1);
}

.inh-quote-combo-status {
    color: #66758C;
}