/********** Template CSS **********/
:root {
     --primary: #DC2626;
    --secondary: #FF9900;
    --dark: #DC2626;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}



/*** Spinner ***/


#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

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

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 75px;
}

.navbar .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.header-carousel .owl-carousel-text {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 3rem;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.header-carousel .owl-nav {
    position: absolute;
    width: 200px;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 15px;
    transition: .5s;
}

.header-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 4px;
    left: 4px;
    background: #FFFFFF;
    border-radius: 5px;
}

.header-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: url(../img/header-page.jpg) top center no-repeat;
    background-size: cover;
    text-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Service ***/
.service-item {
    transition: .5s;
}

.service-item:hover {
    margin-top: -10px;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .08);
}

.service-item .btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 40px;
    white-space: nowrap;
    overflow: hidden;
    transition: .5s;
}

.service-item:hover .btn {
    width: 140px;
}


/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Team ***/
.team-item img {
    position: relative;
    top: 0;
    transition: .5s;
}

.team-item:hover img {
    top: -30px;
}

.team-item .team-text {
    position: relative;
    height: 100px;
    transition: .5s;
}

.team-item:hover .team-text {
    margin-top: -60px;
    height: 160px;
}

.team-item .team-text .team-social {
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text .team-social {
    opacity: 1;
}

.team-item .team-social .btn {
    display: inline-flex;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Appointment ***/
.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text {
    background: var(--light);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary);
    transform: scale(1);
}

.testimonial-carousel .owl-item .testimonial-text *,
.testimonial-carousel .owl-item .testimonial-item img {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: var(--light) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item img {
    background: var(--primary) !important;
} 

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}


/*** Footer ***/

/* =================================
   NABEM RED & WHITE FOOTER
================================= */

.footer {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%) !important;
    color: #FFFFFF !important;
}

/* Footer headings */
.footer h5 {
    color: #FFFFFF !important;
    font-weight: 700;
    margin-bottom: 22px;
}

/* Footer paragraphs */
.footer p,
.footer span {
    color: #FFFFFF !important;
    opacity: 0.9;
}

/* Footer links */
.footer .btn.btn-link {
    color: #FFFFFF !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer .btn.btn-link:hover {
    color: #FFFFFF !important;
    opacity: 0.7;
    padding-left: 6px;
}

/* Social media icons */
.footer .btn.btn-social {
    color: #DC2626 !important;
    background: #FFFFFF;
    border: 1px solid #FFFFFF;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer .btn.btn-social:hover {
    color: #FFFFFF !important;
    background: transparent;
    border-color: #FFFFFF;
}

/* Newsletter input */
.footer .form-control {
    background: #FFFFFF;
    color: #172B3D;
    border: 1px solid #FFFFFF;
}

/* Newsletter button */
.footer .btn-primary {
    background: #FFFFFF !important;
    color: #DC2626 !important;
    border: 1px solid #FFFFFF !important;
    font-weight: 700;
}

.footer .btn-primary:hover {
    background: #B91C1C !important;
    color: #FFFFFF !important;
}

/* Copyright section */
.footer .copyright {
    border-top: 1px solid rgba(255,255,255,0.3);
    color: #FFFFFF;
}

.footer .copyright a {
    color: #FFFFFF !important;
    font-weight: 600;
}

.footer .copyright a:hover {
    opacity: 0.7;
}


/* NABEM navbar branding */
.navbar .navbar-brand.nabem-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 0;
    padding-top: 10px;
    padding-bottom: 10px;
}

/*
 * Display the supplied portrait image in a compact frame.
 * The image is positioned to hide its large white margins.
 */
.nabem-logo-frame {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 112px;
    height: 76px;
    overflow: hidden;
    background: #ffffff;
}

.nabem-logo-frame img {
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    width: 118px;
    height: auto;
    max-width: none;
    transform: translate(-50%, -45%);
}

