/* Landing Page module storefront styles
   Matches the transrifus theme (navy #112147 on light #EEF1F6, .wrap container).
   Everything is scoped to .landing-page so it never leaks to other pages. */

.landing-page {
    margin-top: 20px;
}

.landing-page h1 {
    margin-top: 0;
}

/* Page header band — same look as the info/contact pages */
.landing-page .page-header {
    padding: 43px 0 25px;
    background-color: #EEF1F6;
}

.landing-page .page-header .heading {
    margin: 24px 0 0 0;
    color: #112147;
    font-size: 46px;
    font-weight: 600;
    line-height: normal;
}

.landing-page .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

/* Top row: description on the left, Google map on the right */
.landing-page .landing-top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 40px;
    margin-top: 24px;
}

.landing-page .landing-top-row .landing-page-description-top {
    flex: 1 1 0;
    min-width: 0;
}

.landing-page .landing-top-map {
    flex: 1 1 0;
    min-width: 0;
}

.landing-page #landing_gmap {
    width: 100%;
    height: 100%;
    min-height: 360px;
    border-radius: 8px;
}

/* Content area */
.landing-page .page-content {
    width: 100%;
    background: #fff;
}

/* Spacing for the middle content block (the top one is spaced by .landing-top-row) */
.landing-page .landing-page-description-middle {
    padding: 40px 0;
}

/* ---- Rich-text content (.lp-content = top + middle description blocks) ---- */
.landing-page .lp-content {
    color: #112147;
    font-size: 18px;
    font-weight: 400;
    line-height: 32px;
}

.landing-page .lp-content p {
    margin: 15px 0;
}

.landing-page .lp-content > *:first-child {
    margin-top: 0;
}

.landing-page .lp-content > *:last-child {
    margin-bottom: 0;
}

.landing-page .lp-content h2,
.landing-page .lp-content h3 {
    color: #112147;
    font-weight: 600;
}

.landing-page .lp-content h2 {
    font-size: 30px;
    line-height: 40px;
    margin: 30px 0 16px;
}

.landing-page .lp-content h3 {
    font-size: 22px;
    line-height: 30px;
    margin: 24px 0 12px;
}

.landing-page .lp-content a {
    color: #112147;
    text-decoration: underline;
}

.landing-page .lp-content ul,
.landing-page .lp-content ol {
    margin: 15px 0;
    padding-left: 20px;
}

.landing-page .lp-content li {
    margin-bottom: 8px;
}

/* Responsive media — works on whatever HTML is pasted in the editor */
.landing-page .lp-content img {
    max-width: 100%;
    height: auto;
}

.landing-page .lp-content iframe,
.landing-page .lp-content video,
.landing-page .lp-content embed,
.landing-page .lp-content object {
    max-width: 100%;
}

/* Fluid 16:9 for embedded video iframes (YouTube / Vimeo) */
.landing-page .lp-content iframe[src*="youtube"],
.landing-page .lp-content iframe[src*="youtu.be"],
.landing-page .lp-content iframe[src*="vimeo"] {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

/* Tables follow the theme look */
.landing-page .lp-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.landing-page .lp-content table td,
.landing-page .lp-content table th {
    border: 1px solid #e0e4ee;
    padding: 10px 14px;
    text-align: left;
}

/* ---- Features: full-width content bands (each with its own background color) ---- */
.landing-page .landing-features {
    width: 100%;
    margin: 20px 0 20px 0;
}

.landing-page .landing-feature {
    padding: 35px 0;
}

/* Tablet / mobile */
@media (max-width: 768px) {
    .landing-page .page-header {
        padding: 25px 0 15px;
    }

    .landing-page .landing-feature {
        padding: 30px 0;
    }

    .landing-page .landing-top-row {
        display: block;
        gap: 0;
    }

    .landing-page .landing-top-map {
        margin-top: 20px;
    }

    .landing-page #landing_gmap {
        min-height: 280px;
    }

    .landing-page .page-header .heading {
        font-size: 30px;
    }

    .landing-page .landing-page-description-middle {
        padding: 30px 0;
    }

    .landing-page .lp-content,
    .landing-page .lp-content p {
        font-size: 16px;
        line-height: 26px;
    }

    .landing-page .lp-content h2 {
        font-size: 24px;
        line-height: 32px;
    }

    .landing-page .lp-content h3 {
        font-size: 20px;
        line-height: 28px;
    }

    /* Drop any editor floats/fixed widths so columns stack full-width */
    .landing-page .lp-content img,
    .landing-page .lp-content [style*="float"],
    .landing-page .lp-content [style*="width"] {
        float: none !important;
        width: auto !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Wide tables scroll horizontally instead of breaking the layout */
    .landing-page .lp-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .landing-page .landing-contacts {
        padding: 30px 0;
    }

    .landing-page .landing-contacts-title {
        font-size: 26px;
    }

    .landing-page .landing-contacts-row {
        display: block;
    }

    .landing-page .landing-contacts-form {
        margin-top: 30px;
        padding: 20px;
    }
}

/* ---- Contacts section (h2 + people list + contact form) ---- */
.landing-page .landing-contacts {
    background: #EEF1F6;
    padding: 50px 0;
    /*margin-top: 40px;*/
}

.landing-page .landing-feature .lp-content {
    padding-top: 100px;
    padding-bottom: 100px;
}

.landing-page .landing-contacts-title {
    color: #112147;
    font-size: 36px;
    font-weight: 600;
    margin: 0 0 30px;
}

.landing-page .landing-contacts-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.landing-page .landing-contacts-list {
    flex: 1 1 0;
    min-width: 0;
}

/* People list */
.landing-page .landing-contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #d9deea;
}

