@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    background-color: #000000;
    /* black gutters when viewport > frame width */
    color: #0B0B0B;
}

.container {
    width: 100%;
    max-width: none;
}

/* Site frame centers the page content and provides white canvas */
.site {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;

    transform-origin: top center;
}

/* decorative red corner glows on the white site frame */
.site {
    position: relative;
    /* establish positioning context for pseudo elements */
    z-index: 1;
}

/* Ensure full-bleed sections keep their background inside the white frame */
.site>section {
    width: 100%;
}

.site>* {
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

/* Header Section */
header {
    width: 100%;
}

.header-main {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 24px 125px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main__menu {
    display: flex;
    flex: 1;
    height: 52px;
    align-items: center;
}

.header-main__menu-center {
    flex: 1;
}

.header-main__menu-list {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-main__menu-item {
    position: relative;
    height: 100%;
    min-width: 100px;
}

.header-main__menu-item:nth-child(3) {
    min-width: 135px;
}

.header-main__menu-link {
    text-decoration: none;
    color: #333333;
    font-size: 1rem;
    font-weight: 400;
    padding: 16.5px 0;
    line-height: 1;
}

.header-main__menu-right {
    width: 400px;
    display: flex;
    justify-content: space-between;
    height: 52px;
    align-items: center;
}

.header-main__language {
    position: relative;
    font-size: 1rem;
    color: #333333;
}

.language-selector__text {
    font-weight: bold;
}

.header-main__contact {
    background-color: #AD190D !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0.625rem 2rem;
    border-radius: 1.5rem;
    font-size: .875rem;
    font-weight: 600;
}


@media (max-width: 1350px) {
    .header-main {
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media (max-width: 1200px) {
    .header-main {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 1100px) {
    .header-main {
        flex-wrap: wrap;
    }

    .header-main__menu {
        flex: auto;
        width: 100%;
    }

    .header-main__menu-right {
        position: absolute;
        right: 30px;
        top: 24px;
    }
}

@media (max-width: 700px) {
    .header-main__menu-center {
        padding-top: 20px;
    }

    .header-main__menu-list {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .header-main__menu-item {
        text-align: right;
    }

    .header-main__menu-item {
        flex: 0 1 170px;
    }

    .header-main__menu-right {
        width: 350px;
    }
}

@media (max-width: 600px) {
    .header-main__menu {
        height: auto;
        flex-direction: column;
        align-items: flex-end;
    }

    .header-main__menu-right {
        position: relative;
        right: auto;
        top: auto;
    }
}

/* Software Development Suite Section */
.software-development-suite {
    background-image: url('https://rikkeisoft.com/wp-content/uploads/2025/10/bg-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 730px;
    display: flex;
    align-items: center;
    position: relative;
}

.sds__content {
    color: white;
    padding: 3.75rem 0 0 125px;

}

.sds__title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: .5rem;
    line-height: 1.1;
}

.sds__subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 1rem 0 1.5rem 0;
    color: #f8f9fa;
}

.sds__btn {
    background-color: #ffffff;
    padding: .75rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 2.25rem;
    border: none;
    transition: all 0.3s ease;
    width: 264px;
    height: 68px;
}

.sds__btn:hover {
    background-color: #AD190D;
    color: #ffffff;
}

.sds__btn:hover .sds__arrow {
    background-color: #ffffff;
    color: #AD190D;
    transform: rotate(45deg);
}

.sds__btn:hover .sds__arrow svg {
    filter: brightness(0) saturate(100%) invert(20%) sepia(100%) saturate(2000%) hue-rotate(350deg) brightness(0.8) contrast(1.2);
}

.sds__arrow {
    font-size: 1rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: #AD190D;
    margin-left: 1rem;
    /* animate transform and color/background so hover-out transitions smoothly */
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.sds__arrow svg {
    transition: filter 0.3s ease;
}

.required {
  color: red;
}

@media (max-width: 1350px) {
    .sds__content {
        padding-left: 50px;
    }
}

@media (max-width: 1200px) {
    .sds__content {
        padding-left: 30px;
    }
}

@media (max-width: 768px) {
    .sds__title {
        font-size: 3rem;
    }
}

/* Benefits Section */
.benefits {
    background-color: #ffffff;
    padding: 4rem 0;
}

.benefits__tags {
    display: flex;
    justify-content: center;
    /* center rows and let gap control spacing */
    flex-wrap: wrap;
    gap: 30px;
    /* consistent spacing between tags */
    margin-bottom: 3.75rem;
    align-items: center;
}

.benefits__tag {
    background-color: #f5f5f5;
    color: #333333;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 1.125rem;
    /* slightly smaller baseline to avoid overflow */
    white-space: normal;
    /* allow wrapping on narrow screens */
    text-align: center;
    min-width: 160px;
    /* keep tags readable */
    max-width: 320px;
    background-image: linear-gradient(165deg, #D9DDE1 0%, #E9ECEE 21%, #F9FAFB 50%, #FFFFFF 100%);
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    font-weight: 500;
}

/* Responsive adjustments for benefits tags */
@media (max-width: 1200px) {
    .benefits__tags {
        gap: 20px;
        margin-bottom: 3.25rem;
    }

    .benefits__tag {
        font-size: 1.0625rem;
        min-width: 140px;
        max-width: 300px;
    }
}

/* Arrange tags in 3 columns x 2 rows for medium screens (suitable for 6 tags) */
@media (max-width: 1180px) {
    .benefits__tags {
        gap: 16px;
        margin-bottom: 2.75rem;
        justify-content: center;
        padding: 0 30px;
    }

    /* three items per row; for 6 items this becomes 2 rows */
    .benefits__tag {
        flex: 0 1 calc((100% - 32px) / 3);
        /* subtract two gaps of 16px */
        min-width: 0;
        max-width: none;
        font-size: 1.0625rem;
        padding: 8px 14px;
    }
}

@media (max-width: 768px) {

    .benefits__tags {
        gap: 15px;
    }

    .benefits__tag {
        flex: 0 1 calc(50% - 12px);
        font-size: 1rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {

    .benefits__tags {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .benefits__tag {
        flex: none;
        width: 100%;
        padding: 10px 14px;
        font-size: 0.95rem;
    }
}

.benefits__description {
    text-align: center;
    margin-bottom: 1.5rem;
    max-width: 778px;
    margin-left: auto;
    margin-right: auto;
}

.benefits__description p {
    font-size: 1.375rem;
    line-height: 36px;
    margin: 0;
}

.benefits__kpi {
    display: flex;
}

.kpi {
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 30px;
    width: 1180px;
}

.kpi__item {
    text-align: center;
    min-width: 150px;
}

.kpi__value {
    font-size: 4rem;
    font-weight: 700;
    color: #AD190D;
    margin-bottom: .5rem;
    line-height: 1;
}

/* KPI number animation styling */
.kpi__number {
    display: inline-block;
    vertical-align: middle;
}

/* Roller styles: outer viewport and inner stack */
.kpi__roller {
    display: inline-block;
    vertical-align: middle;
    overflow: hidden;
    line-height: 1;
}

.kpi__roller-inner {
    display: block;
    /* use 3d transform to promote to GPU and avoid layout jank */
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.kpi__roll {
    display: block;
    padding: 0;
    margin: 0;
    text-align: right;
    min-width: 2ch;
}

/* CSS-only animation for KPI rollers (6-step sequences) */
.kpi__roller {
    display: inline-block;
    vertical-align: middle;
    overflow: hidden;
    line-height: 1;
    /* viewport height equals one line of the KPI number */
    height: 1em;
}

.kpi__roller-inner {
    display: block;
    transform: translateY(0);
    transition: none;
}

.kpi__roll {
    display: block;
    padding: 0;
    margin: 0;
    text-align: right;
    min-width: 2ch;
    /* each roll occupies exactly the viewport height */
    height: 1em;
    line-height: 1em;
}

/* ensure the KPI container centers the symbol and number */
.kpi__value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
}

/* main linear scroll to final (no overshoot) */
@keyframes kpi-roll-main {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(0, -5em, 0);
    }
}

/* brief overshoot + settle animation starting from final position */
@keyframes kpi-roll-overshoot {
    0% {
        transform: translate3d(0, -5em, 0);
    }

    50% {
        transform: translate3d(0, -5.5em, 0);
    }

    80% {
        transform: translate3d(0, -5.2em, 0);
    }

    100% {
        transform: translate3d(0, -5em, 0);
    }
}

@media (max-width: 1180px) {
    .kpi {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .kpi__item {
        width: 50%;
    }
}

@media (max-width: 802px) {
    .benefits__description {
        max-width: none;
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .benefits__description {
        text-align: left;
    }
}

@media (max-width: 550px) {
    .kpi__item {
        width: 100%;
    }
}

/* Apply two animations: main scroll (linear) then overshoot+settle (ease) */
.animate-6 {
    display: inline-block;
    /* shorthand: [name duration timing fill delay], multiple animations comma-separated */
    animation:
        kpi-roll-main 0.8s linear forwards 0.12s,
        kpi-roll-overshoot 0.6s ease-in-out forwards 0.92s;
    will-change: transform;
    backface-visibility: hidden;
}

/* Slightly faster variant if you want */
.animate-6.fast {
    animation:
        kpi-roll-main 0.6s linear forwards 0.08s,
        kpi-roll-overshoot 0.45s ease-in-out forwards 0.68s;
}

.kpi__label {
    font-size: 1.25rem;
}

.intelligence {
    background-image: url('https://rikkeisoft.com/wp-content/uploads/2025/10/bg-2.png');
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    justify-content: center;
    padding-bottom: 60px;
}

.intelligence__border {
    padding: 8px;
    position: relative;
    width: 1056px;
    height: 604px;
}

section {
    --itlg-border-color: rgba(191, 80, 80, 0.8);
    --itlg-border-second: rgba(200, 77, 77, 0.4);
    --itlg-border-third: rgba(200, 77, 77, 0.2);

}

.intelligence__border::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border: 3px solid var(--itlg-border-color);
    box-shadow:
        /* Outset shadows (đổ ra ngoài) */
        0 0 10px 3px var(--itlg-border-color),
        0 0 20px 6px var(--itlg-border-second),
        0 0 30px 9px var(--itlg-border-third),
        /* Inset shadows (đổ vào trong) */
        inset 0 0 5px 3px var(--itlg-border-color),
        inset 0 0 10px 6px var(--itlg-border-second),
        inset 0 0 15px 9px var(--itlg-border-third);
    border-radius: 0;
    /* Optional: adjust if you want rounded corners */
    border-radius: 1.3rem;
    width: 410px;
    height: 276px;
}

.intelligence__border::after {
    content: "";
    position: absolute;
    border: 3px solid rgba(183, 72, 72, 0.8);
    box-shadow:
        /* Outset shadows (đổ ra ngoài) */
        0 0 10px 3px rgba(183, 72, 72, 0.8),
        0 0 20px 6px rgba(183, 72, 72, 0.4),
        0 0 30px 9px rgba(183, 72, 72, 0.1),
        /* Inset shadows (đổ vào trong) */
        inset 0 0 5px 3px rgba(183, 72, 72, 0.8),
        inset 0 0 10px 6px rgba(183, 72, 72, 0.4),
        inset 0 0 15px 9px rgba(183, 72, 72, 0.1);
    border-radius: 0;
    /* Optional: adjust if you want rounded corners */
    border-radius: 1.3rem;
    width: 410px;
    height: 276px;
    bottom: -0;
    right: -0;
}

.intelligence__content {
    text-align: center;
    border-radius: 1rem;
    position: relative;
    cursor: pointer;
    width: 1040px;
    height: 588px;
    overflow: hidden;
    z-index: 1;
    padding: 2px;
}

.intelligence__content .intelligence__thumb {
    width: 1036px;
    height: 584px;
    object-fit: cover;
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.intelligence__content .video-wrapper {
    position: relative;
    width: 1036px;
    height: 584px;
    display: none;
    background: #000;
    border-radius: 1rem;
}

.intelligence__content .video-iframe {
    /* position: absolute;
    top: 0;
    left: 0; */
    width: 100%;
    height: 100%;
    border: 0;
}

.intelligence__content .video-iframe {
    display: inline-block;
    border-radius: 1rem;
}

.intelligence__content.video-open {
    cursor: default;
}

/* hide the thumbnail when video is open */
.intelligence__content.video-open .intelligence__thumb {
    display: none;
}

/* show wrapper when active */
.intelligence__content.video-open .video-wrapper {
    display: block;
}

@media (max-width: 1055px) {
    .intelligence__border {
        width: 100%;
        height: 100%;
    }

    .intelligence__content {
        width: 100%;
        height: auto;
    }

    .intelligence__content .intelligence__thumb,
    .intelligence__content .video-wrapper {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .intelligence__border::before {
        content: none;
    }

    .intelligence__border::after {
        content: none;
    }
}

/* Easily Integrated */
.easily-integrated {
    text-align: center;
}

.easily-integrated>* {
    width: 100%;
}

.easily-integrated__title {
    font-size: 42px;
    font-weight: bold;
    background: linear-gradient(90deg, #000000 0%, #666666 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    height: 60px;
}

.easily-integrated__subtitle {
    font-size: 28px;
    font-weight: 500;
    background: linear-gradient(90deg, #000000 0%, #666666 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 4.5px;
}

.easily-integrated__logos {
    overflow: hidden;
    width: 100%;
    display: block;
    padding: 2rem 0 0.5rem 0;
}

.marquee {
    position: relative;
    width: 100%;
}

.marquee__inner {
    display: flex;
    width: max-content;
    align-items: center;
    animation: marquee-left-to-right 6s linear infinite;
}

.marquee__logo {
    height: 48px;
    margin: 0 32px;
    opacity: 0.85;
}

@keyframes marquee-left-to-right {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .marquee__logo {
        height: 36px;
        margin: 0 20px;
    }

    .easily-integrated__subtitle {
        margin-bottom: 1.5rem;
    }
}


/* Why choose us section */
.why-choose-us {
    padding-top: 4rem;
    background: transparent;
}

.why-choose-us__title {
    background: linear-gradient(90deg, #C11F1F 0%, #470A05 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 40px;
    font-weight: bold;
    line-height: 44px;
    height: 50px;
    text-align: center;
}

.why-choose-us__content {
    margin-top: 1.5rem;
    background-image: url('https://rikkeisoft.com/wp-content/uploads/2025/10/wcu-bg.svg');
    background-position: center;
    background-repeat: no-repeat;
}

.why-choose-us__container {
    max-width: 1180px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.why-choose-us__item {
    width: 375px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.why-choose-us__image {
    width: 375px;
    height: 375px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.why-choose-us__item-title {
    font-size: 24px;
    color: #CA0003;
    margin: 8px 0 8px 0;
    font-weight: bold;
    text-align: left;
}

.why-choose-us__item-desc {
    font-size: 18px;
    color: #060606;
    line-height: 20px;
    margin: 0;
    text-align: left;
}

@media (max-width: 1200px) {
    .why-choose-us__content {
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .why-choose-us__item {
        width: 47%;
    }

    .why-choose-us__image {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 600px) {
    .why-choose-us__item {
        width: 100%;
    }

    .why-choose-us__image {
        width: 100%;
        height: auto;
    }
}

/* Our Customer */
.our-customer {
    text-align: center;
    padding-top: 20px;
    margin-top: 40px;
}

.our-customer>* {
    width: 100%;
}

.our-customer__title {
    font-size: 24px;
    font-weight: 400;
    background: linear-gradient(90deg, #000000 0%, #666666 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 5px;
}

.our-customer__logos {
    overflow: hidden;
    width: 100%;
    display: block;
    padding: 2rem 0 0.5rem 0;
}

.our-customer__marquee {
    position: relative;
    width: 100%;
}

.our-customer__marquee-inner {
    display: flex;
    width: max-content;
    align-items: center;
    animation: marquee-left-to-right 8s linear infinite;
}

.our-customer__logo {
    height: 80px;
    margin: 0 32px;
    opacity: 0.85;
}

@keyframes marquee-left-to-right {

    /* switch direction: content moves from right to left */
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .our-customer__logo {
        margin: 0 20px;
    }
}

/* About Contact Us Section */
.contact {
    background-color: #FFFFFF;
    padding: 50px 0 100px 0;
    background-image: url('https://rikkeisoft.com/wp-content/uploads/2025/10/acu-bg.svg'), url('https://rikkeisoft.com/wp-content/uploads/2025/10/acu-bg.svg');
    background-repeat: no-repeat, no-repeat;
    background-position: center top, center bottom;
    background-size: 100% 47%, 100% 76%;
    margin-top: 20px;
}

.contact__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: flex-start;
    padding: 50px;
    background-color: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.contact__left {
    flex: 1;
    max-width: 400px;
}

.contact__title {
    font-size: 48px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact__title--red {
    color: #CA0027;
}

.contact__description {
    font-size: 20px;
    color: #000000;
    line-height: 28px;
    margin-bottom: 20px;
    font-weight: 400;
}

.contact__follow {
    font-size: 20px;
    color: #333333;
    margin-bottom: 15px;
    font-weight: 400;
}

.social {
    display: flex;
    gap: 15px;
}

.social__link {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 18px;
    transition: opacity 0.3s ease;
}

.social__link:hover {
    opacity: 0.8;
    text-decoration: none;
    color: white;
}

.social__link--facebook {
    background-color: #1877F2;
}

.social__link--youtube {
    background-color: #FF0000;
}

.social__link--linkedin {
    background-color: #0A66C2;
}

.contact__right {
    flex: 1;
}

.contact__form {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.form {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form__group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.form__group--full-width {
    width: 100%;
    margin-bottom: 20px;
}

.form__label {
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 8px;
}

.form__required {
    color: #AD190D;
}

.form__input,
.form__select,
.form__textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 16px;
    color: #333333;
    background-color: #FFFFFF;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    line-height: 26px;
}

.form__select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    outline: none;
    border-color: #AD190D;
    box-shadow: 0 0 0 3px rgba(173, 25, 13, 0.1);
}

.form__input::placeholder,
.form__select::placeholder,
.form__textarea::placeholder {
    color: #9CA3AF;
}

.form__textarea {
    resize: vertical;
    min-height: 100px;
}

.form__footer {
    margin-top: 10px;
}

.form__privacy {
    font-size: 14px;
    color: #439BFF;
    text-decoration: underline;
    margin-bottom: 10px;
}

.form__privacy:hover {
    text-decoration: none;
}

.form__checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 35px;
}

.form__checkbox {
    margin-top: 2px;
    width: 24px;
    height: 24px;
    /* accent-color: #AD190D; */
}

.form__checkbox-label {
    font-size: 16px;
    color: #000000;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
}

.form__submit {
    color: #C11F1F;
    border-radius: 26px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 200px;
    height: 52px;
    border: 1px solid #C11F1F;
    background-color: #FFFFFF;
}

.form__submit:hover {
    background-color: #C11F1F;
    color: #FFFFFF;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact {
        margin: 0;
    }
}

@media (max-width: 992px) {
    .contact__container {
        flex-direction: column;
        gap: 40px;
    }

    .contact__left,
    .contact__right {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .form {
        flex-direction: column;
        gap: 0;
    }

    .form__group {
        margin-bottom: 20px;
    }

    .contact__title {
        font-size: 36px;
    }

    .contact__form,
    .contact__left {
        padding: 20px;
    }

    .contact__container {
        padding: 0 15px;
    }
}

/* Company Info Footer */
.footer {
    background-color: #C11F1F;
    padding: 76px 0 20px 0;
    height: 536px;
    display: flex;
    position: relative;
    clip-path: polygon(0% 0px,
            10% 16px,
            20% 26px,
            30% 31px,
            40% 34px,
            50% 36px,
            60% 34px,
            70% 31px,
            80% 26px,
            90% 16px,
            100% 0px,
            100% 100%,
            0% 100%);
    margin-top: -70px;
}

.footer__container {
    width: 978px;
    margin: 0 auto;
    text-align: center;
    margin: auto;
}

.footer__container>* {
    width: 100%;
}

.footer__logo {
    margin-bottom: 30px;
}

.footer__logo img {
    height: 60px;
    filter: brightness(0) invert(1);
}

.footer__details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: white;
    text-align: left;
    padding-bottom: 40px;
}

.footer__contact {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.footer__contact-details {
    font-size: 18px;
    line-height: 22px;
    color: white;
    font-weight: 400;
    text-align: left;
}

.footer__contact-details div:first-child {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.footer__contact-icon img {
    vertical-align: top;
}

.footer__copyright {
    background-color: #C11F1F;
    text-align: center;
    padding: 25px 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__copyright div {
    font-size: 16px;
    color: white;
    font-weight: 400;
}

/* Responsive for Company Info Footer */
@media (max-width: 768px) {
    .footer__container {
        text-align: center;
    }

    .footer__details {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer__contact {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .footer__contact-details {
        text-align: center;
    }
}

/* Video modal styles */
.video-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

.video-modal.video-modal--open {
    display: flex;
}

.video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.video-modal__dialog {
    position: relative;
    width: min(960px, 95%);
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    z-index: 1101;
}

.video-modal__body {
    width: 100%;
    height: 100%;
}

.video-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1102;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}

.video-modal__close:hover {
    background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 768px) {
    .video-modal__dialog {
        width: 95%;
    }
}


:root {
    --W: 196.26px;
    --H: 169.88px;
    --DX: 147.195px;
    --DY: 84.94px;
    --title-shift: 100px;
    /* dịch riêng tiêu đề */
}

.solution {
    position: relative;
    width: 100%;
    height: 1050px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    background: transparent;
    text-align: center;
    flex-direction: column;
}

/* Khung ngoài trong suốt 1000px */
.stage {
    position: relative;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    /* hero nằm dưới title */
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: visible;
}

/* View chính 893px (nền) */
.solution-hero {
    position: relative;
    width: 100%;
    height: 950px;
    /* ✅ khung cố định */
    background: url('https://rikkeisoft.com/wp-content/uploads/2025/10/background.png') center center / 100% 100% no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: visible !important;
    padding-bottom: 180px;
}

/* Dịch thị giác tiêu đề, không đổi layout */
.title-move {
    transform: translateY(var(--title-shift));
    will-change: transform;
}

/* Bóng nền */
#bg-balls {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Ảnh góc */
.bg-corners {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.bg-corners img {
    position: absolute;
    top: 0;
    height: auto;
}

.bg-corners .tl {
    left: 0;
}

.bg-corners .tr {
    right: 0;
}

/* Bàn tay: để chip nổi trên tay => z-index thấp hơn chip */
/* ==== BÀN TAY ==== */
.bg-hand {
    position: absolute;
    right: 0;
    bottom: -60px;
    z-index: 2;
    pointer-events: none;
}

/* ==== CHIP BUTTON ==== */
.chip-holder {
    position: absolute;
    right: 140px;
    bottom: -30px;
    z-index: 6;
    cursor: pointer;
    animation: bob 2.2s ease-in-out infinite;
}

.chip {
    width: clamp(280px, 30vw, 460px);
    aspect-ratio: 1 / 1;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    animation: chipFrames 0.8s linear infinite;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35));
}


/* Khung tiêu đề + cụm hex */
.solution h1 {
    position: relative;
    /* không absolute nữa, để căn giữa tự nhiên */
    margin: 0 0 30px 0;
    /* cách cụm hex 30px */
    font-size: 64px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.1;
    text-align: center;
    background: linear-gradient(90deg, #A80000 0%, #FF8E8E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    z-index: 10;
}

/* ==== LỤC GIÁC ==== */
.hex-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.hex-grid {
    position: relative;
    width: 900px;
    height: 800px;
}

.hex {
    position: absolute;
    width: var(--W);
    height: var(--H);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.hex svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.label {
    position: relative;
    z-index: 1;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
}

.label .icon {
    width: 28px;
    height: auto;
    margin-bottom: 8px;
    display: block;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, .25));
}

/* Hex trung tâm + bao quanh */
.hex-center .outer {
    fill: #A80000;
    stroke: url(#radialBorder);
    stroke-width: 1;
}

.hex-center .label {
    font-size: 20px;
    text-align: center;
}

.hex-surround .outer {
    fill: none;
    stroke: url(#radialBorder);
    stroke-width: 1;
}

.hex-surround .inner1 {
    fill: #000;
    stroke: none;
}

.hex-surround .inner2 {
    fill: none;
    stroke: url(#linearBorder);
    stroke-width: 1;
}

/* ===== Callouts (mỗi dòng = 1 item) ===== */
.callouts,
#connectors {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.callout {
    position: absolute;
    display: none;
    /* ẩn mặc định */
    pointer-events: auto;
    z-index: 6;
    background: url('https://rikkeisoft.com/wp-content/uploads/2025/10/bg_item_hover.png') no-repeat center/100% 100%;
    height: 44px;
    padding: 0 8px;
    color: #111;
    font-weight: 700;
    font-size: 13px;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .25));
    align-items: center;
    justify-content: center;
    white-space: normal;
    width: 300px;
    min-width: unset;
    max-width: unset;
}

.callout.show {
    display: flex;
}

.callout a {
    font-size: 13px;
    color: #111;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    /* không chiếm full width */
    text-align: center;
    /* căn giữa chữ */
    line-height: normal;
}

.callout a:hover {
    text-decoration: underline;
}

/* Connector line bằng ảnh ic_line.png */
.connector {
    position: absolute;
    display: none;
    z-index: 5;
    pointer-events: none;
    height: 12px;
    transform-origin: 0 50%;
    /* chỉnh height theo file ic_line.png thực tế */
}

.connector.show {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    #bg-balls {
        display: none;
    }

    .chip-holder {
        animation: none;
    }

    .chip {
        animation: none;
    }
}

/* ====== ANIMATIONS ====== */
@keyframes chipFrames {
    0% {
        background-image: url('https://rikkeisoft.com/wp-content/uploads/2025/10/click_your_match_1.png');
    }

    25% {
        background-image: url('https://rikkeisoft.com/wp-content/uploads/2025/10/click_your_match_2.png');
    }

    50% {
        background-image: url('https://rikkeisoft.com/wp-content/uploads/2025/10/click_your_match_3.png');
    }

    75% {
        background-image: url('https://rikkeisoft.com/wp-content/uploads/2025/10/click_your_match_4.png');
    }

    100% {
        background-image: url('https://rikkeisoft.com/wp-content/uploads/2025/10/click_your_match_1.png');
    }
}

@keyframes bob {

    0%,
    100% {
        transform: translateY(-6px);
    }

    50% {
        transform: translateY(6px);
    }
}

/* ==== Popup Form ==== */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    background: #fff;
    color: #111;
    border-radius: 10px;
    width: 600px;
    max-width: 90%;
    padding: 40px;
    position: relative;
    text-align: center;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    /* Medium mặc định */
}

.popup-overlay.show .popup-content {
    transform: scale(1);
    opacity: 1;
}

.popup-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    /* Bold */
    font-size: 36px;
    margin: 0 0 16px;
}

.popup-content p {
    font-size: 20px;
    margin: 0 0 26px;
}

.popup-content label {
    display: block;
    text-align: left;
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 6px;
}

.popup-content input,
.popup-content textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    margin-bottom: 14px;
    resize: none;
}

.popup-content textarea {
    height: 80px;
}

.contact-btn {
    display: block;
    width: 160px;
    margin: 28px auto 0;
    background: none;
    border: 2px solid #a80000;
    color: #a80000;
    border-radius: 999px;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.contact-btn:hover {
    background: #a80000;
    color: #fff;
}

.popup-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    line-height: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* ===== THANK YOU POPUP ===== */
.thanks-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.thanks-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 28px;
    margin: 0 0 8px;
}

.thanks-content p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 18px;
    margin: 0 0 16px;
}

.thanks-content a {
    color: #0066ff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    margin: 8px 0;
    display: inline-block;
}

.thanks-content a:hover {
    text-decoration: underline;
}

.view-btn {
    background: none;
    border: 2px solid #a80000;
    color: #a80000;
    border-radius: 999px;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.25s ease;
}

.view-btn:hover {
    background: #a80000;
    color: #fff;
}

/* ==================== RESPONSIVE ==================== */

/* Laptop ≤1280px */
@media (max-width: 1280px) {
    .solution h1 {
        font-size: 52px;
    }

    .hex-grid {
        transform: scale(0.9);
        transform-origin: center;
    }

    .chip-holder {
        right: 100px;
        bottom: -20px;
    }
}

/* Tablet ngang ≤1024px */
@media (max-width: 1024px) {
    .solution {
        height: auto;
        padding-bottom: 80px;
    }

    .solution h1 {
        font-size: 46px;
        margin-bottom: 20px;
    }

    .solution-hero {
        background-size: 110%;
        background-position: center;
        height: auto;
        padding-bottom: 120px;
    }

    .hex-grid {
        transform: scale(0.8);
        width: 700px;
        height: 600px;
    }

    .bg-hand {
        bottom: -20px;
        right: 0;
        transform: scale(0.75);
        transform-origin: right bottom;
        /* ✅ co từ góc phải dưới, không lệch */
        position: absolute;
    }

    .chip-holder {
        right: 60px;
        bottom: -10px;
    }

    .callout {
        width: 240px;
        font-size: 12px;
    }
}

/* Tablet dọc ≤768px */
@media (max-width: 768px) {
    .solution {
        height: auto;
        padding: 60px 0 100px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .solution h1 {
        font-size: 36px;
        margin-bottom: 40px;
    }

    /* Background hai bên co lại */
    .solution-hero {
        background-size: 150%;
        background-position: center;
        padding-bottom: 120px;
        height: auto;
    }

    /* Lục giác dọc */
    .hex-wrap {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        transform: none !important;
    }

    .hex-grid {
        width: auto;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .hex {
        position: static !important;
        width: 160px;
        height: 140px;
        transform: none !important;
    }

    .label {
        font-size: 12px;
    }

    /* Callout hiển thị dưới mỗi hex */
    .callout {
        position: relative;
        display: flex;
        width: 200px;
        font-size: 11px;
        margin: 6px auto 10px;
        left: auto !important;
        top: auto !important;
        transform: none !important;
    }

    /* Ẩn đường line connector */
    #connectors {
        display: none;
    }

    /* Ẩn bàn tay */
    .bg-hand {
        display: none;
    }

    /* Button click căn giữa */
    .chip-holder {
        position: relative;
        margin: 40px auto 0;
        bottom: 0;
        right: auto;
        left: auto;
        transform: scale(0.8);
        animation: none;
    }

    .chip {
        width: 220px;
    }

    /* Popup form */
    .popup-content {
        width: 90%;
        padding: 24px;
    }

    .popup-content h2 {
        font-size: 28px;
    }

    .popup-content p {
        font-size: 16px;
    }

    .popup-content input,
    .popup-content textarea {
        font-size: 14px;
    }
}

/* Mobile nhỏ ≤480px */
@media (max-width: 480px) {
    .solution {
        padding: 40px 0 80px;
    }

    .solution h1 {
        font-size: 28px;
    }

    .solution-hero {
        background-size: 180%;
    }

    .hex {
        width: 140px;
        height: 120px;
    }

    .label {
        font-size: 11px;
    }

    .chip-holder {
        transform: scale(0.7);
    }

    .callout {
        width: 160px;
        font-size: 10px;
    }
}

@media (max-width: 900px) {

    /* Bỏ layout tuyệt đối cho toàn bộ hex */
    .hex {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 0 auto;
        /* căn giữa mỗi hex */
    }

    /* Reset spacing giữa các hex */
    .hex-grid {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 18px;
        /* khoảng cách đều nhau */
        width: 100%;
        height: auto;
        margin: 0 auto;
        transform: none !important;
    }

    .hex svg {
        width: 100%;
        height: 100%;
    }

    /* Giữ cụm lục giác căn giữa toàn bộ màn hình */
    .hex-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
}


@media (max-width: 900px) {
    .hex {
        position: relative !important;
        transform: none !important;
        width: 140px;
        height: 120px;
    }


    .hex-grid {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        transform: none !important;
        width: auto;
        height: auto;
        margin: 0 auto;
    }

    .hex svg {
        width: 100%;
        height: 100%;
    }

    /* --- Cụm hex căn giữa, không bị đè --- */
    .hex-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        transform: none !important;
        gap: 20px;
        margin-top: 0;
        position: relative;
        z-index: 1;
    }

    /* Giảm size chữ của hex trung tâm */
    .hex.hex-center .label {
        font-size: 14px !important;
        /* ✅ nhỏ gọn hơn */
        line-height: 1.3 !important;
        text-align: center;
        word-break: break-word;
    }

    /* --- Ẩn background trái/phải --- */
    .bg-corners {
        display: none !important;
    }

    /* Nền chính hiển thị full chiều cao section */
    .solution-hero {
        position: relative;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
        background: url('https://rikkeisoft.com/wp-content/uploads/2025/10/background.png') center top / cover no-repeat !important;
        min-height: 100vh;
        /* ✅ đảm bảo phủ full màn hình */
        height: auto !important;
        padding: 80px 0 120px;
        /* tạo không gian trên dưới */
        overflow: hidden;
    }


    /* Đảm bảo section chính bao phủ full */
    .solution {
        min-height: 100vh;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* --- Tiêu đề nằm trên cùng, cách hex 30px --- */
    .solution h1 {
        font-size: 32px;
        text-align: center;
        margin-bottom: 30px !important;
        /* ✅ khoảng cách với cụm hex */
        transform: none !important;
        z-index: 2;
        position: relative;
    }

    /* --- Nút "Click to Get Your Match" hiển thị dưới cụm hex --- */
    .chip-holder {
        order: 3;
        /* xuất hiện sau cụm hex */
        position: relative !important;
        display: flex !important;
        justify-content: center;
        align-items: center;
        margin-top: 20px !important;
        /* ✅ giảm khoảng cách phía trên */
        margin-bottom: 10px !important;
        /* ✅ giảm khoảng cách phía dưới */
        /* khoảng cách giữa hex và button */
        transform: none !important;
        z-index: 5;
    }

    /* --- Ảnh chip animation hiển thị full kích thước --- */
    .chip-holder .chip {
        width: 320px !important;
        height: 320px !important;
        background-size: cover !important;
        /* ✅ phóng ảnh phủ kín toàn khung */
        background-repeat: no-repeat !important;
        background-position: center center !important;
        /* ✅ luôn căn giữa */
        image-rendering: -webkit-optimize-contrast;
        animation: chipFrames 2s infinite steps(1);
        display: block;
        border-radius: 50%;
        /* nếu muốn chip tròn đều hơn */
    }

    .chip {
        width: 200px;
    }

    /* Ẩn bàn tay và connector */
    .bg-hand,
    #connectors,
    .callouts {
        display: none !important;
    }

    /* Overlay phủ toàn màn hình */
    .callout-layer {
        position: fixed !important;
        inset: 0;
        /* top/right/bottom/left = 0 */
        display: none;
        /* ẩn mặc định */
        justify-content: center;
        align-items: center;
        padding: 16px;
        /* viền an toàn */
        background: rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(2px);
        z-index: 999999 !important;
        box-sizing: border-box;
    }

    .callout-layer.active {
        display: flex !important;
        animation: popupFadeIn 0.25s ease-out;
    }

    /* Khung nội dung chính giữa */
    .callout-modal {
        width: min(92vw, 380px);
        /* co theo màn hình, tối đa 380px */
        max-height: 80vh;
        /* scroll nếu dài */
        overflow-y: auto;
        background: rgba(20, 20, 20, 0.96);
        border: 1px solid #ff2b2b;
        border-radius: 16px;
        box-shadow: 0 0 28px rgba(255, 43, 43, 0.55);
        padding: 18px 14px;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    /* Căn giữa tuyệt đối callout bên trong */
    .callout-modal .callout {
        position: static !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        background-size: 100% 100% !important;
        /* ép nền co vừa */
    }

    .callout-modal .callout a {
        font-size: 13px !important;
        line-height: 1.4;
        white-space: normal;
        text-align: center;
    }

    /* Nút đóng */
    .callout-modal .close-btn {
        position: absolute;
        top: 10px;
        right: 14px;
        font-size: 22px;
        color: #ff2b2b;
        cursor: pointer;
        line-height: 1;
    }

    /* Hiệu ứng mượt */
    @keyframes popupFadeIn {
        from {
            opacity: 0;
            transform: scale(0.95);
        }

        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    /* Lớp phủ */
    .popup-overlay {
        padding: 16px;
        display: none;
        justify-content: center;
        align-items: center;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(4px);
        z-index: 9999;
    }

    .popup-overlay.show {
        display: flex;
    }

    /* Khung nội dung chính */
    .popup-content {
        width: 90%;
        max-width: 360px;
        background: #fff;
        border-radius: 12px;
        padding: 24px 18px;
        text-align: center;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
        overflow-y: auto;
    }

    .popup-content h2 {
        font-size: 22px;
        margin-bottom: 12px;
        line-height: 1.3;
    }

    .popup-content p {
        font-size: 14px;
        margin-bottom: 16px;
        line-height: 1.5;
    }

    .popup-content label {
        font-size: 13px;
        font-weight: 600;
        margin: 6px 0;
        text-align: left;
        display: block;
    }

    .popup-content input,
    .popup-content textarea {
        font-size: 13px;
        width: 100%;
        border-radius: 6px;
        border: 1px solid #ccc;
        padding: 10px;
        box-sizing: border-box;
    }

    .popup-content textarea {
        min-height: 70px;
    }

    .contact-btn,
    .view-btn {
        width: 100%;
        max-width: 220px;
        margin: 18px auto 0;
        border-radius: 999px;
        padding: 12px 16px;
        font-size: 15px;
        font-weight: 700;
        background: none;
        border: 2px solid #a80000;
        color: #a80000;
        transition: all 0.25s ease;
    }

    .contact-btn:hover,
    .view-btn:hover {
        background: #a80000;
        color: #fff;
    }

    .popup-close {
        position: absolute;
        top: 10px;
        right: 14px;
        background: none;
        border: none;
        font-size: 22px;
        color: #333;
        cursor: pointer;
    }

    /* Popup “Thanks” */
    .thanks-content h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .thanks-content p {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .thanks-content a {
        font-size: 13px;
        color: #007aff;
        text-decoration: underline;
    }

}

@media (max-width: 480px) {
    .hex {
        width: 120px;
        height: 100px;
    }
}

/* ==================== RESPONSIVE CHO BACKGROUND GÓC ==================== */

/* Mặc định desktop: hiển thị full */
.bg-corners img {
  position: absolute;
  height: auto;
  max-width: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Laptop ≤1280px */
@media (max-width: 1280px) {
  .bg-corners .tl {
    left: 0;
    width: 280px;
    top: 0;
  }

  .bg-corners .tr {
    right: 0;
    width: 280px;
    top: 0;
  }
}

/* Tablet ngang ≤1024px */
@media (max-width: 1024px) {
  .bg-corners .tl {
    width: 220px;
    top: 10px;
  }

  .bg-corners .tr {
    width: 220px;
    top: 10px;
  }
}

/* Tablet dọc ≤768px — thu nhỏ và dịch nhẹ lên */
@media (max-width: 768px) {
  .bg-corners .tl {
    width: 160px;
    top: 0;
    opacity: 0.6;
    transform: translateY(-10px);
  }

  .bg-corners .tr {
    width: 160px;
    top: 0;
    opacity: 0.6;
    transform: translateY(-10px);
  }
}

/* Mobile nhỏ ≤576px — ẩn hẳn để không che chữ & hex */
@media (max-width: 576px) {
  .bg-corners {
    display: none !important; /* ✅ ẩn toàn bộ */
  }
}

/* ==================== TABLET 1024px FIX ==================== */
@media (max-width: 1024px) and (min-width: 769px) {

  /* 1️⃣ Background hiển thị full chiều cao */
  .solution-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* căn giữa dọc */
    background: url('https://rikkeisoft.com/wp-content/uploads/2025/10/background.png') 
                center center / cover no-repeat !important;
    width: 100%;
    min-height: 100vh;  /* ✅ full chiều cao màn hình */
    height: auto !important;
    overflow: hidden;
  }

  /* 2️⃣ Cụm hex căn giữa */
  .hex-wrap,
  .hex-grid {
    position: relative;
    margin: 0 auto !important;
    transform: none !important;
    left: 0 !important;
    right: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  /* 3️⃣ Nâng bàn tay lên 30px */
  .bg-hand {
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translateY(60px) scale(0.6);  /* ✅ nâng lên 30px */
    transform-origin: right bottom;
    z-index: 2;
  }

  /* 4️⃣ Dịch nút chip sang trái 30px */
  .chip-holder {
    position: absolute !important;
    bottom: 10px;          /* vị trí cố định trên bàn tay */
    right: 15%;
    transform: translateX(-30px) scale(1.1); /* ✅ lệch trái thêm 30px (do bàn tay nằm bên phải) */
    z-index: 5;
  }

  /* Giữ kích thước chip đẹp */
  .chip-holder .chip {
    width: 180px;
    height: 180px;
    background-size: cover;
  }

  /* Đảm bảo chữ vẫn căn giữa và không tràn */
  .solution h1 {
    text-align: center;
    margin-bottom: 40px;
  }

   /* Overlay nền mờ */
  .popup-overlay {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 9999;
    padding: 20px;
  }

  .popup-overlay.show {
    display: flex;
  }

  /* Khung nội dung chính */
  .popup-content {
    width: 85%;
    max-width: 460px;
    background: #fff;
    border-radius: 14px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    position: relative;
    animation: popupFadeIn 0.25s ease;
  }

  /* Tiêu đề */
  .popup-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
    line-height: 1.3;
  }

  /* Mô tả */
  .popup-content p {
    font-size: 15px;
    color: #444;
    margin-bottom: 18px;
    line-height: 1.5;
  }

  /* Nhãn */
  .popup-content label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    text-align: left;
  }

  /* Input + Textarea */
  .popup-content input,
  .popup-content textarea {
    width: 100%;
    font-size: 14px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    margin-bottom: 14px;
    transition: border 0.2s ease;
  }

  .popup-content input:focus,
  .popup-content textarea:focus {
    border-color: #c60000;
    outline: none;
  }

  .popup-content textarea {
    min-height: 80px;
    resize: vertical;
  }

  /* Nút chính */
  .contact-btn,
  .view-btn {
    width: 100%;
    max-width: 230px;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 700;
    color: #a80000;
    background: transparent;
    border: 2px solid #a80000;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
    margin: 16px auto 0;
  }

  .contact-btn:hover,
  .view-btn:hover {
    background: #a80000;
    color: #fff;
  }

  /* Nút đóng */
  .popup-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #444;
    cursor: pointer;
  }

  /* Popup “Thanks” */
  .thanks-content h2 {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .thanks-content p {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .thanks-content a {
    font-size: 14px;
    color: #007aff;
    text-decoration: underline;
  }

  /* Hiệu ứng xuất hiện */
  @keyframes popupFadeIn {
    from {
      opacity: 0;
      transform: translateY(-15px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}
