/********** Template CSS **********/
:root {
    --primary: #06A3DA;
    --secondary: #F57E57;
    --light: #EEF9FF;
    --dark: #091E3E;
}

h1,
h2,
.font-weight-bold {
    font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
    font-weight: 500 !important;
}

.btn {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.top-shape::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 100%;
    top: 0;
    left: -17px;
    background: var(--primary);
    transform: skew(40deg);
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    padding: 35px 15px;
    font-size: 18px;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 15px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 62, .85);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (min-width: 991.98px) {
    .banner {
        position: relative;
        margin-top: -90px;
        z-index: 1;
    }
}

.section-title h5::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 3px;
    right: -55px;
    bottom: 11px;
    background: var(--primary);
}

.section-title h5::after {
    position: absolute;
    content: "";
    width: 15px;
    height: 3px;
    right: -75px;
    bottom: 11px;
    background: var(--secondary);
}

.twentytwenty-wrapper {
    height: 100%;
}

.hero-header {
    background: linear-gradient(rgba(9, 30, 62, .85), rgba(9, 30, 62, .85)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.bg-appointment {
    background: linear-gradient(rgba(9, 30, 62, .85), rgba(9, 30, 62, .85)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.appointment-form {
    background: rgba(6, 163, 218, .7);
}

.service-item img,
.service-item .bg-light,
.service-item .bg-light h5,
.team-item .team-text {
    transition: .5s;
}

.service-item:hover img {
    transform: scale(1.15);
}

.team-item .team-text::after,
.service-item .bg-light::after {
    position: absolute;
    content: "";
    top: 50%;
    bottom: 0;
    left: 15px;
    right: 15px;
    border-radius:100px / 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, .7);
    opacity: 0;
    transition: .5s;
    z-index: -1;
}

.team-item:hover .team-text::after,
.service-item:hover .bg-light::after {
    opacity: 1;
}

.bg-offer {
    background:url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.offer-text {
    background: rgba(6, 163, 218, .85);
}

.price-carousel .owl-nav {
    position: absolute;
    width: calc(100% + 45px);
    height: 45px;
    top: calc(50% - 22.5px);
    left: -22.5px;
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
}

.price-carousel:hover .owl-nav {
    opacity: 1;
}

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 2px;
    font-size: 22px;
    transition: .5s;
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
}

.bg-testimonial {
    background: url(../img/carousel-2.jpg) center center no-repeat;
    background-size: cover;
}

.testimonial-carousel {
    background: rgba(6, 163, 218, .85);
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: calc(100% + 46px);
    height: 46px;
    top: calc(50% - 23px);
    left: -23px;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 2px;
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
}

.testimonial-carousel .owl-item img {
    width: 120px;
    height: 120px;
}

/* FAQ accordion exact detailing (ported from alert-frontend) */
.faq-item { margin-bottom: 10px; }
.faq-item > a,
.faq-item > a b {
    cursor: pointer;
    text-decoration: none;
    color: red !important;
}
.faq-item > a:hover,
.faq-item > a:hover b {
    color: #b30000 !important;
}
.faq-answer { display: none; }
.faq-answer.open { display: block; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px);} to { opacity: 1; transform: none; } }

/* Referral / appointment forms exact detailing (ported from alert-frontend) */
.form-container label,
.form-container input,
.form-container select,
.form-container textarea { font-size: 18px; }
.form-container input,
.form-container select { height: 40px; }
.form-container textarea { min-height: 60px; }
.refer-wrap { max-width: 800px; margin: 0 auto; padding: 0 15px 40px; }
.refer-wrap h2 { font-size: 1.6rem; margin: 28px 0 12px; color: #091E3E; }
.refer-wrap h3 { font-size: 1.2rem; margin-top: 14px; }
.refer-wrap label { display: block; margin-top: 10px; font-size: 18px; }
.refer-wrap input, .refer-wrap select, .refer-wrap textarea { width: 100%; max-width: 40ch; padding: 8px 10px; margin-top: 5px; font-size: 18px; border: 1px solid #ccc; border-radius: 5px; box-sizing: border-box; }
.refer-wrap textarea { min-height: 60px; resize: vertical; }
.refer-wrap input[type="radio"] { width: auto; }
.refer-wrap button[type="submit"] { margin-top: 18px; padding: 10px 28px; font-size: 1rem; background-color: #007BFF; color: #fff; border: none; border-radius: 5px; cursor: pointer; }
.refer-wrap button[type="submit"]:hover { background-color: #0056b3; }

/* ==========================================================================
   Error Pages (400, 403, 404, 500) Responsive Styles
   ========================================================================== */
.error-section {
    padding: 2.5rem 0 5rem;
}

.error-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(6, 163, 218, 0.16);
    box-shadow: 0 16px 48px rgba(9, 30, 62, 0.08);
    position: relative;
    overflow: hidden;
    padding: 3rem 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.error-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary) 0%, #20c997 50%, var(--secondary) 100%);
}

.error-badge-icon {
    width: 95px;
    height: 95px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(6, 163, 218, 0.18);
    position: relative;
    animation: errorPulse 3s ease-in-out infinite;
}

.error-badge-icon i {
    font-size: 2.75rem;
}

.error-badge-icon.icon-danger {
    background: #fff5f5;
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.18);
}

.error-badge-icon.icon-warning {
    background: #fffbf0;
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.22);
}

.error-badge-icon.icon-secondary {
    background: #fff4f0;
    box-shadow: 0 10px 25px rgba(245, 126, 87, 0.2);
}

@keyframes errorPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(6, 163, 218, 0.18);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 14px 32px rgba(6, 163, 218, 0.3);
    }
}

.error-code-display {
    font-size: clamp(4.5rem, 11vw, 8rem);
    font-weight: 800;
    font-family: 'Jost', sans-serif;
    line-height: 1;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 60%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0.25rem 0 0.75rem;
}

.error-title {
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.error-description {
    font-size: 1.125rem;
    color: #556877;
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto 2rem;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2.5rem;
}

.error-actions .btn {
    border-radius: 50px;
    padding: 0.85rem 1.8rem;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.error-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(6, 163, 218, 0.25);
}

.error-support-box {
    background: linear-gradient(145deg, #ffffff 0%, #eef9ff 100%);
    border-radius: 16px;
    border: 1px solid rgba(6, 163, 218, 0.22);
    padding: 1.75rem 2rem;
    margin-top: 1.5rem;
    box-shadow: 0 6px 20px rgba(6, 163, 218, 0.06);
}

.error-support-box h5 {
    color: var(--dark);
    font-weight: 700;
}

.error-contact-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.25rem;
    border-radius: 50px;
    background: #ffffff;
    border: 1px solid rgba(6, 163, 218, 0.25);
    color: var(--dark);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    margin: 4px;
}

.error-contact-pill:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 163, 218, 0.25);
}

.error-contact-pill:hover i {
    color: #ffffff !important;
}

.error-quicklinks-title {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dark);
    margin-bottom: 1.25rem;
}

.error-quicklink-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2edf6;
    border-radius: 12px;
    padding: 0.85rem 1.2rem;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: all 0.25s ease;
    height: 100%;
}

.error-quicklink-card i {
    font-size: 1.25rem;
    color: var(--primary);
    margin-right: 0.75rem;
    transition: transform 0.25s ease;
}

.error-quicklink-card:hover {
    border-color: var(--primary);
    background: var(--light);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(6, 163, 218, 0.12);
}

.error-quicklink-card:hover i {
    transform: translateX(3px);
}