.nabem-brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.nabem-brand-name {
    color: #e50914;
    font-family: "Roboto", sans-serif;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.nabem-brand-description {
    margin-top: 4px;
    color: #555555;
    font-family: "Open Sans", sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
}

/* Keep the brand compact on smaller screens */
@media (max-width: 575.98px) {
    .navbar .navbar-brand.nabem-brand {
        gap: 8px;
        padding-left: 12px !important;
        padding-right: 0 !important;
    }

    .nabem-logo-frame {
        width: 82px;
        height: 58px;
    }

    .nabem-logo-frame img {
        width: 88px;
    }

    .nabem-brand-name {
        font-size: 23px;
    }

    .nabem-brand-description {
        max-width: 125px;
        font-size: 10px;
        white-space: normal;
    }
}

/* White text on the active testimonial's red background */
.testimonial-carousel .owl-item.center .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text p,
.testimonial-carousel .owl-item.center .testimonial-text h5,
.testimonial-carousel .owl-item.center .testimonial-text span {
    color: #ffffff !important;
}

/* Improve testimonial text readability */
.testimonial-carousel .testimonial-text p {
    font-size: 17px;
    line-height: 1.8;
}

.testimonial-carousel .testimonial-text h5 {
    font-weight: 700;
}

.testimonial-carousel .testimonial-text span {
    font-size: 15px;
}



/* MED-EL Partnership CTA Styling */
.header-cta-links .btn {
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
}

.header-cta-links .btn-light {
    color: #e92329;
    border: 2px solid #ffffff;
}

.header-cta-links .btn-light:hover {
    background: #c9151b;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-3px);
}

.header-cta-links .btn-outline-light:hover {
    background: #ffffff;
    color: #e92329;
    transform: translateY(-3px);
}




/* NABEM Hearing Journey Cards */

.hearing-step-card {
    min-height: 125px;
    border: 1px solid rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.hearing-step-card h2 {
    font-size: 30px;
    font-weight: 800;
}

.hearing-step-card h5 {
    font-size: 16px;
    font-weight: 600;
}

.hearing-step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

@media (max-width: 576px) {
    .hearing-step-card {
        min-height: 110px;
    }
}



/* =========================================
   NABEM BRAND SYSTEM
========================================= */

:root {
    --nabem-red: #DC2626;
    --nabem-red-dark: #B91C1C;
    --nabem-white: #FFFFFF;
    --nabem-text: #172B3D;
    --nabem-border: #E5E7EB;
}

/* =========================================
   PARTNERSHIP SECTION
========================================= */



/* ==========================================
   NABEM CONTACT & APPOINTMENT SECTION
========================================== */

.nabem-contact-section {
    background: #FFFFFF;
    padding: 75px 0;
    overflow: hidden;
}

.nabem-contact-section .nabem-contact-info {
    padding: 10px 45px 20px 0;
}

/* Appointment label */

.nabem-contact-section .appointment-label {
    display: inline-block;
    padding: 7px 24px;
    margin-bottom: 20px;
    color: #64748B;
    background: #FFFFFF;
    border: 1px solid #C9D9F5;
    border-radius: 50px;
    font-size: 15px;
    text-decoration: none;
    transition: all .3s ease;
}

.nabem-contact-section .appointment-label:hover {
    color: #DC2626;
    border-color: #DC2626;
}

/* Main heading */

.nabem-contact-section .nabem-contact-info h2 {
    color: #102F46;
    font-size: clamp(32px, 3.5vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

/* Introduction */

.nabem-contact-section .contact-intro {
    color: #64748B;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 22px;
}

/* Contact information cards */

.nabem-contact-section .contact-info-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 27px 30px;
    margin-bottom: 23px;
    min-height: 125px;
    background: #EEF4FF;
    border-radius: 10px;
    transition: all .3s ease;
}

.nabem-contact-section .contact-info-card:hover {
    background: #E5EEFF;
    transform: translateY(-3px);
}

.nabem-contact-section .contact-icon {
    flex: 0 0 55px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #DC2626;
    background: #FFFFFF;
    border-radius: 50%;
    font-size: 19px;
}

.nabem-contact-section .contact-info-card span {
    display: block;
    color: #64748B;
    font-size: 15px;
    margin-bottom: 4px;
}

.nabem-contact-section .contact-info-card h5 {
    color: #102F46;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 5px;
}

.nabem-contact-section .contact-info-card a {
    color: #DC2626;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.nabem-contact-section .contact-info-card a:hover {
    color: #B91C1C;
    text-decoration: underline;
}

/* Appointment form panel */

.nabem-contact-section .nabem-appointment-form {
    height: 100%;
    padding: 45px 38px;
    background: #EEF4FF;
    border-radius: 12px;
}

.nabem-contact-section .form-heading h3 {
    color: #102F46;
    font-size: 25px;
    font-weight: 800;
    margin-bottom: 8px;
}

.nabem-contact-section .form-heading p {
    color: #64748B;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Form controls */

.nabem-contact-section .form-control,
.nabem-contact-section .form-select {
    width: 100%;
    min-height: 55px;
    padding: 14px 15px;
    color: #334155;
    background-color: #FFFFFF;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 15px;
    box-shadow: none;
    transition: all .25s ease;
}

.nabem-contact-section .form-control::placeholder {
    color: #64748B;
    opacity: 1;
}

.nabem-contact-section .form-control:focus,
.nabem-contact-section .form-select:focus {
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .10);
    outline: none;
}

.nabem-contact-section textarea.form-control {
    min-height: 135px;
    resize: vertical;
}

/* Submit button */

.nabem-contact-section .appointment-submit-btn {
    width: 100%;
    min-height: 58px;
    padding: 15px 25px;
    color: #FFFFFF;
    background: #DC2626;
    border: 2px solid #DC2626;
    border-radius: 9px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s ease;
}

.nabem-contact-section .appointment-submit-btn:hover {
    background: #B91C1C;
    border-color: #B91C1C;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(220, 38, 38, .18);
}

.nabem-contact-section .form-note {
    margin: 17px 0 0;
    color: #64748B;
    font-size: 12px;
    line-height: 1.6;
}

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

@media (max-width: 991.98px) {

    .nabem-contact-section {
        padding: 55px 0;
    }

    .nabem-contact-section .nabem-contact-info {
        padding: 10px 25px 25px 0;
    }

    .nabem-contact-section .nabem-contact-info h2 {
        font-size: 32px;
    }

    .nabem-contact-section .nabem-appointment-form {
        padding: 35px 25px;
    }

    .nabem-contact-section .contact-info-card {
        padding: 22px;
        gap: 17px;
    }
}

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

@media (max-width: 767.98px) {

    .nabem-contact-section {
        padding: 40px 0;
    }

    .nabem-contact-section .nabem-contact-info {
        padding: 0 0 20px;
    }

    .nabem-contact-section .nabem-contact-info h2 {
        font-size: 30px;
    }

    .nabem-contact-section .contact-intro {
        font-size: 15px;
    }

    .nabem-contact-section .contact-info-card {
        min-height: 110px;
        padding: 20px;
        margin-bottom: 15px;
    }

    .nabem-contact-section .nabem-appointment-form {
        padding: 28px 20px;
        margin-top: 15px;
    }

    .nabem-contact-section .form-heading h3 {
        font-size: 23px;
    }

    .nabem-contact-section .form-control,
    .nabem-contact-section .form-select {
        min-height: 53px;
    }
}

@media (max-width: 575.98px) {

    .nabem-contact-section .nabem-contact-info h2 {
        font-size: 28px;
    }

    .nabem-contact-section .contact-info-card h5 {
        font-size: 15px;
    }

    .nabem-contact-section .nabem-appointment-form {
        padding: 25px 16px;
    }

    .nabem-contact-section .contact-icon {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }
}


/* NABEM Contact Icons - Screenshot Style */

.nabem-contact-section .contact-icon {
    flex: 0 0 55px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    color: #DC2626;
    border-radius: 50%;
    font-size: 17px;
    transition: all 0.3s ease;
}

.nabem-contact-section .contact-info-card:hover .contact-icon {
    background: #DC2626;
    color: #FFFFFF;
    transform: scale(1.05);
}




/* ==========================================
   NABEM APPOINTMENT SECTION - RED & WHITE
========================================== */

.nabem-contact-section {
    position: relative;
    overflow: hidden;
    padding: 85px 0;
    background: linear-gradient(
        135deg,
        #FFFFFF 0%,
        #FFF8F8 55%,
        #FFF1F1 100%
    );
}

/* Subtle decorative red accent */
.nabem-contact-section::before {
    content: "";
    position: absolute;
    top: -130px;
    right: -100px;
    width: 320px;
    height: 320px;
    border: 45px solid rgba(220, 38, 38, 0.035);
    border-radius: 50%;
    pointer-events: none;
}

.nabem-contact-section .container {
    position: relative;
    z-index: 1;
}

/* LEFT CONTACT AREA */

.nabem-contact-section .nabem-contact-info {
    padding: 10px 45px 20px 0;
}

.nabem-contact-section .appointment-label {
    color: #DC2626;
    background: #FFFFFF;
    border: 1px solid #F3CACA;
    border-radius: 50px;
    transition: all .3s ease;
}

.nabem-contact-section .appointment-label:hover {
    color: #FFFFFF;
    background: #DC2626;
    border-color: #DC2626;
}

.nabem-contact-section .nabem-contact-info h2 {
    color: #102F46;
    font-weight: 800;
}

.nabem-contact-section .contact-intro {
    color: #64748B;
}

/* CONTACT CARDS */

.nabem-contact-section .contact-info-card {
    background: #FFF3F3;
    border: 1px solid #FCE1E1;
    border-radius: 12px;
    transition: all .35s ease;
}

.nabem-contact-section .contact-info-card:hover {
    background: #FFFFFF;
    border-color: #DC2626;
    box-shadow: 0 12px 30px rgba(220, 38, 38, .09);
    transform: translateY(-5px);
}

/* CIRCULAR ICONS */

.nabem-contact-section .contact-icon {
    background: #FFFFFF;
    color: #DC2626;
    border: 1px solid #FCE1E1;
    box-shadow: 0 4px 12px rgba(220, 38, 38, .06);
    transition: all .35s ease;
}

.nabem-contact-section .contact-info-card:hover .contact-icon {
    background: #DC2626;
    color: #FFFFFF;
    border-color: #DC2626;
    transform: rotate(8deg);
}

.nabem-contact-section .contact-info-card h5 {
    color: #102F46;
}

.nabem-contact-section .contact-info-card a {
    color: #DC2626;
}

/* RIGHT APPOINTMENT FORM */

.nabem-contact-section .nabem-appointment-form {
    height: 100%;
    padding: 45px 38px;
    background: #FFFFFF;
    border: 1px solid #F5DADA;
    border-top: 4px solid #DC2626;
    border-radius: 15px;
    box-shadow: 0 15px 45px rgba(16, 47, 70, .07);
    transition: box-shadow .35s ease;
}

.nabem-contact-section .nabem-appointment-form:hover {
    box-shadow: 0 20px 50px rgba(220, 38, 38, .09);
}

.nabem-contact-section .form-heading h3 {
    color: #102F46;
    font-weight: 800;
}

.nabem-contact-section .form-heading p {
    color: #64748B;
}

/* FORM INPUTS */

.nabem-contact-section .form-control,
.nabem-contact-section .form-select {
    background: #FFF9F9;
    color: #334155;
    border: 1px solid #F1E2E2;
    border-radius: 9px;
}

.nabem-contact-section .form-control:focus,
.nabem-contact-section .form-select:focus {
    background: #FFFFFF;
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .10);
}

/* SUBMIT BUTTON */

.nabem-contact-section .appointment-submit-btn {
    color: #FFFFFF;
    background: #DC2626;
    border: 2px solid #DC2626;
    border-radius: 9px;
    font-weight: 700;
    transition: all .3s ease;
}

.nabem-contact-section .appointment-submit-btn:hover {
    background: #B91C1C;
    border-color: #B91C1C;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, .2);
}

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

@media (max-width: 991px) {
    .nabem-contact-section {
        padding: 60px 0;
    }

    .nabem-contact-section .nabem-contact-info {
        padding-right: 20px;
    }
}

@media (max-width: 767px) {
    .nabem-contact-section {
        padding: 45px 0;
    }

    .nabem-contact-section .nabem-contact-info {
        padding-right: 0;
    }

    .nabem-contact-section .nabem-appointment-form {
        padding: 28px 20px;
        margin-top: 20px;
    }
}



/* =========================================
   NABEM CINEMATIC HEADER CAROUSEL
   Smooth video-style zoom effect
========================================= */

.header-carousel {
    overflow: hidden;
    position: relative;
}

.header-carousel .owl-carousel-item {
    position: relative;
    overflow: hidden;
}

/* Carousel image */
.header-carousel .owl-carousel-item img {
    display: block;
    width: 100%;
    height: 550px;
    object-fit: cover;
    transform: scale(1);
    will-change: transform;
}

/* Animate only the currently active image */
.header-carousel .owl-item.active img {
    animation: nabemCinematicZoom 7s ease-in-out forwards;
}

/* Smooth zoom-in and gentle zoom-out */
@keyframes nabemCinematicZoom {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1.05);
    }
}

