/*
Reduced stylesheet for the current homepage-only site.
Based on selectors used by: header.php, index.php, footer.php.
*/

:root {
    --lightBlue: #EEF3F8;
    --mainBlue: #6295B4;
    --mediumBlue: #266083;
    --darkBlue: #203C4D;
    --mainRed: #C93740;
    --mediumRed: #BD383F;
    --lightGrey: #FDFCFB;
    --lightText: #F9F7F2;
    --blueText: #475569;
    --mobile-header-offset: 0px;
}

body {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    color: var(--darkBlue);
    background: var(--lightText);
}

body,
.raleway-font {
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.bg-light-grey {
    background: var(--lightGrey);
}

.bg-blue {
    background: var(--mainBlue);
}

.bg-medium-blue {
    background: var(--mediumBlue);
}

.bg-medium-red {
    background: var(--mediumRed);
}

h2 {
    font-size: 32px;
    line-height: 38px;
    font-weight: 800;
    color: var(--blueText);
}

@media (min-width: 576px) {
    h2 {
        font-size: 38px;
        line-height: 46px;
    }
}

h3 {
    font-size: 24px;
    line-height: 32px;
    font-weight: bold;
    color: var(--blueText);
}

.check-style {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-style li {
    list-style: none;
    line-height: 24px;
    padding: 0 0 0 32px;
    margin: 0 0 12px 0;
    position: relative;
}

.check-style li::before {
    content: "";
    width: 24px;
    height: 24px;
    background: url(img/ico-check-square.svg) no-repeat center center;
    position: absolute;
    left: 0;
    top: 0;
}

.form-control,
.form-select {
    border-radius: 0;
    border-color: var(--lightText);
    background: var(--lightText);
}

a {
    color: var(--mainBlue);
}

a:hover {
    text-decoration: none;
}

.button {
    display: inline-block;
    height: 48px;
    line-height: 48px;
    background: var(--mainBlue);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    padding: 0 20px;
    transition: all ease-in-out .3s;
    border: 1px solid var(--mainBlue);
}

.button:hover {
    background: #fff;
    color: var(--mainBlue);
    text-decoration: none;
}

.button-red {
    background: var(--mainRed);
    color: #fff;
    border: none;
}

.button-red:hover {
    background: #992b32;
    color: #fff;
    border: none;
}

#videoModal .modal-dialog {
    max-width: 800px;
    margin: 30px auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0;
}

#videoModal .btn-close {
    position: absolute;
    right: -30px;
    top: 0;
    filter: invert(96%) sepia(96%) saturate(0%) hue-rotate(83deg) brightness(104%) contrast(104%);
    opacity: 1;
}

.top-nav {
    width: 100%;
    height: 42px;
}

.top-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
}

.top-nav a img {
    max-width: 100%;
    height: auto;
}

.top-nav li {
    margin: 0 7px;
}

.top-nav li:first-of-type {
    margin-left: 0;
}

.top-nav li:last-of-type {
    margin-right: 0;
}

.top-nav li.active {
    background: var(--lightText);
}

@media (max-width: 991.98px) {
    body {
        padding-top: var(--mobile-header-offset);
    }

    .top-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1050;
    }

    .main-nav-wrap {
        position: fixed;
        top: 42px;
        left: 0;
        right: 0;
        z-index: 1049;
        background: var(--lightText);
    }

    .main-nav-wrap .navbar {
        position: relative;
    }

    .main-nav-wrap #main-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        right: auto;
        width: 100vw;
        max-width: 100vw;
        transform: translateX(-50%);
        z-index: 1052;
    }

    .main-nav-wrap #main-menu.collapse:not(.show) {
        display: none;
    }

    .main-nav-wrap #main-menu.collapsing,
    .main-nav-wrap #main-menu.collapse.show {
        background: #fff;
        padding: 0.5rem 1rem 1rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    }

    .main-nav-wrap #main-menu.collapsing {
        overflow: hidden;
    }

    body.admin-bar .top-nav {
        top: 46px;
    }

    body.admin-bar .main-nav-wrap {
        top: 88px;
    }
}

