/* Base Styles */
:root {
    --primary-color: #e74c3c;
    --primary-color-dark: #c0392b;
    --primary-color-light: #f9e7e5;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(231, 76, 60, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%;
    /* 10px = 1rem */
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: #f9f9f9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 3.6rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 5rem;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: #666;
    font-size: 1.8rem;
    max-width: 70rem;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 1.6rem;
    letter-spacing: 0.5px;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.primary-btn:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(231, 76, 60, 0.4);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

header.scroll {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo img {
    height: 4rem;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 3rem;
}

nav ul li a {
    font-weight: 500;
    padding: 1rem 0;
    position: relative;
    transition: var(--transition);
    font-size: 1.6rem;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 2.4rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 12rem 0 8rem;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -5rem;
    right: -5rem;
    width: 40rem;
    height: 40rem;
    background-color: rgba(52, 152, 219, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    padding-right: 4rem;
}

.hero-content h2 {
    font-size: 4.2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    line-height: 1.2;
}

.hero-content h3 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: #666;
    max-width: 50rem;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    /* min-height: 500px; */
}

.hero-image .fb-page {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Services Section */
.services {
    padding: 10rem 0;
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
}

.service-item {
    background-color: #fff;
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-item:hover {
    transform: translateY(-1rem);
    border-bottom: 3px solid var(--primary-color);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    background-color: var(--primary-color-light);
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.service-item h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.service-item p {
    color: #666;
    font-size: 1.6rem;
}

/* About Section */
.about {
    padding: 10rem 0;
    background-color: #f9f9f9;
    position: relative;
}

.about::after {
    content: '';
    position: absolute;
    bottom: -5rem;
    left: -5rem;
    width: 40rem;
    height: 40rem;
    background-color: rgba(52, 152, 219, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 5rem;
    position: relative;
    z-index: 1;
}

.about-text {
    flex: 1;
}

.about-text .section-title {
    text-align: left;
}

.about-text .section-title h2::after {
    left: 0;
    transform: none;
}

.about-text p {
    margin-bottom: 2rem;
    color: #666;
    font-size: 1.6rem;
    line-height: 1.8;
}

.about-features {
    margin-top: 3rem;
}

.about-features li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    font-size: 1.6rem;
}

.about-features li i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.8rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Process Section */
.process {
    padding: 10rem 0;
    background-color: white;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
}

.process-step {
    flex: 1;
    min-width: 20rem;
    text-align: center;
    position: relative;
    padding: 2rem;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 4rem;
    height: 4rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 2rem;
    font-size: 1.8rem;
}

.step-icon {
    font-size: 3.6rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.process-step h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.process-step p {
    color: #666;
    font-size: 1.5rem;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 4rem;
    right: -1.5rem;
    width: 3rem;
    height: 2px;
    background-color: var(--primary-color);
    z-index: 1;
}

/* Testimonials Section */
.testimonials {
    padding: 10rem 0;
    background-color: #f9f9f9;
    position: relative;
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 3rem;
    padding-bottom: 3rem;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* Hide scrollbar for IE and Edge */
    scrollbar-width: none;
    /* Hide scrollbar for Firefox */
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome, Safari and Opera */
}

.testimonial-item {
    flex: 0 0 calc(33.333% - 2rem);
    min-width: 30rem;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--box-shadow);
    scroll-snap-align: start;
    transition: var(--transition);
    border-top: 3px solid var(--primary-color);
}

.testimonial-item:hover {
    transform: translateY(-5px);
}

.testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-content p {
    font-style: italic;
    color: #666;
    font-size: 1.6rem;
    line-height: 1.8;
    position: relative;
    padding-left: 2rem;
}

.testimonial-content p::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    top: -1rem;
    left: 0;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1.5rem;
    border: 3px solid rgba(52, 152, 219, 0.2);
}

.author-info h4 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.author-info p {
    font-size: 1.4rem;
    color: #666;
}

/* Contact Section */
.contact {
    padding: 10rem 0;
    background-color: white;
}

.contact-content {
    display: flex;
    gap: 5rem;
}

.contact-form {
    flex: 1;
    background-color: #fff;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1.6rem;
    transition: var(--transition);
    /* background-color: #f9f9f9; */
}

.form-group input:disabled {
    background-color: #d3d3d3;
    /* đổi màu nền */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 15rem;
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    margin-bottom: 3rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.info-item:hover {
    transform: translateY(-5px);
}

.info-icon {
    width: 5rem;
    height: 5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-right: 2rem;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.info-content p {
    font-size: 1.6rem;
    color: #666;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    justify-content: center;
}

.social-links a {
    width: 4rem;
    height: 4rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-5px);
    background-color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 7rem 0 2rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-logo {
    flex: 1;
    min-width: 25rem;
}

.footer-logo h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-logo p {
    font-size: 1.6rem;
    opacity: 0.8;
}

.footer-links,
.footer-services,
.footer-newsletter {
    flex: 1;
    min-width: 20rem;
}

footer h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

footer h3::after {
    content: '';
    position: absolute;
    width: 3rem;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

footer ul li {
    margin-bottom: 1rem;
}

footer ul li a {
    transition: var(--transition);
    font-size: 1.6rem;
    opacity: 0.8;
}

footer ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
    opacity: 1;
}

.footer-newsletter p {
    margin-bottom: 2rem;
    font-size: 1.6rem;
    opacity: 0.8;
}

.footer-newsletter form {
    display: flex;
    gap: 1rem;
}

.footer-newsletter input {
    flex: 1;
    padding: 1.2rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1.5rem;
}

.footer-newsletter .btn {
    background-color: var(--primary-color);
    color: white;
    padding: 1.2rem 2rem;
    font-size: 1.5rem;
}

.footer-newsletter .btn:hover {
    background-color: #e74c3c;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 1.5rem;
    opacity: 0.8;
}

/* Contact Buttons */
.contact-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 99;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-button.phone {
    background-color: #25D366;
}

.contact-button.facebook {
    background-color: #0084FF;
}

.contact-button.kakao {
    background-color: #FFE812;
    color: #3C1E1E;
    padding: 0;
}

.contact-button.kakao:hover {
    background-color: #FFD700;
}

.kakao-icon {
    width: 2.4rem;
    height: 2.4rem;
    object-fit: contain;
}

.contact-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.contact-button span {
    display: none;
}

.contact-buttons.scroll-active {
    bottom: 8rem;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .contact-buttons {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .contact-buttons.scroll-active {
        bottom: 7rem;
    }

    .contact-button {
        width: 4.5rem;
        height: 4.5rem;
        font-size: 1.8rem;
    }

    .kakao-icon {
        width: 2rem;
        height: 2rem;
    }
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 1rem;
    right: 2rem;
    width: 5rem;
    height: 5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile Menu Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    margin: 0;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 4.5rem;
    height: 4.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.2);
    transition: all 0.3s ease;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-close:active {
    transform: scale(0.95) rotate(90deg);
    background-color: var(--primary-color-dark);
}

.mobile-nav {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 8rem 2rem 2rem;
    width: 100%;
    box-sizing: border-box;
}

.mobile-nav ul {
    text-align: left;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav ul li {
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.mobile-menu-overlay.active .mobile-nav ul li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav ul li:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-nav ul li:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-nav ul li:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-nav ul li:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-nav ul li:nth-child(5) {
    transition-delay: 0.3s;
}

.mobile-nav ul li:nth-child(6) {
    transition-delay: 0.35s;
}

.mobile-nav ul li a {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    background-color: var(--primary-color-light);
    margin: 0;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mobile-nav ul li a::before {
    content: '';
    display: inline-block;
    width: 0.6rem;
    height: 0.6rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-nav ul li a:active {
    background-color: rgba(231, 76, 60, 0.1);
    transform: scale(0.98);
}

.mobile-nav ul li a:active::before {
    opacity: 1;
}

/* Add safe area insets for modern mobile devices */
@supports (padding: max(0px)) {
    .mobile-menu-overlay {
        padding-top: max(1.5rem, env(safe-area-inset-top));
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
        padding-left: max(1.5rem, env(safe-area-inset-left));
        padding-right: max(1.5rem, env(safe-area-inset-right));
    }

    .mobile-nav {
        padding-top: max(8rem, calc(env(safe-area-inset-top) + 6rem));
    }
}

/* Prevent horizontal scroll */
html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Ensure content doesn't overflow on small screens */
@media screen and (max-width: 360px) {
    .mobile-nav ul li a {
        font-size: 1.6rem;
        padding: 1.2rem 1.5rem;
    }

    .mobile-nav {
        padding: 6rem 1.5rem 1.5rem;
    }
}

/* Responsive Styles */
@media screen and (max-width: 1200px) {
    html {
        font-size: 60%;
    }

    .container {
        padding: 0 3rem;
    }
}

@media screen and (max-width: 1024px) {
    html {
        font-size: 58%;
    }

    .hero-content h2 {
        font-size: 3.8rem;
    }

    .process-step:not(:last-child)::after {
        width: 60%;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    header {
        padding: 1.2rem 0;
    }
    
    nav {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero {
        padding: 8rem 0 6rem;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 4rem;
    }
    
    .hero-content h2 {
        font-size: 3.4rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        margin-bottom: 4rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .process-step:not(:last-child)::after {
        display: none;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-form {
        margin-bottom: 4rem;
    }
    
    .logo img {
        height: 3.5rem;
    }
    
    .hero-image {
        min-height: 400px;
    }
    
    .hero-image .fb-page {
        max-width: 100%;
    }

    .contact-buttons {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .contact-buttons.scroll-active {
        bottom: 7rem;
    }

    .scroll-to-top {
        bottom: 0.5rem;
        right: 1.5rem;
        width: 4.5rem;
        height: 4.5rem;
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 576px) {
    html {
        font-size: 52%;
    }

    .section-title h2 {
        font-size: 3rem;
    }

    .hero-content h2 {
        font-size: 3rem;
    }

    .hero-content h3 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-item {
        padding: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-logo,
    .footer-links,
    .footer-services,
    .footer-newsletter {
        text-align: center;
    }

    .footer-newsletter form {
        flex-direction: column;
    }

    .footer-newsletter .btn {
        width: 100%;
        margin-top: 1rem;
    }

    .logo img {
        height: 3rem;
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 50%;
    }

    .section-title h2 {
        font-size: 2.8rem;
    }

    .hero-content h2 {
        font-size: 2.8rem;
    }

    .container {
        padding: 0 2rem;
    }

    .logo img {
        height: 3rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .btn:hover {
        transform: none;
    }

    .service-item:hover {
        transform: none;
    }

    .process-step:hover {
        transform: none;
    }

    .testimonial-item:hover {
        transform: none;
    }

    .info-item:hover {
        transform: none;
    }

    .social-links a:hover {
        transform: none;
    }
}

/* Tracking Section */
.tracking-section {
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.tracking-tabs {
    max-width: 80rem;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.tab-button {
    flex: 1;
    padding: 1.5rem;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: none;
    position: relative;
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

.tracking-form {
    max-width: 80rem;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.tracking-form .form-row {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.tracking-form .form-group {
    flex: 1;
    min-width: 20rem;
}

.tracking-form input,
.tracking-form select {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1.6rem;
    transition: var(--transition);
}

.tracking-form input:focus,
.tracking-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.tracking-form .btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.6rem;
}

.tracking-result {
    max-width: 80rem;
    margin: 2rem auto 0;
}

.result-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.result-item {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.result-item strong {
    color: var(--secondary-color);
    margin-right: 1rem;
}

.timeline {
    margin-top: 2rem;
    padding-left: 2rem;
    border-left: 2px solid var(--primary-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-icon {
    position: absolute;
    left: -2.4rem;
    width: 2rem;
    height: 2rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.timeline-status {
    font-size: 1.5rem;
    color: #666;
}

.tracking-error {
    max-width: 80rem;
    margin: 2rem auto 0;
}

.error-message {
    background-color: #fee;
    color: #e74c3c;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 1.6rem;
}

@media screen and (max-width: 768px) {
    .tracking-form .form-row {
        flex-direction: column;
    }

    .tracking-form .form-group {
        width: 100%;
    }

    .tracking-form .btn {
        margin-top: 1rem;
    }
}

.tracking-info {
    /* margin-top: 2rem; */
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
}

.tracking-info h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.tracking-info h4 {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin: 1.5rem 0 1rem;
}

.tracking-info ul {
    list-style: none;
    padding: 0;
}

.tracking-info ul li {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: #666;
    display: flex;
    align-items: center;
}

.tracking-info ul li i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.6rem;
}

.price-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.price-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.4rem;
}

.price-table th,
.price-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.price-table th {
    background-color: var(--primary-color-light);
    color: var(--secondary-color);
    font-weight: 500;
}

.price-table tr:hover {
    background-color: #f8f9fa;
}

.price-notes {
    background-color: #fff3cd;
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.price-notes ul li i {
    color: #856404;
}

@media screen and (max-width: 768px) {
    .tracking-info {
        padding: 1.5rem;
    }

    .price-table {
        margin: 1.5rem -1.5rem;
    }

    .price-table table {
        font-size: 1.3rem;
    }

    .price-table th,
    .price-table td {
        padding: 1rem;
    }
}

.select-with-search {
    position: relative;
    width: 100%;
}

.select-search {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    font-size: 1.6rem;
    transition: var(--transition);
    margin-bottom: -1px;
    background-color: #f9f9f9;
}

.select-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    background-color: #fff;
}

.select-with-search select {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    font-size: 1.6rem;
    transition: var(--transition);
    background-color: #f9f9f9;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 1.5rem;
    padding-right: 4rem;
}

.select-with-search select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    background-color: #fff;
}

/* Select2 Custom Styles */
.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    height: 44px !important;
    padding: 0 1.5rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background-color: #f9f9f9;
    font-size: 1.6rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px;
    padding: 0;
    color: var(--text-color);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
    right: 1.5rem;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--text-color) transparent transparent transparent;
    border-width: 6px 4px 0 4px;
    margin-top: -2px;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--text-color) transparent;
    border-width: 0 4px 6px 4px;
    margin-top: 2px;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    color: #999;
    margin-right: 2rem;
    font-size: 1.8rem;
    line-height: 44px;
    height: 44px;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: var(--primary-color);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1.6rem;
    height: 38px;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.select2-dropdown {
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.select2-container--default .select2-results__option {
    padding: 0.8rem 1.5rem;
    font-size: 1.6rem;
    line-height: 1.4;
    min-height: 38px;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: var(--primary-color-light);
    color: var(--primary-color);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-color);
    color: white;
}

.select2-container--default .select2-selection--single:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    background-color: #fff;
}

/* Mobile Responsive Styles for Select2 */
@media screen and (max-width: 768px) {
    .select2-container .select2-selection--single {
        height: 44px !important;
        padding: 0 1.2rem;
    }

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 44px;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 44px;
    }

    .select2-container--default .select2-selection--single .select2-selection__clear {
        line-height: 44px;
        height: 44px;
    }

    .select2-container--default .select2-results__option {
        padding: 0.6rem 1.2rem;
        min-height: 38px;
    }
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: unset !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-top: 10px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 7px !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    height: 45px !important;
}

/* Remove old chat button styles */
.chat-button-container,
.chat-button,
.chat-dropdown {
    display: none;
}

/* Registration Modal */
.registration-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.registration-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 50rem;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.registration-modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1;
}

.modal-header h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.modal-body .form-group {
    margin-bottom: 1.5rem;
}

.modal-body input,
.modal-body select,
.modal-body textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.modal-body textarea {
    min-height: 10rem;
    resize: vertical;
}

.modal-body .btn {
    width: 100%;
    margin-top: 1rem;
}

@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 8px;
    margin-left: 20px;
    align-items: center;
}

.lang-btn {
    border: none;
    background: none;
    padding: 4px 8px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-size: 14px;
}

.lang-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .language-switcher {
        margin: 15px 0;
        justify-content: center;
    }
    
    .lang-btn {
        padding: 3px 6px;
        font-size: 12px;
    }
}

/* Add data-translate attributes to all translatable elements */
[data-translate] {
    transition: opacity 0.3s ease;
}

[data-translate].translating {
    opacity: 0;
}

/* Mobile Language Switcher */
.mobile-language-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background-color: var(--primary-color-light);
    border-radius: var(--border-radius);
}

.mobile-language-switcher .lang-btn {
    padding: 8px 16px;
    font-size: 16px;
    border-radius: 20px;
    background-color: white;
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.mobile-language-switcher .lang-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.mobile-language-switcher .lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 768px) {
    .mobile-language-switcher {
        margin: 15px 0;
    }
    
    .mobile-language-switcher .lang-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
}

div#statusTimeline, div#taekbaeStatusTimeline {
    padding-top: 40px;
    padding-left: 45px;
}

.btn[disabled],
button[disabled],
.btn:disabled,
button:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    filter: grayscale(30%);
    background-color: #d6857c !important;
    color: white !important;
    border-color: #d6857c !important;
}

/* ================================
   Taekbae Tracking Timeline Styles
   (Matching Mockup Design)
   ================================ */

/* Container cho toàn bộ kết quả */
#taekbaeStatusTimeline {
    padding: 2rem;
    background: #f5f5f5;
    border-radius: 1.6rem;
    margin-top: 2rem;
}

/* Carrier Info Section - Layout như mockup */
.taekbae-carrier-info {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 1.2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.carrier-icon {
    width: 5rem;
    height: 5rem;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.carrier-icon i {
    font-size: 2.4rem;
    color: #666;
}

.carrier-details {
    flex: 1;
}

.carrier-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.carrier-id {
    font-weight: 400;
    color: #888;
    font-size: 1.4rem;
}

.carrier-tel {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.6rem 1.4rem;
    border-radius: 2rem;
    font-size: 1.3rem;
    text-decoration: none;
    transition: var(--transition);
}

.carrier-tel:hover {
    background: var(--primary-color-dark);
    transform: translateY(-2px);
    color: white;
}

/* State Badge - Centered như mockup */
.taekbae-state {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.state-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 3rem;
    border-radius: 3rem;
    font-size: 1.6rem;
    font-weight: 600;
}

.state-delivered {
    background: #28a745;
    color: white;
}

.state-in-progress {
    background: #ffc107;
    color: #333;
}

.state-badge i {
    font-size: 1.6rem;
}

/* Progresses Timeline - Vertical layout như mockup */
.progresses-list {
    position: relative;
    padding-left: 1.5rem;
}

/* Timeline vertical line */
.progresses-list::before {
    content: '';
    position: absolute;
    left: 0.6rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color) 0%, #ddd 100%);
    border-radius: 3px;
}

/* Progress Item */
.progress-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1.2rem;
    margin-bottom: 1rem;
    margin-left: 2rem;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

/* Timeline dot */
.progress-timeline-dot {
    position: absolute;
    left: -2.4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: white;
    border: 3px solid #ccc;
    border-radius: 50%;
    z-index: 2;
}

.progress-latest .progress-timeline-dot {
    background: #28a745;
    border-color: #28a745;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.2);
}

.progress-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.progress-latest {
    border-left: 4px solid #28a745;
    background: #f8fff9;
}

/* Time block - Date và Time tách biệt */
.progress-time-block {
    min-width: 100px;
    text-align: left;
    flex-shrink: 0;
    border-right: 1px solid #eee;
    padding-right: 1.2rem;
    margin-right: 0.5rem;
}

.progress-date {
    font-size: 1.3rem;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
}

.progress-time {
    font-size: 1.2rem;
    color: #888;
    white-space: nowrap;
}

/* Content section */
.progress-content {
    flex: 1;
}

.progress-status {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.4rem;
}

.progress-latest .progress-status {
    color: #28a745;
}

.progress-location {
    font-size: 1.3rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
}

.progress-location i {
    font-size: 1.2rem;
}

.progress-desc {
    font-size: 1.3rem;
    color: #666;
    line-height: 1.5;
}

/* No data message */
.no-progresses {
    background: white;
    padding: 2rem;
    border-radius: 1.2rem;
    text-align: center;
    color: #888;
    font-size: 1.4rem;
}

.no-progresses i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    #taekbaeStatusTimeline {
        padding: 1.5rem;
    }

    .taekbae-carrier-info {
        flex-direction: column;
        text-align: center;
    }

    .carrier-tel {
        margin-top: 1rem;
    }

    .progress-item {
        flex-direction: column;
        gap: 0.8rem;
        margin-left: 1.5rem;
        padding: 1.2rem;
    }

    .progress-time-block {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
        border-bottom: 1px solid #eee;
        padding-bottom: 0.8rem;
        margin-bottom: 0.5rem;
        min-width: auto;
    }

    .progress-timeline-dot {
        left: -1.8rem;
        width: 12px;
        height: 12px;
    }

    .progresses-list::before {
        left: 0.5rem;
        width: 2px;
    }
}