/* Keep captions above the animated images */
.header-carousel .owl-carousel-text {
    z-index: 2;
    position: absolute;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    .header-carousel .owl-carousel-item img {
        height: 380px;
    }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .header-carousel .owl-item.active img {
        animation: none;
    }
}


.hero-message {
    position: relative;
    z-index: 5;
}

.animated-heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
}

.animated-line {
    display: block;
    opacity: 0;
    transform: translateY(45px);
    filter: blur(8px);
    transition:
        opacity 1s ease,
        transform 1s cubic-bezier(.22, 1, .36, 1),
        filter 1s ease;
}

.animated-line.show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.animated-line:nth-child(1) {
    transition-delay: 0.2s;
}

.animated-line:nth-child(2) {
    transition-delay: 0.7s;
}

.animated-line:nth-child(3) {
    transition-delay: 1.2s;
}

.animated-line.highlight {
    color: #00b4d8;
}

/* NABEM Preloader */
.nabem-preloader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.nabem-preloader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.preloader-logo {
    width: 155px;
    height: 155px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    animation: logoPulse 1.8s ease-in-out infinite;
}

.preloader-ring {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 3px solid transparent;
    border-top: 3px solid #ed1c24;
    border-right: 3px solid #ed1c24;
    border-radius: 50%;
    animation: ringRotate 1.8s linear infinite;
}

.preloader-text {
    margin-top: 25px;
    font-size: 20px;
    font-weight: 800;
    color: #ed1c24;
    letter-spacing: 2px;
}

.preloader-loading {
    font-size: 12px;
    color: #777;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: loadingFade 1.5s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.07);
    }
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes loadingFade {
    0%, 100% {
        opacity: 0.35;
    }
    50% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .preloader-logo,
    .preloader-ring,
    .preloader-loading {
        animation: none;
    }
}