.navbar-brand {
    width: 175px;
    height: auto;
    padding: 0;
}

.btn-header {
    display: block;
    text-align: center;
    color: var(--mainBlue);
    background: rgba(98, 149, 180, 0.2);
    text-transform: uppercase;
    text-decoration: none;
    height: 48px;
    line-height: 48px;
    padding: 0 20px;
    transition: all ease-in-out .3s;
}

.btn-header:hover {
    color: var(--darkBlue);
    background: rgba(116, 175, 211, 0.2);
}

.navbar-nav {
    padding: 16px 0;
}

.navbar-nav .nav-link {
    text-transform: uppercase;
    padding-left: 6px;
    color: var(--darkBlue);
    transition: all ease-in-out .3s;
}

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

@media (min-width: 576px) {
    .top-nav li {
        margin: 0 15px;
    }
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav {
        justify-content: start !important;
        padding: 16px;
    }

    .navbar-expand-lg .navbar-nav .nav-item {
        margin-right: 12px;
    }

    .navbar-expand-lg .navbar-nav .nav-link {
        padding: 8px 0;
        margin: 0 6px;
        font-size: 13px;
    }

    .navbar-expand-lg .navbar-nav .nav-link.active {
        border-bottom: 2px solid var(--mainBlue);
    }
}

@media (min-width: 1200px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        font-size: 16px;
    }
}

.top-section {
    width: 100%;
    height: 515px;
    background: url(img/webp/top-section-home.webp) no-repeat center right;
    background-size: cover;
}

.top-section h1 {
    font-size: 40px;
    font-weight: bold;
    line-height: 50px;
    color: var(--lightText);
    text-shadow: 0 0 8px rgba(0, 0, 0, .5);
}

@media (min-width: 576px) {
    .top-section {
        height: 576px;
    }

    .top-section h1 {
        font-size: 50px;
        line-height: 60px;
    }
}

#videoCarousel .carousel-indicators button {
    background-color: var(--mainBlue);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 1;
}

#videoCarousel .carousel-indicators .active {
    background-color: var(--mainRed) !important;
}

#videoCarousel .carousel-control-next,
#videoCarousel .carousel-control-prev {
    height: 32px;
    top: 50%;
    transform: translateY(-50%);
}

#videoCarousel .carousel-indicators {
    bottom: -64px;
}

#videoCarousel .carousel-indicators [data-bs-target] {
    background-color: var(--mainBlue);
}

.section-reviews .box-review {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    margin-left: 28px;
    background: #F4F2EC;
    color: #203C4D;
    padding: 24px;
    position: relative;
}

.section-reviews .box-review::before {
    content: "";
    width: 28px;
    height: 24px;
    background: url(img/testimonial-polygon.svg) no-repeat center center;
    position: absolute;
    top: 0;
    left: -24px;
}

.section-reviews .box-review .review {
    position: relative;
    padding: 0 0 0 58px;
}

.section-reviews .box-review .review::before {
    content: "";
    display: block;
    background: url(img/quote-mark-red.svg) no-repeat center center;
    width: 40px;
    height: 30px;
    position: absolute;
    top: 0;
    left: 0;
}

.section-reviews .box-review .name {
    align-self: end;
    font-weight: bold;
}

.meet-dr-tim .container {
    background: url(img/bg-meet-dr-tim.png) no-repeat top center;
    background-size: 90%;
    padding-top: 290px;
}

.meet-dr-tim h2 {
    font-size: 28px;
    line-height: 38px;
}

@media (min-width: 576px) {
    .meet-dr-tim .container {
        padding-top: 420px;
    }
}

@media (min-width: 768px) {
    .meet-dr-tim .container {
        padding-top: 560px;
    }

    .meet-dr-tim h2 {
        font-size: 38px;
        line-height: 46px;
    }
}

