/* Quote tool — [tmphcm_quote] 3-step picker. */

.tmtphcm-quote__header {
    text-align: center;
    margin-bottom: 20px;
}

.tmtphcm-quote__heading {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
    line-height: 1.3;
}

.tmtphcm-quote__subtext {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.tmtphcm-quote {
    --tmtphcm-q-accent: #c0392b;
    --tmtphcm-q-red: #c0392b;
    --tmtphcm-q-green: #16a34a;
    --tmtphcm-q-zalo: #0068ff;
    max-width: 640px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    font-size: 15px;
    line-height: 1.5;
    color: #222;
}

.tmtphcm-quote__steps {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tmtphcm-quote__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tmtphcm-quote__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--tmtphcm-q-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex: 0 0 auto;
}

.tmtphcm-quote__select {
    width: 100%;
    /* Flatsome forces a short select height + a 22.5px line-height; with our
       padding the line box overflowed and clipped the text top/bottom. Pin an
       explicit height + sane line-height so the label fits cleanly. */
    box-sizing: border-box;
    height: 48px;
    line-height: 1.4;
    padding: 0 40px 0 14px; /* right room for the caret */
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    font-size: 15px;
    color: #222;
    /* Flatsome strips the native arrow (appearance:none) and adds an inset
       shadow — restore a clean look with our own caret + no inset. */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
}

.tmtphcm-quote__select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.tmtphcm-quote__conditions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tmtphcm-quote__cond {
    padding: 12px 10px;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.tmtphcm-quote__cond:hover:not(:disabled) {
    border-color: var(--tmtphcm-q-accent);
}

.tmtphcm-quote__cond.is-active {
    background: var(--tmtphcm-q-accent);
    border-color: var(--tmtphcm-q-accent);
    color: #fff;
}

.tmtphcm-quote__cond:disabled {
    background: #f5f5f5;
    color: #bbb;
    cursor: not-allowed;
}

.tmtphcm-quote__result {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed #e0e0e0;
}

.tmtphcm-quote__estimate {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.tmtphcm-quote__estimate-label {
    font-size: 14px;
    color: #666;
}

.tmtphcm-quote__estimate-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--tmtphcm-q-green);
}

.tmtphcm-quote__disclaimer,
.tmtphcm-quote__note {
    margin: 10px 0 0;
    font-size: 13px;
    color: #777;
    text-align: center;
}

.tmtphcm-quote__ctas {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.tmtphcm-quote__cta {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 12px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
}

.tmtphcm-quote__cta--zalo { background: var(--tmtphcm-q-zalo); }
.tmtphcm-quote__cta--call { background: var(--tmtphcm-q-red); }
.tmtphcm-quote__cta:active { opacity: .9; }

@media (max-width: 480px) {
    .tmtphcm-quote { padding: 16px; border-radius: 10px; }
    .tmtphcm-quote__estimate-value { font-size: 22px; }
}