.landing-page .landing-contact-item:last-child {
    border-bottom: none;
}

.landing-page .landing-contact-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.landing-page .landing-contact-name {
    color: #112147;
    font-size: 18px;
    font-weight: 600;
}

.landing-page .landing-contact-position {
    color: #6b7693;
    font-size: 14px;
    margin-bottom: 6px;
}

.landing-page .landing-contact-phone a,
.landing-page .landing-contact-email a {
    color: #112147;
    text-decoration: none;
}

.landing-page .landing-contact-phone a:hover,
.landing-page .landing-contact-email a:hover {
    text-decoration: underline;
}

/* Contact form */
.landing-page .landing-contacts-form {
    flex: 1 1 0;
    min-width: 0;
    background: #fff;
    padding: 30px;
}

/* Form-only (landing page has no contact people): center it and make it larger */
.landing-page .landing-contacts-row-center {
    justify-content: center;
}

.landing-page .landing-contacts-row-center .landing-contacts-form {
    flex: 0 1 827px;
    max-width: 827px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px;
}

.landing-page .landing-contacts-row-center .landing-form-title {
    color: #112147;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px;
}

.landing-page .landing-form-title {
    color: #112147;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px;
}

.landing-page .landing-form-field {
    margin-bottom: 20px;
}

.landing-page .landing-contacts-form input[type="text"],
.landing-page .landing-contacts-form input[type="email"],
.landing-page .landing-contacts-form textarea {
    appearance: none;
    width: 100%;
    border: 1px solid rgb(160, 166, 181);
    font-size: 15px;
    color: #112147;
    box-sizing: border-box;
    padding-left: 10px;
    height: 48px;
    font-family: 'Montserrat';
    font-weight: 400;
}

.landing-page .landing-contacts-form textarea::placeholder{
    color: #112147;
}

.landing-page .landing-contacts-form textarea {
    min-height: 120px;
    resize: vertical;
    padding: 10px;
}

.landing-page .landing-contacts-form .has-error {
    border-color: #d9534f;
}

.landing-page .landing-form-terms {
    font-size: 14px;
    color: #6b7693;
    margin: 6px 0 5px;
    cursor: pointer;
}

.landing-page .landing-form-submit {
    background: #F05022;
    color: #fff;
    display: block;
    margin-top: 30px;
    margin-left: auto;
    border: none;
    padding: 13px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: .3s;
}

.landing-page .landing-form-submit:hover {
    background: #F05022;
}

.landing-page .landing-form-submit[disabled] {
    opacity: 0.6;
    cursor: default;
}

.landing-page .landing-contacts-form .error {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #d9534f;
}

.landing-page .landing-features > div {
    background-color: #EEF1F6;
    background-position: right center;
    background-repeat: no-repeat;
}

.landing-page .landing-features > div:nth-child(2n) {
    background-color: #ffffff;
}

.landing-page .landing-contacts-form label span {
    color: #333333 !important;
}

.landing-page .landing-contacts-form .landing-form-terms span a {
    color: #F05022;
}

.landing-page .text-danger {
    margin-bottom: 10px;
}

#landing-contact-form .form-group{
    display: flex;
    gap: 30px;
}

#landing-contact-form .form-group .landing-form-field{
    flex-basis: calc(50% - 15px);
}

.landing-form-terms input[type="checkbox"]{
    display: none;
}

.landing-form-terms input[type="checkbox"] + span{
    position: relative;
    padding-left: 40px;
    display: block;
}

.landing-form-terms input[type="checkbox"] + span:before{
    content: "";
    height: 20px;
    width: 20px;
    display: block;
    border: 1px solid rgb(160, 166, 181);
    position: absolute;
    left: 0;
    top: 0;
}

.landing-form-terms input[type="checkbox"]:checked + span:before{
    background: url('/catalog/view/theme/default/image/checked.png') no-repeat center center;
}

.landing-page .landing-form-submit:hover{
    background: #FF3900;
}

.landing-page .landing-form-terms span + p.error.text-danger{
    margin-top: 10px;
}

@media (max-width: 1024px){
    .landing-page .landing-contacts-list{
        width: 100%;
    }

    .landing-page .landing-contacts-row{
        flex-direction: column;
        align-items: center;
    }

    .landing-page .landing-contacts-form{
        margin-top: 0;
    }

    .landing-page .landing-contacts-row-center .landing-contacts-form{
        flex: unset;
    }
}

@media (max-width: 768px){
    .landing-page .landing-contacts-row-center .landing-contacts-form{
        padding-left: 20px;
        padding-right: 20px;
    }

    .landing-page .landing-contacts{
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

@media (max-width: 600px){
    #landing-contact-form .form-group{
        flex-direction: column;
        gap: 0;
    }

    .landing-page .landing-contacts-row-center .landing-form-title{
        font-size: 22px;
        margin-bottom: 20px;
    }

    .landing-page .landing-contacts-form{
        margin-top: 0;
    }

    .landing-page .landing-form-submit{
        width: 100%;
    }
}

/* (.landing-contacts-title) */
.landing-page .landing-contacts-title {
    position: relative;
    color: #112147;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 30px;
    padding-bottom: 16px;
    padding-top: 25px;
}

.landing-page .landing-contacts-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 4px;
    background: #F05022;
    border-radius: 2px;
}