/* Frontend Styles */
:root {
    --primary-color: #9E8A78;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --gray-color: #f1f1f1;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --white-color: #ffffff;
    --black-color: #000000;
    --beige-color: #f9f5f0;
    --icon-color: #a58a6e;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
    overflow-x: hidden;
    padding-top: 0;
    max-width: 100%;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1050;
    background-color: var(--dark-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 15px 0;
}

/* Navbar layout for centered menu */
.navbar-collapse {
    display: flex;
    justify-content: space-between;
}

.navbar-nav-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.navbar-nav {
    width: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.navbar-actions {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Container padding cho các kích thước màn hình khác nhau */
@media (min-width: 1200px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
        max-width: 1320px;
    }
}

/* Responsive navbar */
@media (max-width: 991.98px) {
    .navbar-collapse {
        flex-direction: column;
    }

    .navbar-nav-container {
        width: 100%;
        justify-content: flex-start;
    }

    .navbar-nav {
        flex-direction: column !important;
    }

    .nav-item {
        width: 100%;
    }

    .navbar-actions {
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }
}

.navbar-brand img {
    max-height: 50px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 0.8rem !important;
    transition: all 0.3s ease;
    margin: 0;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--primary-color);
}

/* Main content padding */
main {
    padding-top: 80px; /* Default padding for all pages */
}

/* Hero carousel exception */
#heroCarousel {
    margin-top: -80px; /* Offset hero carousel by header height */
}

/* Ensure hero is displayed correctly */
#heroCarousel .carousel-item {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    filter: brightness(1.1);
}

#heroCarousel .carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

#heroCarousel .hero-content {
    position: relative;
    z-index: 2;
    color: white;
    width: 100%;
}

#heroCarousel .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

#heroCarousel .hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

/* Hero Section (Original) */
.hero-section {
    background-color: var(--dark-color);
    color: white;
    padding: 6rem 0;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Button Styles */
.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.3rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #8A7869;
    border-color: #7F6E60;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 1rem;
}

/* Định nghĩa full-width-section đã được di chuyển xuống dưới */

.section-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title.text-center:after {
    left: 50%;
    transform: translateX(-50%);
}

.section-description {
    font-size: 1.1rem;
    color: var(--secondary-color);
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.card-text {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Category Filter Styles */
.category-filter {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.category-filter .btn {
    margin: 0.25rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-filter .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-filter .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.category-filter .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Service Styles */
.service-item {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-description {
    color: #6c757d;
}

/* Barber Styles */
.barber-item {
    text-align: center;
    margin-bottom: 2rem;
}

.barber-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 5px solid #f8f9fa;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.barber-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.barber-position {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #f8f9fa;
    border-radius: 50%;
    color: var(--dark-color);
    margin: 0 5px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 5rem 0 2rem;
}

footer h5 {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

footer p, footer li {
    color: rgba(255, 255, 255, 0.7);
}

footer .social-icons a {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

footer .social-icons a:hover {
    background-color: var(--primary-color);
}

footer .social-icons a.facebook:hover {
    background-color: #1877f2; /* Facebook blue */
}

footer .social-icons a.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); /* Instagram gradient */
}

footer .social-icons a.youtube:hover {
    background-color: #ff0000; /* YouTube red */
}

footer .social-icons a.tiktok:hover {
    background-color: #000000; /* TikTok black */
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.contact-info li i {
    margin-top: 5px;
    width: 20px;
}

/* Form Styles */
.form-control {
    padding: 0.75rem 1rem;
    border-radius: 0.3rem;
    border: 1px solid #ced4da;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Auth Modal Styles */
#authModal .modal-content {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#authModal .modal-header {
    background-color: var(--primary-color);
    border-bottom: none;
    padding: 1.5rem;
}

#authModal .modal-title {
    font-weight: 600;
    color: white;
}

#authModal .modal-body {
    padding: 2rem;
}

#authModal .form-label {
    font-weight: 500;
}

#authModal .btn-primary {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

#authModal a {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

#authModal a:hover {
    color: #8A7869;
    text-decoration: underline !important;
}

/* OTP Input Styles */
#otp.is-valid, #login_email.is-valid, #login_password.is-valid {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    border-color: #28a745;
    padding-right: calc(1.5em + 0.75rem);
}

#otp.is-invalid, #login_email.is-invalid, #login_password.is-invalid {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
}

#otp:focus, #login_email:focus, #login_password:focus {
    background-image: none;
}