@media (min-width: 992px) {
    .meet-dr-tim .container {
        padding-top: 0;
        background-size: 65%;
        background-position: bottom left;
    }
}

@media (min-width: 1200px) {
    .meet-dr-tim .container {
        background-size: 52%;
        background-position: 18% bottom;
    }
}

@media (min-width: 1400px) {
    .meet-dr-tim .container {
        background-size: 45%;
        background-position: 25% bottom;
    }
}

.topics-section {
    background: #f3f0eb;
}

.topic-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px 28px;
    min-height: 120px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.topic-icon {
    flex: 0 0 42px;
    font-size: 2rem;
    color: #d3545a;
    line-height: 1;
}

.topic-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #5b677c;
    line-height: 1.5;
}

@media (max-width: 991.98px) {
    .topic-card {
        min-height: auto;
        padding: 20px;
    }

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

.section-header {
    margin-bottom: 56px;
}

.treatment-steps-layout {
    --line-color: #de4f5a;
    --dot-size: 12px;
    --connector-height: 108px;
    --plus-column: 58px;
    --card-border: #cfd5dc;
    --card-text: #596777;
    --step-title-color: #6e97b8;
    --plus-color: #1f425c;

    max-width: 1050px;
    margin: 0 auto;
}

.treatment-steps-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--plus-column) minmax(0, 1fr) var(--plus-column) minmax(0, 1fr);
    align-items: stretch;
}

.step-card {
    position: relative;
    background: var(--lightGrey);
    border: 1.5px solid var(--card-border);
    border-radius: 24px;
    padding: 34px 26px 30px;
    min-height: 272px;
}

.step-card::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc((var(--connector-height) * -1));
    transform: translateX(-50%);
    width: 0;
    height: var(--connector-height);
    border-left: 2px dashed var(--line-color);
}

.step-card::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc((var(--connector-height) * -1) - (var(--dot-size) / 2));
    transform: translateX(-50%);
    width: var(--dot-size);
    height: var(--dot-size);
    border-radius: 50%;
    background: var(--line-color);
    z-index: 2;
}

.step-card-head {
    gap: 16px;
    margin-bottom: 26px;
    flex-wrap: nowrap;
    align-items: center !important;
}

.step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #d44e57;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
}

.step-number-text {
    display: block;
    font-size: 1.95rem;
    font-weight: 700;
    line-height: 1;
    position: relative;
    top: -1px;
}

.step-title {
    color: var(--step-title-color);
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    flex: 1;
    min-width: 0;
}

.step-card-body {
    color: var(--card-text);
}

.step-card-body p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.45;
}

.step-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--plus-color);
    transform: translateY(-8px);
}

.treatment-steps-timeline {
    position: relative;
    margin-top: calc(var(--connector-height) - 6px);
    padding-top: 22px;
    grid-template-columns: minmax(0, 1fr) var(--plus-column) minmax(0, 1fr) var(--plus-column) minmax(0, 1fr);
}

.timeline-line {
    position: absolute;
    top: 4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--line-color);
}

.timeline-line::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1px;
    width: 14px;
    height: 14px;
    border-top: 2px solid var(--line-color);
    border-right: 2px solid var(--line-color);
    transform: translateY(-50%) rotate(45deg);
    transform-origin: center;
}

