/* Project-specific header polish for Áo Bóng Đá 24h. */
body.dq-global-chrome .dq-header .dq-container {
    width: min(1360px, calc(100% - 64px));
}

body.dq-global-chrome .dq-topbar {
    border: 0;
    background: #071a3d;
    color: #fff;
    font-size: 13px;
}

body.dq-global-chrome .dq-topbar__inner {
    min-height: 36px;
}

body.dq-global-chrome .dq-topbar a {
    color: #ffb27a;
    font-weight: 700;
}

body.dq-global-chrome .dq-header-main--desktop .dq-header-main__grid {
    height: 76px;
    min-height: 76px;
    grid-template-columns: 225px minmax(0, 1fr) auto;
    gap: 18px;
}

body.dq-global-chrome .dq-header-main--desktop .dq-logo img {
    width: 225px !important;
    max-width: 225px !important;
    max-height: 72px;
}

body.dq-global-chrome .dq-header-main--desktop .dq-header-zone--right {
    gap: 10px;
    flex-wrap: nowrap;
}

body.dq-global-chrome .dq-header-search {
    position: relative;
    flex: 0 0 auto;
}

body.dq-global-chrome .dq-header-search__toggle {
    display: inline-grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid #d7e1ee;
    border-radius: 50%;
    background: #f7f9fc;
    color: #071a3d;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

body.dq-global-chrome .dq-header-search__toggle svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

body.dq-global-chrome .dq-header-search__toggle:hover,
body.dq-global-chrome .dq-header-search__toggle:focus-visible,
body.dq-global-chrome .dq-header-search.is-open .dq-header-search__toggle {
    border-color: var(--dq-primary);
    background: var(--dq-primary);
    color: #fff;
    transform: translateY(-1px);
}

body.dq-global-chrome .dq-header-search__panel {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    z-index: 90;
    width: min(410px, calc(100vw - 32px));
    padding: 20px;
    border: 1px solid #dbe6f3;
    border-radius: 18px;
    background: #fff;
    text-align: left;
    box-shadow: 0 22px 54px rgba(7, 26, 61, .2);
}

body.dq-global-chrome .dq-header-search__panel[hidden] { display: none; }
body.dq-global-chrome .dq-header-search__panel::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 14px;
    width: 12px;
    height: 12px;
    border-top: 1px solid #dbe6f3;
    border-left: 1px solid #dbe6f3;
    background: #fff;
    transform: rotate(45deg);
}

body.dq-global-chrome .dq-header-search__panel > p {
    display: grid;
    gap: 2px;
    margin: 0 0 14px;
}

body.dq-global-chrome .dq-header-search__panel > p strong { color: #071a3d; font-size: 17px; }
body.dq-global-chrome .dq-header-search__panel > p span,
body.dq-global-chrome .dq-header-search__hint { color: #66758a; font-size: 12px; }
body.dq-global-chrome .dq-header-search__hint { display: block; margin-top: 10px; }

body.dq-global-chrome .dq-header-main--desktop .dq-header-zone--center {
    justify-content: center;
}

body.dq-global-chrome .dq-header-main--desktop .dq-menu {
    gap: 16px;
}

body.dq-global-chrome .dq-header-main--desktop .dq-menu a {
    position: relative;
    font-size: 15px;
    line-height: 1.15;
    text-transform: uppercase;
    white-space: nowrap;
}

body.dq-global-chrome .dq-header-main--desktop .dq-menu a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    background: #ff6800;
    transform: scaleX(0);
    transition: transform .2s ease;
}

body.dq-global-chrome .dq-header-main--desktop .dq-menu a:hover::after,
body.dq-global-chrome .dq-header-main--desktop .dq-menu .current-menu-item > a::after,
body.dq-global-chrome .dq-header-main--desktop .dq-menu .current-menu-ancestor > a::after {
    transform: scaleX(1);
}

body.dq-global-chrome .dq-header-main--desktop .search-form {
    display: flex;
    align-items: center;
    width: 170px;
    flex: 0 0 170px;
    height: 42px;
    margin: 0;
    padding: 4px;
    border: 1px solid #d7e1ee;
    border-radius: 999px;
    background: #f7f9fc;
    box-shadow: inset 0 1px 2px rgba(7, 26, 61, .04);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

body.dq-global-chrome .dq-header-main--desktop .dq-header-search__panel .search-form {
    width: 100%;
    height: 48px;
    flex: none;
    border-color: #cbd9e9;
}

body.dq-global-chrome .dq-header-main--desktop .search-form:focus-within {
    border-color: var(--dq-primary);
    background: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dq-primary) 14%, transparent);
}