/* OTP Timer Styles */
.otp-timer-container {
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
}

.otp-timer-label {
    font-size: 14px;
    color: #495057;
    margin-bottom: 5px;
}

.otp-timer {
    font-size: 24px;
    font-weight: 700;
    color: #0d6efd;
    font-family: 'Courier New', monospace;
}

.otp-timer.warning {
    color: #fd7e14;
}

.otp-timer.danger {
    color: #dc3545;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Service Card Styles */
.service-card {
    transition: all 0.3s ease;
    border: none;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--beige-color);
    color: var(--icon-color);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
}

.service-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Appointment Styles */
.appointment-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.appointment-steps:before {
    content: "";
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e9ecef;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background-color: var(--primary-color);
    color: white;
}

.step.completed .step-number {
    background-color: var(--success-color);
    color: white;
}

.step-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.step.active .step-title {
    color: var(--primary-color);
}

.step.completed .step-title {
    color: var(--success-color);
}

/* User dropdown in navbar */
.navbar-actions .dropdown {
    display: flex;
    align-items: center;
    margin-left: 0.25rem;
}

.navbar-actions .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    height: 38px;
}

.navbar-actions .dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: none;
    padding: 0.5rem 0;
    min-width: 200px;
}

.navbar-actions .dropdown-item {
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
}