.timeline-label {
    text-align: center;
    color: var(--step-title-color);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.timeline-label-1 {
    grid-column: 1;
}

.timeline-label-2 {
    grid-column: 3;
}

.timeline-label-3 {
    grid-column: 5;
}

.treatment-steps-cta {
    margin-top: 68px;
}

.step-mobile-label {
    margin-top: 18px;
    text-align: center;
    color: var(--step-title-color);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

@media (max-width: 1199.98px) {
    .treatment-steps-layout {
        max-width: 980px;
        --plus-column: 48px;
    }

    .step-card {
        padding: 30px 22px 26px;
    }

    .step-title {
        font-size: 1.65rem;
    }

    .step-card-body p {
        font-size: 0.98rem;
    }

    .timeline-label {
        font-size: 20px;
    }
}

@media (max-width: 991.98px) {
    .section-header {
        margin-bottom: 28px;
    }

    .treatment-steps-layout {
        max-width: 680px;
    }

    .treatment-steps-flow {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
        padding-left: 0;
    }

    .treatment-steps-flow::before {
        display: none;
    }

    .step-card {
        min-height: 0;
        margin-left: 0;
        padding: 24px 20px;
        border-radius: 22px;
        overflow: hidden;
    }

    .step-card::before,
    .step-card::after {
        display: none;
    }

    .step-card-head {
        margin-bottom: 18px;
        gap: 12px;
        align-items: center !important;
    }

    .step-number {
        width: 46px;
        height: 46px;
        flex: 0 0 46px;
    }

    .step-number-text {
        font-size: 1.6rem;
    }

    .step-title {
        font-size: 1.35rem;
        line-height: 1.05;
    }

    .step-card-body p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .step-plus {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 24px;
        line-height: 1;
        color: #1f425c;
        transform: none;
    }

    .step-mobile-meta {
        margin-top: 18px;
        padding-top: 16px;
        border-top: 1px solid #d9e0e6;
    }

    .step-mobile-phase {
        display: inline-flex;
        align-items: center;
        padding: 0.4rem 0.75rem;
        margin-bottom: 10px;
        border-radius: 999px;
        background: rgba(110, 151, 184, 0.14);
        color: #6e97b8;
        font-size: 0.82rem;
        font-weight: 800;
        line-height: 1;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }

    .step-mobile-label {
        margin: 0;
        text-align: left;
        color: #6e97b8;
        font-size: 1rem;
        font-weight: 800;
        line-height: 1.25;
    }

    .treatment-steps-cta {
        margin-top: 28px;
    }
}

.templates-download-form .templates-consent-box {
    background: #ffffff;
    border: 1px solid rgba(23, 56, 77, 0.12);
    border-radius: 14px;
    padding: 16px 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.templates-download-form .templates-consent-box:has(.form-check-input:focus) {
    border-color: rgba(23, 56, 77, 0.25);
    box-shadow: 0 0 0 0.2rem rgba(23, 56, 77, 0.08);
}

.templates-download-form .form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: auto;
    padding-left: 0;
}

.templates-download-form .form-check-input {
    float: none;
    margin: 0;
    width: 1.15rem;
    height: 1.15rem;
    min-width: 1.15rem;
    margin-top: 0.18rem;
    border-color: rgba(23, 56, 77, 0.35);
    cursor: pointer;
}

.templates-download-form .form-check-input:checked {
    background-color: #d44e57;
    border-color: #d44e57;
}

.templates-download-form .form-check-input.is-invalid {
    border-color: #dc3545;
}

.templates-download-form .templates-consent-label {
    margin: 0;
    color: #4f5d6f;
    font-size: 0.98rem;
    line-height: 1.6;
    cursor: pointer;
}

.templates-download-form .templates-consent-label a {
    color: #17384d;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.templates-download-form .templates-consent-label a:hover {
    color: #d44e57;
}

.templates-download-form .templates-consent-feedback {
    display: none;
    width: 100%;
    margin-left: 10px;
    font-size: 14px;
    background: #fff1f2;
    padding: 8px;
    border-radius: 8px;
}

@media (min-width: 576px) {
    .templates-download-form .form-check-input.is-invalid ~ .templates-consent-feedback {
        display: block;
    }
}

.templates-response .templates-alert {
    border-radius: 14px;
    padding: 16px 18px;
    border: 1px solid transparent;
}

.templates-response .templates-alert-title {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.templates-response .templates-alert-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
}

.templates-response .templates-alert--success {
    background: #edf8f1;
    border-color: #b9e2c7;
    color: #1f5e35;
}

.templates-response .templates-alert--error {
    background: #fff1f2;
    border-color: #f2bcc2;
    color: #8b2331;
}

.templates-submit-btn[disabled] {
    opacity: 0.85;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .templates-download-form .templates-consent-box {
        padding: 14px 14px;
        border-radius: 12px;
    }

    .templates-download-form .templates-consent-label {
        font-size: 0.94rem;
        line-height: 1.55;
    }

    .templates-response .templates-alert {
        padding: 14px 15px;
        border-radius: 12px;
    }
}

.templates-download-form .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: none;
}

.templates-download-form .form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.12);
}

