:root {
    --primary: #075da8;
    --primary-2: #0a7bc2;
    --dark: #043964;
    --soft: #f3f9ff;
    --text: #17344f;
    --muted: #64788c;
    --line: #dcebf7;
    --shadow: 0 10px 30px rgba(4, 57, 100, .12);
    --radius: 14px
}

* {
    box-sizing: border-box
}
body {
    font-family: "Inter", sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
button,
input,
select,
textarea {
    font-family: "Inter", sans-serif !important;
}

em {
    font-style: italic;
}

strong {
    font-weight: 700;
}

strong em,
em strong {
    font-weight: 700;
    font-style: italic;
}



.container-xl {
    max-width: 1180px
}

.header-main {
    height: 65px
}

.navbar {
    min-height: 44px
}

.navbar-brand {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: .2px
}

.brand-icon {
    width: 26px;
    height: 22px;
    border-radius: 6px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #1eb7dc, var(--primary));
    color: #fff;
    font-size: 13px
}

.navbar .nav-link {
    font-size: 12px;
    font-weight: 600;
    color: #2b4b66;
    padding: 20px 10px
}

.navbar .nav-link:hover {
    color: var(--primary)
}

.btn-booking {
    font-size: 11px;
    text-transform: uppercase;
    border-radius: 4px;
    padding: 6px 13px;
    background: var(--primary);
    border: 0
}

.navbar-toggler {
    padding: 3px 7px;
    border: 0
}

.navbar-toggler:focus {
    box-shadow: none
}

.hero-section {
    min-height: 230px;
    background: radial-gradient(circle at 13% 38%, rgba(95, 205, 236, .5), transparent 22%), linear-gradient(100deg, #054a7d, #0a79bd 58%, #075c99);
    position: relative
}

.hero-section:before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../images/service-thyroid.png') left center/260px no-repeat;
    opacity: .18
}

.hero-row {
    min-height: 230px
}

.hero-doctor img {
    max-height: 225px;
    margin: 0 auto;
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .25))
}

.hero-label {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .12em;
    font-size: 15px
}

.hero-content h1 {
    font-size: 34px;
    line-height: 1.04;
    margin: 2px 0 4px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .5px
}

.hero-content p {
    font-size: 15px;
    margin: 0 0 8px
}

.hero-checks {
    font-size: 13px
}

.hero-checks i {
    color: #9deaff
}

.hero-btn {
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 7px 20px
}

.quick-contact {
    position: absolute;
    right: 24px;
    bottom: 0;
    z-index: 4;
    width: 74px;
    padding: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    gap: 6px
}

.quick-contact a {
    height: 44px;
    border-radius: 8px;
    background: var(--soft);
    color: var(--primary);
    text-align: center;
    text-decoration: none;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

.quick-contact i {
    font-size: 15px
}

.section-sm {
    padding: 30px 0
}

.section-xs {
    padding: 24px 0
}

.bg-soft {
    background: linear-gradient(180deg, #f4faff 0, #fff 100%)
}

.section-heading {
    margin-bottom: 18px
}

.section-heading span {
    font-family: serif;
    font-style: italic;
    color: #83abc9;
    font-size: 18px
}

.section-heading h2 {
    font-size: 20px;
    line-height: 1.25;
    margin: 0;
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase
}

.section-heading p {
    font-size: 13px;
    color: var(--muted);
    margin: 4px 0 0
}

.image-card,
.social-panel,
.service-card,
.award-box,
.reason-item,
.journey-card,
.testimonial-box,
.news-main,
.news-list a {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow)
}

.intro-img {
    overflow: hidden
}

.intro-img img {
    width: 100%;
    height: 365px;
    object-fit: cover
}

.lead-text {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 8px
}

.signature {
    font-family: serif;
    font-size: 28px;
    font-style: italic;
    color: #5f87a6;
    margin: 0 0 8px
}

.trust-tags span {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 10px
}

.social-panel {
    padding: 14px
}

.social-panel h3 {
    font-size: 14px;
    color: var(--primary);
    font-weight: 800;
    margin: 0 0 9px
}

.social-panel a {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--soft);
    border-radius: 8px;
    padding: 8px 10px;
    margin-top: 7px;
    text-decoration: none;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700
}