.navbar-actions .dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Responsive Styles */
@media (min-width: 1200px) and (max-width: 1400px) {
    .nav-link {
        padding: 0.5rem 0.5rem !important;
        font-size: 0.95rem;
    }

    .btn-primary {
        padding: 0.5rem 1rem;
        margin-right: 0.5rem !important;
    }

    .navbar-nav {
        gap: 0;
    }

    .d-flex.align-items-center {
        gap: 0.5rem;
    }

    .nav-item {
        margin-right: 0;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .nav-link {
        padding: 0.5rem 0.3rem !important;
        font-size: 0.85rem;
    }

    .btn-primary {
        padding: 0.4rem 0.7rem;
        margin-right: 0.4rem !important;
        font-size: 0.9rem;
    }

    .navbar-nav {
        gap: 0;
    }

    .d-flex.align-items-center {
        gap: 0.3rem;
    }

    .nav-item {
        margin-right: 0;
    }

    .navbar-brand img {
        max-height: 38px;
    }

    .navbar {
        padding: 10px 0;
    }

    /* Giảm kích thước dropdown menu */
    .dropdown-menu {
        min-width: 10rem;
        padding: 0.3rem 0;
    }

    .dropdown-item {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar-collapse {
        background-color: var(--dark-color);
        padding: 1rem;
        border-radius: 0.3rem;
        margin-top: 1rem;
    }

    /* Cải thiện hiển thị menu trên màn hình nhỏ */
    .navbar-toggler {
        margin-right: 0.5rem;
    }

    .navbar-brand img {
        max-height: 35px;
    }

    .navbar {
        padding: 8px 0;
    }

    /* Đảm bảo nút đặt lịch hiển thị đúng */
    .navbar-actions {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.25rem;
        margin-top: 1rem;
        width: 100%;
    }

    .navbar-actions .btn {
        width: 100%;
        text-align: center;
        margin: 0 0 0.5rem 0 !important;
    }

    .navbar-actions .dropdown {
        width: 100%;
    }

    .navbar-actions .dropdown-toggle {
        width: 100%;
        justify-content: center;
    }

    /* Tăng cỡ chữ cho menu trên màn hình nhỏ */
    .nav-link {
        font-size: 1rem;
        padding: 0.7rem 1rem !important;
    }

    .dropdown-item {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }

    .btn {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .appointment-steps {
        flex-direction: column;
        align-items: flex-start;
    }

    .appointment-steps:before {
        display: none;
    }

    .step {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
    }

    .step-number {
        margin: 0 1rem 0 0;
    }

    .barber-image {
        width: 150px;
        height: 150px;
    }

    /* Tăng cỡ chữ cho màn hình nhỏ hơn */
    .nav-link {
        font-size: 1.1rem;
        padding: 0.8rem 1.2rem !important;
    }

    .dropdown-item {
        font-size: 1.1rem;
        padding: 0.8rem 1.2rem;
    }

    .btn {
        font-size: 1.1rem;
        padding: 0.7rem 1.2rem;
    }

    /* Tăng cỡ chữ cho nội dung */
    body {
        font-size: 1.05rem;
    }

    p {
        font-size: 1.05rem;
        line-height: 1.7;
    }

    .card-text {
        font-size: 1.05rem;
    }
}

/* Màn hình cực nhỏ */
@media (max-width: 575.98px) {
    /* Tăng cỡ chữ cho màn hình cực nhỏ */
    .nav-link {
        font-size: 1.15rem;
        padding: 0.9rem 1.2rem !important;
    }

    .dropdown-item {
        font-size: 1.15rem;
        padding: 0.9rem 1.2rem;
    }

    .btn {
        font-size: 1.15rem;
        padding: 0.8rem 1.2rem;
    }

    /* Tăng cỡ chữ cho nội dung */
    body {
        font-size: 1.1rem;
    }

    p {
        font-size: 1.1rem;
        line-height: 1.8;
    }

    .card-text {
        font-size: 1.1rem;
    }

    /* Tăng cỡ chữ cho tiêu đề */
    h1, .h1 {
        font-size: 2.2rem;
    }

    h2, .h2 {
        font-size: 1.9rem;
    }

    h3, .h3 {
        font-size: 1.7rem;
    }

    h4, .h4 {
        font-size: 1.5rem;
    }

    h5, .h5 {
        font-size: 1.3rem;
    }

    h6, .h6 {
        font-size: 1.1rem;
    }
}

/* Collage Image Styles */
.barber-collage-container {
    width: 100%;
    height: 500px;
    position: relative;
}

.collage-image {
    position: absolute;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.collage-image img {
    border-radius: 8px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collage-image-1 {
    width: 70%;
    height: 65%;
    top: 0;
    left: 0;
    z-index: 3;
}

.collage-image-2 {
    width: 45%;
    height: 40%;
    bottom: 0;
    left: 0;
    z-index: 2;
}

.collage-image-3 {
    width: 55%;
    height: 50%;
    top: 25%;
    right: 0;
    z-index: 1;
}

.collage-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

/* Full-width Sections */
.full-width-section {
    position: relative;
    box-sizing: border-box;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow-x: hidden;
}

/* Appointment Banner */
.appointment-banner {
    color: white;
    position: relative;
    box-sizing: border-box;
}

.appointment-banner .container {
    position: relative;
    z-index: 1;
}

/* Section Services */
.section-services {
    background-color: var(--beige-color);
}

.section-services::before {
    background-color: var(--beige-color);
    background-image: none;
}

/* Section News */
.section-news::before {
    background-image: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

/* Override any potential overflow issues */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Full-width background */
.full-width-bg {
    position: relative;
    margin: 0 -9999rem;
    padding: 0.25rem 9999rem;
}

.appointment-banner.full-width-bg {
    background-color: var(--primary-color);
}

.section-services.full-width-bg {
    background-color: var(--beige-color);
}

/* Điều chỉnh padding-top cho main content khi không có hero carousel */
main > .container.py-5 {
    padding-top: 3rem !important; /* Reset to normal Bootstrap py-5 value */
}

/* Page Header Styles */
.page-header {
    min-height: 320px;
    display: flex;
    align-items: center;
}

.full-width-banner {
    margin-top: -80px; /* Cùng giá trị với padding-top của main */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 420px; /* Tăng chiều cao để banner lớn hơn */
}

.page-header .display-3 {
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.page-header .lead {
    max-width: 680px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.z-index-1 {
    z-index: 1;
}

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fadeInUp {
    animation-name: fadeInUp;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Breadcrumb divider mặc định */
.breadcrumb-item + .breadcrumb-item::before {
    color: #6c757d;
}

/* Breadcrumb divider trong page-header (nền tối) */
.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color) !important;
    text-decoration: none !important;
}

/* Breadcrumb trong page-header (nền tối) */
.page-header .breadcrumb-item a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

/* Full width CTA section */
.cta-appointment {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 5rem 0;
    background-color: var(--primary-color) !important; /* Sử dụng màu chủ đạo của dự án */
}

.cta-appointment .btn-light {
    padding: 0.8rem 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.cta-appointment .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

/* Error message styles */
#authAlert.alert-danger {
    background-color: #fff8f8;
    border-color: #f5c6cb;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 500;
    border-left: 4px solid #dc3545;
}

/* Validation error styles */
.invalid-feedback {
    font-size: 0.85rem;
    font-weight: 500;
    color: #dc3545;
    margin-top: 5px;
}

/* Highlight input with error */
.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}