/*
 * BrightHER Tomorrow - public website additions (loaded by header.php after css/custom.css).
 *   1. page loader while a page loads (html.bht-loading, set in header.php; the loader look is css/bht-loader.css)
 *   2. INQUIRY popup (#inquiryModal in footer_new.php)
 */
:root {
    --bhtp-gold: #f5a623;
    --bhtp-gold-dark: #e0920f;
    --bhtp-gold-soft: #fff6e6;
    --bhtp-ink: #23262d;
    --bhtp-text: #4a4f58;
    --bhtp-muted: #7b808a;
    --bhtp-line: #e3e6eb;
    --bhtp-crimson: #b70021;
}

/* 1. loader while the page loads */
html.bht-loading .response_gif { display: block !important; }

/* 2. INQUIRY popup */
.bht-inq .modal-dialog { max-width: 620px; padding: 0 12px; }
.bht-inq .modal-content {
    position: relative;
    border: 0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.25);
    font-family: "Roboto", "Segoe UI", Arial, sans-serif;
    background: #fff;
}
.bht-inq .modal-content::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bhtp-crimson), var(--bhtp-gold));
}
.bht-inq-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    color: var(--bhtp-muted);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background-color .15s ease, color .15s ease;
}
/* ✕ pinned to the exact centre of the circle, whatever padding/margin site styles give buttons or icons */
.bht-inq .bht-inq-close { padding: 0 !important; overflow: hidden; }
.bht-inq-close > i {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    line-height: 1 !important;
    text-align: center;
}
.bht-inq-close:hover { background: var(--bhtp-gold-soft); color: var(--bhtp-gold-dark); }
.bht-inq-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 28px 28px 6px;
}
.bht-inq-mark {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--bhtp-gold-soft) url("../images/faviconbri.png") center / 34px auto no-repeat;
    box-shadow: inset 0 0 0 1px rgba(245, 166, 35, 0.25);
}
.bht-inq-head .modal-title {
    margin: 2px 0 4px !important;
    padding: 0 !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    color: var(--bhtp-ink) !important;
    text-transform: none !important;
    letter-spacing: -0.01em;
    text-align: left !important;
}
.bht-inq-head p {
    margin: 0;
    padding-right: 30px;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: var(--bhtp-muted);
}
.bht-inq .modal-body { padding: 16px 28px 26px !important; }
.bht-inq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}
.bht-inq-full { grid-column: 1 / -1; }
.bht-inq-field label {
    display: block;
    margin: 0 0 6px !important;
    padding: 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #3a3f47;
}
.bht-inq-field .req { color: var(--bhtp-crimson); }
.bht-inq-input { position: relative; }
.bht-inq-input > i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #a3a8b1;
    pointer-events: none;
}
/* phone handset facing left (modal + footer contact) */
.bht-inq-input > i.fa-phone { transform: translateY(-50%) scaleX(-1); }
.contway i.fa-phone { display: inline-block; transform: scaleX(-1); }
/* INQUIRY triggers (header button + CTA in footer_new.php) */
[data-bs-target="#inquiryModal"] { cursor: pointer; }
.bht-inq .form-control {
    width: 100%;
    height: 44px !important;
    padding: 0 12px 0 36px !important;
    border: 1px solid var(--bhtp-line) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--bhtp-ink) !important;
    font-size: 14px !important;
    box-shadow: none !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.bht-inq textarea.form-control {
    height: auto !important;
    min-height: 110px;
    padding: 10px 12px !important;
    resize: vertical;
    line-height: 1.5;
}
.bht-inq .form-control::placeholder { color: #a3a8b1; }
.bht-inq .form-control:focus {
    outline: 0;
    border-color: var(--bhtp-gold) !important;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.18) !important;
}
.bht-inq .form-control:focus + i,
.bht-inq-input:focus-within > i { color: var(--bhtp-gold-dark); }
.bht-inq .mendetory {
    display: block;
    min-height: 0;
    margin-top: 4px;
    font-size: 12px;
    color: var(--bhtp-crimson);
}
.bht-inq .mendetory:empty { display: none; }
.bht-inq-field.has-error .form-control { border-color: #e8a0ab !important; background: #fffafa !important; }
.bht-inq-notice {
    display: none;
    margin: 0 0 14px;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.45;
}
.bht-inq-notice.is-success,
.bht-inq-notice.is-error { display: block; }
.bht-inq-notice.is-success { background: #e9f7ef; color: #146c43; border: 1px solid #bfe5cf; }
.bht-inq-notice.is-error { background: #fdecef; color: #9b001c; border: 1px solid #f4c7cf; }
.bht-inq-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f1f4;
}
.bht-inq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
    height: 44px;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}
.bht-inq-btn:active { transform: translateY(1px); }
.bht-inq-btn-main {
    border: 1px solid var(--bhtp-gold);
    background: var(--bhtp-gold);
    color: #2b1d00;
    box-shadow: 0 6px 16px rgba(245, 166, 35, 0.3);
}
.bht-inq-btn-main:hover { background: var(--bhtp-gold-dark); border-color: var(--bhtp-gold-dark); color: #1f1500; }
.bht-inq-btn-main.is-busy { opacity: .8; cursor: progress; }
.bht-inq-btn-light {
    border: 1px solid var(--bhtp-line);
    background: #fff;
    color: var(--bhtp-ink);
}
.bht-inq-btn-light:hover { background: #f5f6f8; }
@media (max-width: 575px) {
    .bht-inq-head { padding: 24px 20px 4px; }
    .bht-inq .modal-body { padding: 14px 20px 22px !important; }
    .bht-inq-grid { grid-template-columns: 1fr; }
    .bht-inq-actions { flex-direction: column-reverse; }
    .bht-inq-btn { width: 100%; }
}