.service-card {
    height: 100%;
    padding: 10px;
    transition: .25s;
    text-align: center;
}

.service-card img {
    width: 100%;
    height: 128px;
    object-fit: cover;
    border-radius: 11px
}

.service-card h3 {
    font-size: 15px;
    color: var(--primary);
    font-weight: 800;
    margin: 10px 0 4px;
    text-transform: uppercase
}

.service-card p {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 5px
}

.service-card a {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none
}

.service-card:hover,
.award-box:hover,
.journey-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(4, 57, 100, .17)
}

.award-box {
    min-height: 80px;
    padding: 14px;
    text-align: center;
    display: grid;
    place-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text);
    font-weight: 700
}

.award-box i {
    font-size: 25px;
    color: var(--primary)
}

.why-doctor {
    max-height: 400px;
    filter: drop-shadow(0 12px 20px rgba(4, 57, 100, .15))
}

.reason-item {
    height: 100%;
    padding: 12px;
    display: flex;
    gap: 11px;
    align-items: flex-start
}

.reason-item i {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--soft);
    color: var(--primary);
    font-size: 17px;
    flex: 0 0 auto
}

.reason-item h3 {
    font-size: 14px;
    font-weight: 800;
    margin: 0 0 3px;
    color: var(--primary)
}

.reason-item p {
    font-size: 12px;
    color: var(--muted);
    margin: 0
}

.journey-card {
    position: relative;
    overflow: hidden;
    height: 105px
}

.journey-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.72)
}

.journey-card span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 24px
}

.journey-card h3 {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 6px;
    margin: 0;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .4)
}

.process-scroll {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px
}

.process-step {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    text-align: center;
    padding: 11px 8px;
    min-height: 82px
}

.process-step:not(:last-child):after {
    content: "";
    position: absolute;
    right: -9px;
    top: 50%;
    width: 10px;
    height: 1px;
    background: #79b6dd
}

.process-step b {
    position: absolute;
    top: 5px;
    left: 8px;
    color: #ff3d3d;
    font-size: 11px
}

.process-step i {
    display: block;
    color: var(--primary);
    font-size: 21px;
    margin: 7px 0 4px
}

.process-step span {
    font-size: 11px;
    font-weight: 700
}

.gallery-grid img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 6px;
    transition: .25s
}

.gallery-grid img:hover {
    transform: scale(1.025);
    filter: brightness(.92)
}

.testimonial-box {
    max-width: 920px;
    padding: 14px
}

.testimonial-box img {
    width: 100%;
    height: 115px;
    object-fit: cover;
    border-radius: 10px
}

.testimonial-box p {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 8px
}

.testimonial-box strong {
    font-size: 13px;
    color: var(--primary)
}

.news-main {
    height: 100%;
    padding: 10px
}

.news-main img,
.fanpage-img {
    width: 100%;
    height: 172px;
    object-fit: cover;
    border-radius: 10px
}

.news-main h3 {
    font-size: 15px;
    font-weight: 800;
    margin: 10px 0 5px;
    color: var(--text)
}

.news-main p {
    font-size: 12px;
    color: var(--muted);
    margin: 0
}

.news-list {
    display: grid;
    gap: 8px
}

.news-list a {
    display: block;
    padding: 9px 10px;
    text-decoration: none;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35
}

.fanpage-img {
    border: 1px solid var(--line);
    box-shadow: var(--shadow)
}

.booking-section {
    padding: 14px 0;
    background: #fff
}

.booking-inner {
    background: linear-gradient(90deg, var(--primary), var(--dark));
    border-radius: 6px;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 33% 67%;
    gap: 18px;
    align-items: center;
    color: #fff
}

.booking-copy h2 {
    font-size: 22px;
    text-transform: uppercase;
    font-weight: 800;
    margin: 0 0 2px
}