body.dq-global-chrome .dq-header-main--desktop .search-form label {
    display: flex;
    min-width: 0;
    height: 100%;
    flex: 1 1 auto;
    margin: 0;
}

body.dq-global-chrome .dq-header-main--desktop .search-field {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--dq-text);
    font: inherit;
    font-size: 13px;
    outline: 0;
    box-shadow: none;
}

body.dq-global-chrome .dq-header-main--desktop .search-field::placeholder {
    color: #78869a;
    opacity: 1;
}

body.dq-global-chrome .dq-header-main--desktop .search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    min-width: 68px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: var(--dq-primary);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

body.dq-global-chrome .dq-header-main--desktop .search-submit:hover {
    background: var(--dq-primary-hover);
    transform: translateY(-1px);
}

body.dq-global-chrome .dq-header-main--desktop .dq-header-btn {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff7a16, #ff5a00);
    box-shadow: 0 7px 18px rgba(255, 104, 0, .2);
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    transition: box-shadow .2s ease, transform .2s ease;
}

body.dq-global-chrome .dq-header-main--desktop .dq-hotline {
    min-height: 42px;
    padding: 0 13px;
    border-radius: 12px;
    background: var(--dq-primary);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    flex: 0 0 auto;
}

body:has(.dq-header-quote[open]) { overflow: hidden; }

.dq-header-quote {
    width: min(920px, calc(100vw - 36px));
    max-width: 920px;
    max-height: calc(100vh - 40px);
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 24px;
    background: #fff;
    color: #071a3d;
    box-shadow: 0 30px 90px rgba(2, 13, 34, .38);
}

.dq-header-quote::backdrop {
    background: rgba(2, 13, 34, .68);
    backdrop-filter: blur(5px);
}

.dq-header-quote__layout {
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(430px, 1.18fr);
    min-height: 610px;
}

.dq-header-quote__intro {
    position: relative;
    overflow: hidden;
    padding: 52px 38px;
    background: linear-gradient(145deg, #071a3d 0%, #0758c7 68%, #09b6ff 140%);
    color: #fff;
}

.dq-header-quote__intro::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -100px;
    width: 260px;
    height: 260px;
    border: 55px solid rgba(255,255,255,.08);
    border-radius: 50%;
}

.dq-header-quote__eyebrow {
    margin: 0 0 14px;
    color: #ffb27a;
    font-size: 12px;
    font-weight:750;
    letter-spacing: .14em;
}

.dq-header-quote__intro h2 {
    max-width: 320px;
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.06;
    text-transform: uppercase;
}

.dq-header-quote__lead {
    margin: 20px 0 0;
    color: #dfeeff;
    font-size: 15px;
    line-height: 1.7;
}

.dq-header-quote__intro ul {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 13px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.dq-header-quote__intro li {
    display: grid;
    grid-template-columns: 25px 1fr;
    gap: 9px;
    align-items: start;
    font-size: 14px;
    line-height: 1.45;
}

.dq-header-quote__intro li::before {
    content: "✓";
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: #ff6800;
    color: #fff;
    font-size: 12px;
    font-weight:750;
}

.dq-header-quote__brand {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(100%, 300px);
    min-height: 92px;
    margin-top: 30px;
    padding: 10px 16px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 16px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 14px 30px rgba(2,13,34,.18);
}

.dq-header-quote__brand img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 82px;
    object-fit: contain;
}

