/* =====================================================================
   Layout & spacing fixes (loaded last). Normalises the theme's spacing,
   the header/search/nav on every screen size, and styles the clinic
   machine illustrations (Views/Shared/_Machine.cshtml).
   ===================================================================== */

/* ---------- search box ---------- */
.mainmenu-area .search-box { width: 270px; height: auto; padding: 11px 0; background: transparent !important; }
.mainmenu-area .search-box form { position: relative; margin: 0; }
.mainmenu-area .search-box input {
    width: 100%; height: 42px; line-height: 42px; padding: 0 48px 0 18px; margin: 0;
    background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; color: var(--heading); font-size: 14px;
}
.mainmenu-area .search-box input::placeholder { color: #8395A6; }
.mainmenu-area .search-box input:focus { border-color: var(--cyan); background: #fff; box-shadow: 0 0 0 3px rgba(10,138,158,.12); outline: none; }
.mainmenu-area .search-box button {
    position: absolute; top: 4px; right: 4px; width: 34px; height: 34px; line-height: 34px; padding: 0;
    border-radius: 50%; background: var(--pulse) !important; color: #fff !important; font-size: 14px; text-align: center;
}
.mainmenu-area .search-box button:hover { background: var(--pulse-deep) !important; }

/* ---------- nav ---------- */
.navigation .nav-header > ul > li > a { padding: 22px 16px; }
.navigation .nav-header > ul > li:first-child > a { padding-left: 0; }
.mainmenu-area .container { position: relative; }

/* ---------- header ---------- */
.header .container:before, .header .container:after { display: none; }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header .logo { float: none !important; padding: 0 !important; }
.header .header-right-info { float: none !important; padding: 0 !important; display: flex; align-items: center; gap: 28px; }
.header .single-header-info { float: none !important; margin: 0 !important; padding: 0 !important; width: auto !important; display: flex !important; align-items: center; }
.header .single-header-info .icon-box { display: block !important; float: none; }
.header .single-header-info .content { float: none; text-align: left !important; margin: 0 0 0 12px !important; display: block !important; }
.header .single-header-info .content h3 { margin: 0 0 2px; }
.header .single-header-info .content p { margin: 0; }
.header .single-header-info .thm-btn { margin: 0 !important; }

/* ---------- page header with machine ---------- */
.inner-header.fx-inner { padding: 46px 0 40px; background: #FFFBFB;
    background-image: linear-gradient(rgba(215,25,31,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(215,25,31,.08) 1px, transparent 1px),
        linear-gradient(rgba(215,25,31,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(215,25,31,.04) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px; }
.inner-header.fx-inner:before { background: linear-gradient(90deg, rgba(255,251,251,.97) 35%, rgba(255,251,251,.6)); }
.fx-inner-row { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.inner-header .fx-inner-text { text-align: left; margin: 0; padding: 0; }
.inner-header .fx-inner-text h2 { margin: 10px 0 12px; }
.inner-header .fx-inner-text .breadcumb { margin: 0; padding: 0; }
.inner-header .fx-inner-text span.decor { margin: 0 !important; }

/* machines inside content */

/* ---------- consistent section rhythm ---------- */
.sec-title { margin-bottom: 46px; }
.sec-title h2 { margin: 0 0 12px; }
.sec-title p { margin: 0 auto 4px; }
.sec-title.style-two { margin-bottom: 24px; }
.sec-padding > .container > .text-center:last-child { margin-top: 10px; }
.sec-padding .text-center .thm-btn + .thm-btn, .fx-hero-actions .thm-btn + .thm-btn { margin-left: 0; }
.text-center .thm-btn { margin: 6px 6px 0; }
main > section:last-child { margin-bottom: 0; }

/* equal-height card grids (services, packages, jobs, docs) */
.row:has(> [class*="col-"] > .service-card), .row:has(> [class*="col-"] > .fx-doc), .row:has(> [class*="col-"] > .clinic-card) { display: flex; flex-wrap: wrap; }
.row:has(> [class*="col-"] > .service-card):before, .row:has(> [class*="col-"] > .service-card):after,
.row:has(> [class*="col-"] > .fx-doc):before, .row:has(> [class*="col-"] > .fx-doc):after,
.row:has(> [class*="col-"] > .clinic-card):before, .row:has(> [class*="col-"] > .clinic-card):after { display: none; }
[class*="col-"]:has(> .service-card), [class*="col-"]:has(> .fx-doc), [class*="col-"]:has(> .clinic-card:only-child) { display: flex; }
.service-card, .fx-doc { width: 100%; min-height: 0; }
[class*="col-"]:has(> .clinic-card:only-child) > .clinic-card { width: 100%; }
.service-card { display: flex; flex-direction: column; }
.service-card p { flex: 1; }

/* cards spacing */
.service-card, .fx-package, .fx-doc, .clinic-card, .job-card { margin-bottom: 30px; }
.clinic-card .thm-btn { margin: 4px 8px 4px 0; }
.clinic-card p:last-child { margin-bottom: 0; }
.job-card p:last-of-type { margin-bottom: 16px; }
.appointment-box { padding: 36px; }
.appointment-box h2 { margin-bottom: 18px; }

/* forms */
.contact-form input, .contact-form textarea { margin-bottom: 16px !important; }
.contact-form input { height: 50px; padding: 0 16px; }
.contact-form textarea { padding: 14px 16px; }
.select-input-wrapper { margin-bottom: 16px; }
.select-input-wrapper .ui-selectmenu-button { height: 50px; line-height: 50px; padding: 0 16px; }
.consent-check { margin: 0 0 8px; }
.form-note { margin-bottom: 16px; }

/* welcome / trust blocks */
.welcome-img { margin-bottom: 0; }
.credential-list { margin: 18px 0 26px; }
.accrodion-grp { margin-top: 24px; }
.accrodion .accrodion-title { padding: 16px 18px; }
.accrodion .accrodion-content { padding: 0 18px 14px 48px; }

/* contact info list */
.contact-content .contact-info li { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.contact-content .contact-info li .icon-box, .contact-content .contact-info li .content-box { float: none; margin: 0; padding: 0; }
.contact-content .contact-info li .content-box h4 { margin: 0 0 4px; }

/* blog */
.single-blog-post .content-box .content { padding-top: 18px; }
.single-blog-post .content-box .content h3 { margin: 0 0 10px; }
.blog-page .single-blog-post .img-box img { height: 340px; }
.single-blog-post .img-box img { aspect-ratio: auto; }
.blog-details .post-body { margin-top: 10px; }

/* footer */
.footer { padding: 70px 0 30px; }
.footer .footer-widget { margin-bottom: 30px; }
.footer .footer-widget .title { margin: 6px 0 22px; }
.footer .footer-widget ul.contact li { display: flex; gap: 10px; margin-bottom: 10px; }
.footer .footer-widget.latest-post ul li { margin-bottom: 16px; }
.footer-call-to-action { padding: 44px 0; }
.footer-call-to-action .row { display: flex; align-items: center; flex-wrap: wrap; }
.footer-call-to-action .row:before, .footer-call-to-action .row:after { display: none; }
.footer-call-to-action h3 { margin: 0 0 8px; }
.footer-call-to-action p { margin: 0; }
.footer-bottom { padding: 18px 0; }
.footer-bottom p { margin: 0; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1199px) {
    .header .single-header-info:first-child { display: none !important; }   /* email moves to top bar / footer */
    .navigation .nav-header > ul > li > a { padding: 22px 11px; font-size: 14px !important; }
    .mainmenu-area .search-box { width: 220px; }
}

@media (max-width: 1024px) {
    /* theme switches to the hamburger menu here */
    .mainmenu-area .container { min-height: 64px; }
    .navigation .nav-footer button { margin: 12px 0; width: 42px; height: 40px; border-radius: 10px; }
    .mainmenu-area .search-box { position: absolute; top: 0; right: 15px; width: 260px; }
    .navigation .nav-header { background: #fff !important; border: 1px solid var(--line); border-top: 3px solid var(--pulse); box-shadow: 0 18px 40px rgba(15,34,52,.15); max-height: 75vh; }
    .navigation .nav-header > ul > li > a, .navigation .nav-header > ul > li:first-child > a {
        background: #fff !important; color: var(--heading) !important; border-bottom: 1px solid var(--line) !important; padding: 14px 20px !important; box-shadow: none !important;
    }
    .navigation .nav-header > ul > li.active > a { color: var(--pulse) !important; box-shadow: inset 3px 0 0 var(--pulse) !important; }
    .navigation .nav-header > ul > li > ul { box-shadow: none; width: 100% !important; background: var(--panel-2) !important; border: 0; }
    .navigation .nav-header > ul > li > ul > li > a { padding-left: 34px !important; background: transparent !important; }
    .navigation .nav-header .dropdown a button { background: var(--teal-soft) !important; color: var(--cyan) !important; top: 9px !important; }
    .header .single-header-info + .single-header-info { margin-left: 0 !important; }
}

@media (max-width: 991px) {
    .sec-padding { padding: 70px 0; }
    .fx-hero-row > [class*="col-"] { width: 100%; }
    .welcome-img { margin-bottom: 30px; height: 320px; }
    .faq-home .col-lg-6 + .col-md-6 { display: none; }
    .fact-counter-wrapper .row > [class*="col-"] { width: 100%; text-align: center; }
    .fact-counter-wrapper h2 { margin-bottom: 24px; }
    .fact-counter-wrapper .single-fact { margin-top: 30px; }
    .fx-tools-teaser .col-md-5, .fx-tools-teaser .col-md-7 { width: 100%; }
    .footer-call-to-action .col-md-9, .footer-call-to-action .col-md-3 { width: 100%; text-align: center; }
    .footer-call-to-action .thm-btn { float: none !important; margin-top: 18px; }
    .footer .col-md-2, .footer .col-md-3, .footer .col-md-4 { width: 50%; }
    #single_Service .col-md-4, #single_Service .col-md-8 { width: 100%; }
    #single_Service .service_sideber { margin-bottom: 30px; }
    .blog-page .col-md-8, .blog-page .col-md-4 { width: 100%; float: none !important; }
}

@media (max-width: 767px) {
    .top-bar .social-icons { display: none; }
    .top-bar .left-text { float: none !important; text-align: center; }
    .top-bar .left-text p { padding: 8px 0; margin: 0; line-height: 1.5; }
    .header { padding: 12px 0; }
    .header .header-right-info { display: none !important; }      /* call / book live in the bottom bar */
    .header .container { justify-content: center; }
    .mainmenu-area .search-box { width: calc(100% - 90px); right: 15px; }
    .navigation .nav-header { width: calc(100vw - 30px) !important; }
    .sec-padding, .fx-journey { padding: 56px 0; }
    .sec-title { margin-bottom: 32px; }
    .fx-inner-row { flex-direction: column; align-items: flex-start; gap: 18px; }
    .inner-header.fx-inner { padding: 28px 0 26px; }
    .appointment-box { padding: 22px; }
    .footer .col-md-2, .footer .col-md-3, .footer .col-md-4, .footer [class*="col-sm-6"] { width: 100%; }
    .footer { padding: 50px 0 20px; }
    .fx-hero-title { font-size: 40px; }
    .contact-content .col-md-8, .contact-content .col-md-4, .contact-content .col-md-6, .contact-content .col-md-5, .contact-content .col-md-7 { width: 100%; }
    .contact-content .col-md-4 h2, .contact-content .col-md-4 .clinic-card:first-child { margin-top: 24px; }
    .single-blog-post .img-box img, .blog-page .single-blog-post .img-box img { height: 210px; }
    .fx-review-summary { flex-wrap: wrap; }
    .simple-tabs .tab-btn { display: block; margin: 0 0 10px; }
    .fx-package { padding: 22px; }
    .accrodion .accrodion-content { padding-left: 18px; }
}

@media (max-width: 400px) {
    .fx-hero-title { font-size: 34px; }
    .fx-hero-actions .thm-btn { width: 100%; text-align: center; }
    .fx-journey-steps { grid-template-columns: 1fr; }
    .quality-strip .col-xs-6 { width: 50%; }
}

@media (prefers-reduced-motion: reduce) {
}

/* star rating: keep the hidden radio inputs out of the form-input sizing */
.fx-rating-input { position: relative; }
.contact-form .fx-rating-input input[type="radio"] { position: absolute !important; left: 0; top: 0; width: 1px !important; height: 1px !important; padding: 0 !important; margin: 0 !important; border: 0 !important; opacity: 0; overflow: hidden; }

/* blog images always fill the card; SVG covers keep the equipment drawing in view */
.single-blog-post .img-box { display: block; width: 100%; }
.single-blog-post .img-box img { width: 100% !important; display: block; }
.single-blog-post .img-box img[src$=".svg"] { object-position: 70% 50%; }
.single-sidebar-widget.popular-post ul li .img-box img[src$=".svg"] { object-position: 72% 50%; }

/* menu bar must sit above page content (its blur creates a stacking context) */
.mainmenu-area { position: relative; z-index: 200; }
.mainmenu-area.stricky-fixed { position: fixed; z-index: 99999; }

/* blog author box: proper padding, framed logo, aligned text */
.blog-details .admin-info { display: flex; align-items: center; gap: 22px; padding: 24px 26px; margin: 10px 0 40px; border: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.blog-details .admin-info .img-box, .blog-details .admin-info .content { display: block; padding: 0; }
.blog-details .admin-info .img-box { flex: 0 0 84px; }
.blog-details .admin-info .inner-box { width: 84px; height: 84px; border-radius: 50%; background: #FFF1F1; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-details .admin-info .inner-box img { width: 60px; height: 60px; object-fit: contain; }
.blog-details .admin-info .content h3 { margin: 0 0 6px; font-size: 19px; color: var(--heading); }
.blog-details .admin-info .content p { margin: 0; max-width: none; }
@media (max-width: 575px) { .blog-details .admin-info { flex-direction: column; align-items: flex-start; padding: 20px; } }

/* service sidebar "Any question?" box: padded header + clean icon rows (theme used uncleared floats) */
#single_Service .service_sideber .question_Box { margin-top: 30px; padding: 0 0 8px; }
#single_Service .service_sideber .question_Box h2 { margin: 0; padding: 16px 20px; font-size: 19px; line-height: 1.3; text-align: left; }
#single_Service .service_sideber .question_Box hr { display: none; }
#single_Service .service_sideber .question_Box .qustion_list { padding: 14px 20px 6px; }
#single_Service .service_sideber .question_Box .qustion_list ul li { display: flex; align-items: center; gap: 12px; padding: 8px 0; margin: 0; }
#single_Service .service_sideber .question_Box .qustion_list ul li i { float: none; flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--teal-soft); display: flex; align-items: center; justify-content: center; font-size: 15px; }
#single_Service .service_sideber .question_Box .qustion_list ul li a { float: none; padding: 0; word-break: break-word; }
#single_Service .service_sideber .appointment_side_form { margin-top: 30px; }
#single_Service .service_sideber .appointment_side_form h2 { height: auto; line-height: 1.3; padding: 16px 20px; margin: 0 0 16px; text-align: left; font-size: 19px; }
#single_Service .service_sideber .appointment_side_form > div { padding: 0 18px; }

/* service sidebar polish */
#single_Service .service_sideber .question_Box h2, #single_Service .service_sideber .appointment_side_form h2 { color: #fff; }
#single_Service .service_sideber .question_Box .qustion_list ul li a[href^="tel:"] { white-space: nowrap; }
/* consent checkbox sits beside its text, not above it */
.consent-check { display: flex; align-items: flex-start; gap: 10px; }
.contact-form .consent-check input[type="checkbox"] { flex: 0 0 16px; margin-top: 4px !important; }
@media (min-width: 992px) and (max-width: 1199px) { #single_Service .col-md-4 .service_sideber { margin-right: 6px; } }