.booking-copy p {
    font-size: 12px;
    margin: 0;
    color: #d7efff
}

.booking-form {
    background: #fff;
    border-radius: 6px;
    padding: 9px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr auto;
    gap: 8px
}

.booking-form input {
    height: 37px;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0 10px;
    font-size: 12px;
    outline: none
}

.booking-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(7, 93, 168, .1)
}

.booking-form button {
    height: 37px;
    border: 0;
    border-radius: 4px;
    background: #15a863;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 0 18px
}

.footer-main {
    padding: 26px 0;
    background: #052b4d;
    color: #c7dff4
}

.footer-main h3,
.footer-main h4 {
    color: #fff;
    font-weight: 800;
    margin-bottom: 8px
}

.footer-main h3 {
    font-size: 20px
}

.footer-main h4 {
    font-size: 14px
}

.footer-main p {
    font-size: 12px;
    margin: 0
}

.footer-social {
    display: flex;
    gap: 8px;
    margin-top: 12px
}

.footer-social i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #0b4779;
    display: grid;
    place-items: center;
    color: #fff
}

.anim-up {
    animation: fadeUp .7s both
}

.anim-left {
    animation: fadeLeft .7s both
}

.anim-right {
    animation: fadeRight .7s both
}

.delay-1 {
    animation-delay: .12s
}

.delay-2 {
    animation-delay: .24s
}