.dq-header-quote__form { padding: 42px 38px 32px; background: #fff; }
.dq-header-quote__form h3 { margin: 0; color: #071a3d; font-size: 26px; }
.dq-header-quote__form-lead { margin: 4px 0 22px; color: #66758a; font-size: 13px; }
.dq-header-quote__form .dqc-contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 14px; max-width: none; }
.dq-header-quote__form .dqc-contact-form p { margin: 0; }
.dq-header-quote__form .dqc-contact-form p:nth-of-type(5) { grid-column: 1 / -1; }
.dq-header-quote__form .dqc-contact-form label { display: block; color: #071a3d; font-size: 13px; font-weight: 750; }
.dq-header-quote__form .dqc-contact-form label > span { color: #ff6800; }
.dq-header-quote__form .dqc-contact-form input,
.dq-header-quote__form .dqc-contact-form textarea {
    width: 100%;
    min-height: 43px;
    margin-top: 5px;
    padding: 9px 11px;
    border: 1px solid #d5e1ee;
    border-radius: 10px;
    background: #f7faff;
    color: #071a3d;
    font: inherit;
    outline: 0;
}
.dq-header-quote__form .dqc-contact-form input:focus,
.dq-header-quote__form .dqc-contact-form textarea:focus { border-color: #0768e7; box-shadow: 0 0 0 3px rgba(7,104,231,.12); }
.dq-header-quote__form .dqc-contact-form textarea { height: 82px; min-height: 82px; resize: vertical; }
.dq-header-quote__form .dqc-contact-form input[type=number] { max-width: 110px; }
.dq-header-quote__form .dqc-contact-form button { min-height: 44px; border: 0; border-radius: 999px; background: linear-gradient(135deg,#ff7a16,#ff5a00); box-shadow: 0 8px 20px rgba(255,104,0,.22); cursor: pointer; }
.dq-header-quote__privacy { margin: 14px 0 0; color: #758398; font-size: 11px; text-align: center; }

.dq-header-quote__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 1px solid #dbe6f3;
    border-radius: 50%;
    background: #fff;
    color: #071a3d;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(7,26,61,.12);
}

body.dq-global-chrome .dq-header-main--desktop .dq-header-btn:hover {
    background: linear-gradient(135deg, #ff6b08, #e94f00);
    color: #fff;
    box-shadow: 0 9px 22px rgba(255, 104, 0, .28);
    transform: translateY(-1px);
}

@media (max-width: 1300px) {
    body.dq-global-chrome .dq-header-main--desktop .dq-header-btn {
        display: none;
    }

    body.dq-global-chrome .dq-header .dq-container {
        width: min(100% - 40px, 1240px);
    }

    body.dq-global-chrome .dq-header-main--desktop .dq-header-main__grid {
        grid-template-columns: 200px minmax(0, 1fr) auto;
    }

    body.dq-global-chrome .dq-header-main--desktop .dq-logo img {
        width: 200px !important;
        max-width: 200px !important;
    }

    body.dq-global-chrome .dq-header-main--desktop .dq-menu {
        gap: 12px;
    }

    body.dq-global-chrome .dq-header-main--desktop .dq-menu a {
        font-size: 13px;
    }

    body.dq-global-chrome .dq-header-main--desktop .search-form {
        width: 150px;
        flex-basis: 150px;
    }
}

@media (max-width: 900px) {
    html {
        margin-top: 0 !important;
    }

    #wpadminbar,
    body.dq-global-chrome .dq-topbar {
        display: none !important;
    }

    body.admin-bar.dq-global-chrome .dq-header--sticky {
        top: 0;
    }

    body.dq-global-chrome .dq-header .dq-container {
        width: min(100% - 28px, 760px);
    }
}

@media (max-width: 720px) {
    .dq-header-quote { width: min(100% - 20px, 560px); max-height: calc(100vh - 20px); border-radius: 18px; }
    .dq-header-quote__layout { grid-template-columns: 1fr; }
    .dq-header-quote__intro { padding: 34px 24px 30px; }
    .dq-header-quote__intro h2 { font-size: 31px; }
    .dq-header-quote__intro ul { margin-top: 22px; }
    .dq-header-quote__brand { width: min(100%, 260px); min-height: 80px; margin-top: 24px; }
    .dq-header-quote__brand img { max-height: 70px; }
    .dq-header-quote__form { padding: 28px 20px 24px; }
    .dq-header-quote__form .dqc-contact-form { grid-template-columns: 1fr; }
    .dq-header-quote__form .dqc-contact-form p,
    .dq-header-quote__form .dqc-contact-form p:nth-of-type(5) { grid-column: 1; }
}