#footer {
    background: var(--mainBlue);
    color: var(--lightText);
    font-size: 14px;
}

#footer a {
    color: #fff;
}

#footer .copyright {
    color: #fff;
}

#footer .logo-footer {
    width: 237px;
    height: 44px;
    display: block;
    text-indent: -9999px;
    background: url(img/footer-logo.png) no-repeat center center;
    background-size: contain;
}

#footer h5 {
    font-size: 16px;
    font-weight: bold;
    line-height: 24px;
}

#footer .social-footer {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
}

#footer .social-footer li {
    margin: 0 14px 0 0;
    padding: 0;
}

#footer .social-footer li:last-child {
    margin: 0;
}

#footer .social-footer li a {
    width: 32px;
    height: 32px;
    display: block;
    text-indent: -9999px;
}

#footer .social-footer li a.facebook {
    background: url(img/ico-facebook.svg) no-repeat center center;
}

#footer .social-footer li a.youtube {
    background: url(img/ico-youtube.svg) no-repeat center center;
}

#footer .social-footer li a.instagram {
    background: url(img/ico-instagram.svg) no-repeat center center;
}

.footer-template-switcher {
    position: relative;
}

.footer-template-intro,
.footer-template-form-wrap {
    width: 100%;
}

.footer-template-title {
    margin-bottom: 0.75rem;
}

.footer-template-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer-template-open-btn {
    min-width: 210px;
    background: var(--mediumBlue);
}

.footer-template-form-wrap {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
}

.footer-template-form .form-control {
    min-height: 40px;
    font-size: 0.92rem;
}

.footer-template-form .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: none;
}

.footer-template-form .form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.12);
}

.footer-template-consent {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 10px 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.footer-template-consent .form-check {
    padding-left: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-template-consent .form-check-input {
    float: none;
    margin: 0;
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    margin-top: 0.18rem;
    cursor: pointer;
}

.footer-template-consent .form-check-input.is-invalid {
    border-color: #dc3545;
}

.footer-template-consent .form-check-label {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
}

.footer-template-consent .form-check-label a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-template-response .footer-alert {
    border-radius: 12px;
    padding: 10px 12px;
    border: 1px solid transparent;
}

.footer-template-response .footer-alert-title {
    display: block;
    margin-bottom: 2px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
}

.footer-template-response .footer-alert-text {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
}

.footer-template-response .footer-alert--success {
    background: #edf8f1;
    border-color: #b9e2c7;
    color: #1f5e35;
}

.footer-template-response .footer-alert--error {
    background: #fff1f2;
    border-color: #f2bcc2;
    color: #8b2331;
}

.footer-template-submit[disabled] {
    opacity: 0.85;
    pointer-events: none;
}

.footer-template-intro.is-success .footer-template-copy {
    color: #b9e2c7;
}

@media (max-width: 767.98px) {
    .footer-template-open-btn {
        width: 100%;
        min-width: 0;
    }

    .footer-template-form-wrap {
        padding: 14px;
        border-radius: 14px;
    }

    .footer-template-form .form-control {
        min-height: 38px;
    }

    .footer-template-consent .form-check-label {
        font-size: 0.78rem;
    }
}