.delay-3 {
    animation-delay: .36s
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-20px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(20px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@media(max-width:991.98px) {
    body {
        padding-top: 48px
    }

    .header-main {
        height: auto
    }

    .navbar-collapse {
        background: #fff;
        border-top: 1px solid var(--line);
        padding-bottom: 10px
    }

    .navbar .nav-link {
        padding: 9px 0
    }

    .hero-section,
    .hero-row {
        min-height: auto
    }

    .hero-section {
        padding: 22px 0
    }

    .hero-content {
        text-align: center
    }

    .hero-content h1 {
        font-size: 28px
    }

    .hero-doctor img {
        max-height: 245px
    }

    .hero-checks {
        text-align: left;
        max-width: 420px;
        margin: auto
    }

    .booking-inner {
        grid-template-columns: 1fr
    }

    .booking-form {
        grid-template-columns: 1fr 1fr
    }

    .process-scroll {
        display: flex;
        overflow-x: auto;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory
    }

    .process-step {
        min-width: 150px;
        scroll-snap-align: start
    }

    .process-step:after {
        display: none
    }
}

@media(max-width:767.98px) {
    body {
        padding-top: 48px
    }

    .navbar-brand {
        font-size: 12px
    }

    .hero-section {
        padding: 20px 0 0
    }

    .hero-row {
        flex-direction: column-reverse
    }

    .hero-content h1 {
        font-size: 25px
    }

    .hero-content p {
        font-size: 13px
    }

    .hero-checks {
        font-size: 12px
    }

    .hero-doctor img {
        max-height: 260px
    }

    .section-sm {
        padding: 24px 0
    }

    .section-xs {
        padding: 20px 0
    }

    .section-heading h2 {
        font-size: 20px
    }

    .intro-img img {
        height: auto
    }

    .service-card img {
        height: 165px
    }

    .gallery-grid img {
        height: 140px
    }

    .testimonial-box {
        text-align: center
    }

    .testimonial-box img {
        height: 160px
    }

    .news-main img,
    .fanpage-img {
        height: 175px
    }

    .booking-inner {
        border-radius: 0;
        margin-left: -12px;
        margin-right: -12px
    }

    .booking-form {
        grid-template-columns: 1fr
    }

    .footer-main {
        text-align: center;
        padding-bottom: 70px
    }

    .footer-social {
        justify-content: center
    }
}

@media(max-width:420px) {
    .hero-content h1 {
        font-size: 22px
    }

    .hero-checks .col-6 {
        width: 100%
    }

    .gallery-grid img {
        height: 125px
    }

    .booking-copy h2 {
        font-size: 19px
    }
}

/* ==============================
   MENU CẤP 2 – DESKTOP VÀ MOBILE
================================= */

.navbar-nav .nav-item.has-submenu {
    position: relative;
}

.submenu-toggle {
    display: none;
    padding: 0;
    color: #2b4b66;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.submenu-arrow {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

/* Menu con mặc định */

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: block;
    min-width: 220px;
    margin: 0;
    padding: 7px 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}

.submenu-link {
    display: block;
    padding: 10px 15px;
    color: #2b4b66;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        padding-left 0.2s ease;
}

.submenu-link:hover,
.submenu-link:focus {
    padding-left: 19px;
    color: var(--primary);
    background: var(--soft);
}

/* Desktop: rê chuột để hiện menu cấp 2 */

@media (min-width: 992px) {
    .has-submenu>.nav-link-wrap>.submenu-indicator {
        display: inline-block;
        margin-left: 3px;
        vertical-align: 3px;
    }

    .has-submenu:hover>.submenu,
    .has-submenu:focus-within>.submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* Mobile và tablet */

@media (max-width: 991.98px) {
    .navbar-nav {
        align-items: stretch !important;
    }

    .nav-link-wrap {
        display: flex;
        align-items: center;
        border-bottom: 1px solid var(--line);
    }

    .nav-link-wrap>.nav-link {
        flex: 1;
        min-width: 0;
    }

    .submenu-indicator {
        display: none;
    }

    .submenu-toggle {
        display: grid;
        width: 42px;
        height: 40px;
        flex: 0 0 42px;
        place-items: center;
    }

    .submenu-toggle[aria-expanded="true"] .submenu-arrow {
        transform: rotate(225deg);
    }

    .submenu {
        position: static;
        display: none;
        min-width: 0;
        margin: 0;
        padding: 4px 0 7px 13px;
        background: var(--soft);
        border: 0;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }

    .has-submenu.submenu-open>.submenu {
        display: block;
    }

    .submenu-link {
        padding: 9px 12px;
        white-space: normal;
    }

    .submenu-link:hover,
    .submenu-link:focus {
        padding-left: 15px;
    }
}


/* =================================
   QUY TRÌNH KHÁM
================================= */

.process-section {
    padding: 35px 0 40px;
    overflow: hidden;
    background: linear-gradient(135deg, #112d4e, #2966bd);
}

.process-title {
    margin: 0 0 35px;
    color: var(--primary, #075da8);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
}

.process-scroll {
    width: 100%;
}

.process-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.process-item {
    position: relative;
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
}

.process-card {
    position: relative;
    width: 118px;
    min-width: 118px;
    height: 138px;
    padding: 20px 8px 0;
    overflow: visible;
    background: #fff;
    border: 2px solid #d8e7f5;
    border-radius: 22px;
    box-shadow: 0 7px 18px rgba(7, 93, 168, 0.08);
}

.process-number {
    position: absolute;
    top: -16px;
    left: 50%;
    z-index: 2;
    display: grid;
    width: 32px;
    height: 32px;
    color: #fff;
    background: var(--primary, #075da8);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 3px 9px rgba(7, 93, 168, 0.25);
    font-size: 11px;
    font-weight: 700;
    place-items: center;
    transform: translateX(-50%);
}

.process-card h3 {
    height: 34px;
    margin: 0 0 5px;
    overflow: hidden;
    color: #17344f;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.process-image {
    position: absolute;
    right: 4px;
    bottom: 4px;
    left: 4px;
    height: 76px;
    overflow: hidden;
    border-radius: 4px 4px 18px 18px;
}

.process-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mũi tên nét đứt */

.process-arrow {
    position: relative;
    display: block;
    flex: 1;
    min-width: 25px;
    height: 2px;
    margin: 0 12px;
    border-top: 2px dashed #1685d1;
}

.process-arrow::after {
    position: absolute;
    top: -5px;
    right: -1px;
    width: 9px;
    height: 9px;
    content: "";
    border-top: 2px solid #1685d1;
    border-right: 2px solid #1685d1;
    transform: rotate(45deg);
}

.process-swipe {
    display: none;
}

/* Màn hình laptop nhỏ */

@media (max-width: 1199.98px) {
    .process-card {
        width: 105px;
        min-width: 105px;
    }

    .process-arrow {
        margin: 0 7px;
    }
}

/* Mobile và tablet */

@media (max-width: 991.98px) {
    .process-section {
        padding: 28px 0 30px;
    }

    .process-title {
        margin-bottom: 30px;
        font-size: 20px;
    }

    .process-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        padding: 17px 12px 15px 2px;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .process-scroll::-webkit-scrollbar {
        display: none;
    }

    .process-list {
        width: max-content;
        justify-content: flex-start;
    }

    .process-item {
        flex: none;
        scroll-snap-align: start;
    }

    .process-card {
        width: 132px;
        min-width: 132px;
        height: 150px;
    }

    .process-card h3 {
        height: 38px;
        font-size: 11px;
    }

    .process-image {
        height: 82px;
    }

    .process-arrow {
        width: 45px;
        min-width: 45px;
        flex: none;
        margin: 0 12px;
    }

    .process-swipe {
        display: block;
        margin: 2px 0 0;
        color: #64788c;
        font-size: 11px;
        text-align: center;
    }
}

/* Điện thoại nhỏ */

@media (max-width: 575.98px) {
    .process-title {
        font-size: 18px;
    }

    .process-card {
        width: 125px;
        min-width: 125px;
        height: 145px;
    }

    .process-image {
        height: 78px;
    }

    .process-arrow {
        width: 35px;
        min-width: 35px;
        margin: 0 9px;
    }
}


.process-scroll {
    width: 100%;
}

.process-list {
    display: flex;
    width: 100%;
    align-items: center;
}

/* Các bước 1–5 chiếm phần còn lại và kéo giãn mũi tên */

.process-item {
    position: relative;
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    align-items: center;
}

/* Bước cuối không giữ khoảng trắng thừa bên phải */

.process-item:last-child {
    flex: 0 0 auto;
}

.process-card {
    position: relative;
    width: 155px;
    min-width: 155px;
    height: 150px;
}

/* Mũi tên tự kéo giãn khoảng cách giữa các bước */

.process-arrow {
    position: relative;
    display: block;
    flex: 1 1 auto;
    min-width: 25px;
    height: 2px;
    margin: 0 12px;
    border-top: 2px dashed #1685d1;
}

@media (max-width: 991.98px) {
    .process-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        padding: 17px 2px 15px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .process-scroll::-webkit-scrollbar {
        display: none;
    }

    .process-list {
        width: max-content;
    }

    .process-item,
    .process-item:last-child {
        flex: none;
    }

    .process-card {
        width: 132px;
        min-width: 132px;
        height: 150px;
    }

    .process-arrow {
        width: 45px;
        min-width: 45px;
        flex: none;
        margin: 0 12px;
    }
}

/* Bỏ mũi tên sau bước cuối cùng */

.process-item:last-child .process-arrow,
.process-item:last-child::after,
.process-item:last-child .process-arrow::after {
    display: none !important;
    content: none !important;
}

section.process {
    background: linear-gradient(135deg, #bad4f3, #ffffff);
    padding: 20px;
    margin-bottom: 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 24px
}


@media (max-width: 767px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}
/* ==================================================
   TRANG LIÊN HỆ
================================================== */

.page-contact {
    overflow: hidden;
    color: #17344f;
    background: #f6faff;
}

.page-contact *,
.page-contact *::before,
.page-contact *::after {
    box-sizing: border-box;
}

/* ==================================================
   BANNER
================================================== */

.page-contact .banner {
    position: relative;
    height: 310px;
    overflow: hidden;
    background: #043964;
}

.page-contact .banner-img {
    position: absolute;
    inset: 0;
}

.page-contact .banner-img::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    background:
        linear-gradient(
            90deg,
            rgba(2, 41, 74, 0.88) 0%,
            rgba(3, 67, 112, 0.62) 48%,
            rgba(3, 58, 98, 0.25) 100%
        );
}

.page-contact .banner-img::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    height: 5px;
    content: "";
    background: linear-gradient(
        90deg,
        #075da8,
        #1db8df,
        #075da8
    );
}

.page-contact .banner-img > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: contactBannerZoom 10s ease-out forwards;
}

.page-contact .banner-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    height: 4px;
    background: #28b9df;
    transform: scaleX(0);
    transform-origin: left;
    animation: contactProgress 1.4s ease 0.2s forwards;
}

.page-contact .banner > .container {
    position: relative;
    z-index: 4;
    display: flex;
    width: 100%;
    max-width: 1180px;
    height: 100%;
    margin: 0 auto;
    padding-right: 15px;
    padding-left: 15px;
    align-items: center;
}

.page-contact .banner-content {
    padding-top: 25px;
}

.page-contact .banner-title {
    margin: 0 0 17px;
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

/* Breadcrumb */

.page-contact .breadcrumb {
    margin: 0;
}

.page-contact .breadcrumb-list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
}

.page-contact .breadcrumb-item {
    display: flex;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    align-items: center;
}

.page-contact .breadcrumb-item + .breadcrumb-item::before {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.6);
    content: "/";
}

.page-contact .breadcrumb-link {
    display: inline-flex;
    color: rgba(255, 255, 255, 0.88);
    align-items: center;
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-contact .breadcrumb-link:hover {
    color: #7ee2ff;
}

.page-contact .breadcrumb-link img {
    display: block;
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

/* ==================================================
   KHỐI LIÊN HỆ
================================================== */

.page-contact .sec-system {
    position: relative;
    padding: 70px 0 80px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 8% 30%,
            rgba(39, 184, 223, 0.1),
            transparent 20%
        ),
        radial-gradient(
            circle at 92% 72%,
            rgba(7, 93, 168, 0.08),
            transparent 22%
        ),
        linear-gradient(180deg, #f7fbff 0%, #fff 100%);
}

.page-contact .system {
    position: relative;
}

.page-contact .sec-system .container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-right: 15px;
    padding-left: 15px;
}

/* Hai cột */

.page-contact .system-side {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 38px;
    align-items: stretch;
}

.page-contact .system-side-item {
    min-width: 0;
}

/* ==================================================
   TIÊU ĐỀ
================================================== */

.page-contact .t-title-first {
    position: relative;
    margin: 0 0 28px;
    color: #075da8;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.page-contact .t-title-first::after {
    display: block;
    width: 55px;
    height: 3px;
    margin-top: 11px;
    content: "";
    background: linear-gradient(90deg, #075da8, #27b8df);
    border-radius: 4px;
}

.page-contact .t-title-first.second {
    text-align: center;
}

.page-contact .t-title-first.second::after {
    margin-right: auto;
    margin-left: auto;
}

/* ==================================================
   THÔNG TIN LIÊN HỆ
================================================== */

.page-contact .system-content {
    height: 100%;
    padding: 35px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(241, 249, 255, 0.98)
        );
    border: 1px solid #dcebf7;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(4, 57, 100, 0.1);
}

.page-contact .nets-tt {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.page-contact .nets-tt-item {
    position: relative;
    min-width: 0;
    min-height: 96px;
    padding: 17px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dcebf7;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(4, 57, 100, 0.06);
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

/* Thanh xanh nhỏ trên card */

.page-contact .nets-tt-item::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, #075da8, #25b8df);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.page-contact .nets-tt-item:hover {
    border-color: rgba(7, 93, 168, 0.28);
    box-shadow: 0 12px 25px rgba(4, 57, 100, 0.13);
    transform: translateY(-4px);
}

.page-contact .nets-tt-item:hover::before {
    transform: scaleX(1);
}

.page-contact .nets-tt-item .title {
    margin: 0 0 8px;
    color: #64788c;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.page-contact .nets-tt-item .link {
    display: inline-block;
    overflow-wrap: anywhere;
    color: #075da8;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-contact .nets-tt-item .link:hover {
    color: #0a8bcc;
}

/* QR Zalo */

.page-contact .nets-tt-item:has(.img) {
    grid-row: span 2;
}

.page-contact .nets-tt-item .img {
    width: 100%;
    max-width: 155px;
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    border: 6px solid #fff;
    border-radius: 10px;
    box-shadow: 0 6px 17px rgba(4, 57, 100, 0.12);
}

.page-contact .nets-tt-item .img img {
    display: block;
    width: 40px;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}

/* ==================================================
   FORM LIÊN HỆ
================================================== */

.page-contact .contact-form {
    position: relative;
    height: 100%;
    padding: 35px 38px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dcebf7;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(4, 57, 100, 0.11);
}

.page-contact .contact-form::before {
    position: absolute;
    top: -110px;
    right: -110px;
    width: 260px;
    height: 260px;
    content: "";
    background: radial-gradient(
        circle,
        rgba(39, 184, 223, 0.15),
        transparent 67%
    );
    border-radius: 50%;
    pointer-events: none;
}

.page-contact .wpcf7,
.page-contact .wpcf7-form {
    position: relative;
    z-index: 2;
}

.page-contact .screen-reader-response {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.page-contact .f-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.page-contact .f-item {
    min-width: 0;
}

.page-contact .f-item:last-child {
    grid-column: 1 / -1;
}

.page-contact .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.page-contact .re-input {
    display: block;
    width: 100%;
    height: 49px;
    padding: 12px 15px;
    color: #17344f;
    background: #f8fbfe;
    border: 1px solid #d6e7f3;
    border-radius: 9px;
    outline: none;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    line-height: 1.45;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.page-contact textarea.re-input {
    height: 135px;
    min-height: 135px;
    resize: vertical;
}

.page-contact .re-input::placeholder {
    color: #8ca1b3;
}

.page-contact .re-input:hover {
    border-color: #a9cce4;
}

.page-contact .re-input:focus {
    background: #fff;
    border-color: #0a7bc2;
    box-shadow: 0 0 0 4px rgba(10, 123, 194, 0.11);
}

/* Nút gửi */

.page-contact .contact-form .btn {
    position: relative;
    display: flex;
    width: 155px;
    min-height: 46px;
    margin: 20px auto 0;
    padding: 10px 24px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(90deg, #075da8, #0a8dcb);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(7, 93, 168, 0.25);
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-transform: uppercase;
    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.page-contact .contact-form .btn::before {
    position: absolute;
    top: -50%;
    left: -100%;
    width: 45%;
    height: 200%;
    content: "";
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.42),
        transparent
    );
    transform: rotate(20deg);
    transition: left 0.65s ease;
}

.page-contact .contact-form .btn .text {
    position: relative;
    z-index: 2;
}

.page-contact .contact-form .btn:hover {
    color: #fff;
    box-shadow: 0 12px 27px rgba(7, 93, 168, 0.35);
    transform: translateY(-3px);
}

.page-contact .contact-form .btn:hover::before {
    left: 140%;
}

.page-contact .contact-form .btn:active {
    box-shadow: 0 5px 12px rgba(7, 93, 168, 0.2);
    transform: translateY(0);
}

/* Ảnh mũi tên trang trí */

.page-contact .contact-form-decor {
    position: absolute;
    right: 18px;
    bottom: 15px;
    z-index: 1;
    width: 75px;
    opacity: 0.22;
    pointer-events: none;
}

.page-contact .contact-form-decor img {
    display: block;
    width: 100%;
    height: auto;
}

/* ==================================================
   HỌA TIẾT SAO
================================================== */

.page-contact .sao {
    position: absolute;
    z-index: 1;
    width: 180px;
    pointer-events: none;
    opacity: 0.24;
}

.page-contact .sao:first-child {
    top: 30px;
    left: -55px;
}

.page-contact .sao:nth-child(2) {
    right: -55px;
    bottom: 30px;
    transform: rotate(180deg);
}

.page-contact .sao-img {
    width: 75px;
}

.page-contact .sao-img img,
.page-contact .sao-img-small img {
    display: block;
    width: 100%;
    height: auto;
}

.page-contact .sao-small-list {
    display: flex;
    margin-top: 8px;
    gap: 8px;
}

.page-contact .sao-img-small {
    width: 21px;
}

/* ==================================================
   HIỆU ỨNG
================================================== */

@keyframes contactBannerZoom {
    from {
        transform: scale(1.08);
    }

    to {
        transform: scale(1);
    }
}

@keyframes contactProgress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* ==================================================
   TABLET
================================================== */

@media (max-width: 991.98px) {
    .page-contact .banner {
        height: 260px;
    }

    .page-contact .banner-title {
        font-size: 34px;
    }

    .page-contact .sec-system {
        padding: 50px 0 60px;
    }

    .page-contact .system-side {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .page-contact .system-content,
    .page-contact .contact-form {
        height: auto;
    }

    .page-contact .nets-tt {
        grid-template-columns: 1fr 1fr;
    }

    .page-contact .nets-tt-item:has(.img) {
        grid-row: auto;
    }

    .page-contact .t-title-first {
        font-size: 25px;
    }
}

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 767.98px) {
    .page-contact .banner {
        height: 220px;
    }

    .page-contact .banner-img::before {
        background: rgba(2, 47, 82, 0.7);
    }

    .page-contact .banner-content {
        width: 100%;
        padding-top: 10px;
        text-align: center;
    }

    .page-contact .banner-title {
        margin-bottom: 14px;
        font-size: 29px;
    }

    .page-contact .breadcrumb-list {
        justify-content: center;
    }

    .page-contact .sec-system {
        padding: 35px 0 45px;
    }

    .page-contact .t-title-first {
        margin-bottom: 23px;
        font-size: 22px;
        text-align: center;
    }

    .page-contact .t-title-first::after {
        margin-right: auto;
        margin-left: auto;
    }

    .page-contact .system-content,
    .page-contact .contact-form {
        padding: 25px 20px;
        border-radius: 14px;
    }

    .page-contact .nets-tt {
        grid-template-columns: 1fr 1fr;
        gap: 11px;
    }

    .page-contact .nets-tt-item {
        min-height: 92px;
        padding: 14px;
    }

    .page-contact .nets-tt-item .link {
        font-size: 14px;
    }

    .page-contact .f-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .page-contact .f-item:last-child {
        grid-column: auto;
    }

    .page-contact .re-input {
        height: 48px;
        font-size: 12px;
    }

    .page-contact textarea.re-input {
        height: 125px;
        min-height: 125px;
    }

    .page-contact .sao {
        display: none;
    }
}

/* ==================================================
   ĐIỆN THOẠI NHỎ
================================================== */

@media (max-width: 575.98px) {
    .page-contact .banner {
        height: 195px;
    }

    .page-contact .banner > .container,
    .page-contact .sec-system .container {
        padding-right: 14px;
        padding-left: 14px;
    }

    .page-contact .banner-title {
        font-size: 26px;
    }

    .page-contact .breadcrumb-item {
        font-size: 11px;
    }

    .page-contact .system-side {
        gap: 22px;
    }

    .page-contact .system-content,
    .page-contact .contact-form {
        padding: 22px 15px;
    }

    .page-contact .nets-tt {
        grid-template-columns: 1fr;
    }

    .page-contact .nets-tt-item {
        min-height: 0;
    }

    .page-contact .nets-tt-item:has(.img) {
        text-align: center;
    }

    .page-contact .nets-tt-item .img {
        max-width: 180px;
    }

    .page-contact .contact-form .btn {
        width: 100%;
        min-height: 48px;
    }

    .page-contact .contact-form-decor {
        display: none;
    }
}

/* Giảm hiệu ứng nếu người dùng yêu cầu */

@media (prefers-reduced-motion: reduce) {
    .page-contact *,
    .page-contact *::before,
    .page-contact *::after {
        animation: none !important;
        transition: none !important;
    }
}


