/* Theme styles for landing pages, forms and GHL embeds. WooCommerce styles: woocommerce.css. Colors: main.css :root only. */

/* Landing Hero Banner */
.landing-hero-banner {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.landing-hero-banner::after {
    content: "";
    position: absolute;
    right: -196px;
    top: -293px;
    border-radius: 50%;
    background: radial-gradient(70.71% 70.71% at 50% 50%, rgba(91, 222, 204, 0.18) 0%, rgba(91, 222, 204, 0.00) 60%);
    filter: blur(10px);
    width: 780px;
    height: 780px;
    animation: glowAnimation 15s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    will-change: transform;
}

.landing-hero-banner::before {
    content: "";
    position: absolute;
    border-radius: 350px;
    background: radial-gradient(70.71% 70.71% at 50% 50%, rgba(72, 156, 217, 0.14) 0%, rgba(72, 156, 217, 0.00) 60%);
    filter: blur(5px);
    left: -123px;
    bottom: -172px;
    width: 700px;
    height: 700px;
    animation: glowAnimationBottom 15s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    will-change: transform;
}

.landing-hero-banner .row {
    position: relative;
    z-index: 1;
}

.landing-hero-banner .heading-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.landing-hero-banner .landing-hero-logo img {
    width: auto;
    max-width: 260px;
    max-height: 66px;
    display: block;
}

.landing-hero-banner h1{
    text-transform: capitalize;
}

.landing-hero-banner h1 strong {
    color: var(--teal-border);
    font-weight: 700;
}

.landing-hero-banner h5.subheading{
    padding-bottom: 0;
}

.landing-hero-banner .landing-hero-text p {
    color: var(--mist-blue);
    font-size: 18px;
    line-height: 160%;
}

.landing-hero-banner .landing-hero-points {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.landing-hero-banner .landing-hero-points li {
    display: flex;
    gap: 12px;
    color: var(--color-white-solid);
    line-height: 140%;
}

.landing-hero-banner .landing-hero-points li::before {
    content: "";
    background-image: url('../images/check-circle.svg');
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    display: block;
    flex-shrink: 0;
}

.landing-hero-banner .arrow-button {
    margin-top: 8px;
}

.landing-hero-banner .landing-hero-image img {
    display: block;
    max-width: 520px;
    margin: 0 auto;
}

/* Landing Hero Banner: "Background" = Light. Same light gradient as .radial-gradient-bg in main.css */
.landing-hero-banner.landing-hero-banner--light {
    background: radial-gradient(60% 70% at 88% 14%, rgba(91, 222, 204, 0.3), rgba(91, 222, 204, 0) 60%), linear-gradient(136.76deg, rgba(241, 252, 249, 0.4), rgba(225, 249, 244, 0.8)), linear-gradient(#fff, #fff);
}

.landing-hero-banner--light::before {
    display: none;
}

.landing-hero-banner--light h1 {
    color: var(--midnight-blue);
}

.landing-hero-banner--light h1 strong {
    color: var(--teal);
}

.landing-hero-banner--light .landing-hero-text p {
    color: var(--color-gray);
}

.landing-hero-banner--light .landing-hero-points li {
    color: var(--dark-gray-text);
}

/* Landing Hero Banner: "Text Align" = Center */
.landing-hero-banner--center .heading-content-wrapper {
    align-items: center;
    text-align: center;
}

.landing-hero-banner--center .landing-hero-text {
    max-width: 760px;
}

/* Landing Hero Banner: image with video */
.landing-hero-banner .landing-hero-image.has-video {
    position: relative;
    cursor: pointer;
    max-width: 640px;
    margin: 0 auto;
}

.landing-hero-banner .landing-hero-image.has-video img {
    max-width: 100%;
    border-radius: 20px;
}

.landing-hero-banner .landing-hero-play-button {
    width: 72px;
    height: 72px;
    background-color: var(--teal-border);
    box-shadow: 0 0 0 10px rgba(91, 222, 204, 0.25);
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.landing-hero-banner .landing-hero-image.has-video:hover .landing-hero-play-button,
.landing-hero-banner .landing-hero-image.has-video:focus .landing-hero-play-button {
    background-color: var(--color-white-solid);
    box-shadow: 0 0 0 14px rgba(91, 222, 204, 0.25);
}

/* Full Width Textarea: image added in the text editor */
.full-width-textarea .text-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    margin-top: 16px;
}

/* ========== Theme Form ========== */

/* Contact Form 7 adds <p> and <br> tags around the fields. */
.theme-form p {
    margin: 0;
}

.theme-form br {
    display: none;
}

/* Bootstrap-style columns in the form markup (col-sm-3 / col-sm-6 / col-sm-12): the form uses the full width of its box and the empty side columns are hidden */
.theme-form .container-fluid,
.theme-form .row {
    width: 100%;
    margin: 0;
    padding: 0;
}

.theme-form .row > .col-sm-3:empty {
    display: none;
}

.theme-form .row > .col-sm-6,
.theme-form .col-sm-12 {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    padding: 0;
}

/* Space between the fields */
.theme-form .col-sm-12 + .col-sm-12 {
    margin-top: 20px;
}

/* Labels */
.theme-form label {
    display: block;
    margin: 0 0 8px;
    padding: 0;
    color: var(--midnight-blue);
    font-size: 14px;
    font-weight: 600;
    line-height: 140%;
}

/* Text, email, phone, URL, number and date fields, selects and text areas */
.theme-form .wpcf7-form-control-wrap {
    display: block;
}

.theme-form input:is([type="text"], [type="email"], [type="tel"], [type="url"], [type="number"], [type="date"], [type="password"]),
.theme-form select,
.theme-form textarea {
    display: block;
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid var(--gray-border);
    border-radius: 10px;
    background-color: var(--color-white-solid);
    box-shadow: 0 1px 2px 0 rgba(0, 27, 69, 0.04);
    color: var(--dark-gray-text);
    font-family: "Montserrat";
    font-size: 15px;
    font-weight: 500;
    line-height: 140%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.theme-form textarea {
    height: 120px;
    min-height: 80px;
    line-height: 150%;
    resize: vertical;
}

.theme-form input::placeholder,
.theme-form textarea::placeholder {
    color: var(--light-gray);
    font-weight: 400;
}

.theme-form input:is([type="text"], [type="email"], [type="tel"], [type="url"], [type="number"], [type="date"], [type="password"]):focus,
.theme-form select:focus,
.theme-form textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(51, 181, 160, 0.15);
    outline: none;
}

/* Select with a midnight blue arrow in place of the browser arrow */
.theme-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23001B45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px 8px;
    cursor: pointer;
}

/* File upload: a dashed box with a midnight blue button */
.theme-form input[type="file"] {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border: 1px dashed var(--teal);
    border-radius: 10px;
    background-color: var(--quote-bg);
    color: var(--color-gray);
    font-family: "Montserrat";
    font-size: 14px;
    cursor: pointer;
}

.theme-form input[type="file"]::file-selector-button {
    margin-right: 14px;
    padding: 9px 18px;
    border: none;
    border-radius: 8px;
    background-color: var(--midnight-blue);
    color: var(--color-white-solid);
    font-family: "Montserrat";
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.theme-form input[type="file"]:hover::file-selector-button {
    background-color: var(--teal);
}

/* Checkbox and radio options. */
.theme-form .wpcf7-list-item {
    margin: 0;
}

.theme-form .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--dark-gray-text);
    font-size: 15px;
    font-weight: 500;
    line-height: 140%;
    cursor: pointer;
}

/* Focus ring on the option when the user moves with the keyboard */
.theme-form .wpcf7-list-item label:has(input:focus-visible) {
    box-shadow: 0 0 0 3px rgba(51, 181, 160, 0.25);
}

/* Hide the browser radio and checkbox. */
.theme-form .wpcf7-list-item label input:is([type="radio"], [type="checkbox"]) {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.theme-form .wpcf7-list-item-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

/* Remove the extra space Contact Form 7 adds after each option text */
.theme-form .wpcf7-list-item-label::after {
    content: none;
}

/* Checkbox box */
.theme-form .wpcf7-list-item label .wpcf7-list-item-label::before {
    content: "";
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-border);
    border-radius: 5px;
    background-color: var(--color-white-solid);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 9px;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Radio circle. An exclusive checkbox (one choice, optional) looks the same as a radio. */
.theme-form .wpcf7-radio label .wpcf7-list-item-label::before,
.theme-form .wpcf7-exclusive-checkbox label .wpcf7-list-item-label::before {
    border-radius: 50%;
}

/* Selected option: teal */
.theme-form .wpcf7-list-item label input:checked + .wpcf7-list-item-label::before {
    border-color: var(--teal);
    background-color: var(--teal);
}

/* Ticked checkbox: white tick */
.theme-form .wpcf7-checkbox:not(.wpcf7-exclusive-checkbox) label input:checked + .wpcf7-list-item-label::before,
.theme-form .wpcf7-acceptance label input:checked + .wpcf7-list-item-label::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9' viewBox='0 0 12 9' fill='none'%3E%3Cpath d='M1 4.5L4.5 8L11 1' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Selected radio: teal dot */
.theme-form .wpcf7-radio label input:checked + .wpcf7-list-item-label::before,
.theme-form .wpcf7-exclusive-checkbox label input:checked + .wpcf7-list-item-label::before {
    box-shadow: inset 0 0 0 4px var(--color-white-solid);
}

/* Errors: a red border on the field (or option box) and a small message under it */
.theme-form input.wpcf7-not-valid,
.theme-form select.wpcf7-not-valid,
.theme-form textarea.wpcf7-not-valid,
.theme-form .wpcf7-not-valid label .wpcf7-list-item-label::before {
    border-color: #dc3232;
}

.theme-form .wpcf7-not-valid-tip {
    padding-top: 6px;
    font-size: 13px;
}

/* Submit button. */
.theme-form .wpcf7-submit {
    display: block;
    width: 100%;
    min-height: 48px;
    margin: 8px 0 0;
    padding: 8px 36px;
    border: none;
    border-radius: 8px;
    background-color: var(--midnight-blue);
    color: var(--color-white-solid);
    font-family: "Montserrat";
    font-size: 16px;
    font-weight: 700;
    line-height: 130%;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.theme-form .wpcf7-submit:hover {
    background-color: var(--teal);
}

.theme-form .wpcf7-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(51, 181, 160, 0.35);
}

/* Small screens: long button text wraps instead of being cut */
@media (max-width: 575px) {
    .theme-form .wpcf7-submit {
        height: auto;
        padding: 12px 16px;
        font-size: 14px;
        white-space: normal;
    }
}

/* The spinner next to the submit button uses space only while the form sends */
.theme-form .wpcf7-submit + .wpcf7-spinner {
    display: none;
    margin: 12px auto 0;
}

.wpcf7 form.submitting .theme-form .wpcf7-submit + .wpcf7-spinner {
    display: block;
}

/* Message after the form is sent (or when there is an error). */
.wpcf7 form:has(.theme-form) .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 150%;
    text-align: center;
}

/* A step check in a multi-step form (Ultimate Addons for CF7) can show the empty message box with a border. */
.wpcf7 form:has(.theme-form) .wpcf7-response-output:empty {
    display: none;
}

/* Content With Form block (ACF layout "content_with_form"): space between the form and the edges of the white card. */
.content-with-form .form-wrapper .custom-form {
    padding: 0 32px 32px;
}

@media screen and (max-width: 767px) {
    .content-with-form .form-wrapper .custom-form {
        padding: 0 20px 24px;
    }
}

/* Form Popup */
.form-popup-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.form-popup-modal.open {
    display: flex;
}

.form-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 15, 42, 0.85);
}

.form-popup-modal .form-popup-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 48px 32px 32px;
    scrollbar-width: none;
}

.form-popup-close {
    position: absolute;
    top: 20px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--cool-gray);
    color: var(--midnight-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.25s ease;
    z-index: 2;
}

.form-popup-close:hover {
    background-color: var(--teal);
    color: var(--color-white-solid);
}

body.form-popup-open {
    overflow: hidden;
}

.form-popup-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
}

.form-popup-logo img {
    width: auto;
    max-width: 220px;
    max-height: 56px;
    display: block;
}

.form-popup-header h3 {
    line-height: 130%;
}

.form-popup-header h3 strong {
    color: var(--teal);
    font-weight: 700;
}

/* Contact Form 7 in the popup: the fields of the Blueprint Download form (19689) are in .form-popup-fields, with the same space between them as in the other forms. */
.form-popup-form .wpcf7 .form-popup-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Expert profile: Two Column Content And Image with Custom Class "expert-profile". */
.two-column-content-and-image.expert-profile .row {
    align-items: center;
}

.two-column-content-and-image.expert-profile .image-wrapper {
    max-width: 420px;
    margin: 0 auto;
}

.two-column-content-and-image.expert-profile .image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
}

/* MarkBouris Secrets page (post 19702) only: space between paragraphs in the Two Column Content And Video text. */
.page-id-19702 .podcast-guestings-featured-content .content-wrapper {
    gap: 14px;
}

/* MarkBouris Secrets page only: "Dominate The Market" enquiry form (section #contactdragan) */
.page-id-19702 #contactdragan .iframe-wrapper {
    padding: 0 32px 28px;
}

.page-id-19702 #contactdragan .iframe-header {
    padding-bottom: 8px;
}

/* Fact Finder Form (Contact Form 7 form 19641). */
.wpcf7:has(.fact-finder-form) {
    max-width: 880px;
    margin: 0 auto;
    padding: 48px 40px 40px;
    border: 1px solid var(--gray-border);
    border-radius: 20px;
    background: var(--color-white-solid);
    box-shadow: 0 20px 40px 0 rgba(0, 27, 69, 0.12), 0 8px 16px 0 rgba(0, 27, 69, 0.04);
    position: relative;
    overflow: hidden;
}

.wpcf7:has(.fact-finder-form)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 9px;
    width: 100%;
    background: linear-gradient(90deg, #5BDECC 0%, #489CD9 100%);
}

.fact-finder-form .fact-finder-group + .fact-finder-group {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-border);
}

.fact-finder-form .fact-finder-heading {
    padding-bottom: 24px;
    color: var(--midnight-blue);
}

.fact-finder-form .fact-finder-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
}

.fact-finder-form .fact-finder-field-full {
    grid-column: 1 / -1;
}

.fact-finder-form .fact-finder-submit {
    margin-top: 24px;
}

/* Zero Fee Property Selling form (Contact Form 7 form 19613), inside the Content With Form card. */
.zero-fee-form .zero-fee-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.zero-fee-form .zero-fee-field-full {
    grid-column: 1 / -1;
}

/* Shorter text area than the other forms, so the form fits in the card */
.zero-fee-form textarea {
    height: 84px;
    min-height: 84px;
}

.zero-fee-form .zero-fee-submit {
    margin-top: 24px;
}

/* Responsive */
@media screen and (max-width: 992px) {
    .two-column-content-and-image.expert-profile .image-wrapper {
        max-width: 340px;
    }

    .landing-hero-banner {
        padding: 64px 0;
    }

    .landing-hero-banner .landing-hero-image img {
        max-width: 400px;
    }
}

@media screen and (max-width: 767px) {
    .landing-hero-banner {
        padding: 48px 0;
    }

    .landing-hero-banner .landing-hero-text p {
        font-size: 16px;
    }

    .landing-hero-banner .arrow-button {
        width: 100%;
    }

    .landing-hero-banner .landing-hero-image img {
        max-width: 300px;
    }

    .two-column-content-and-image.expert-profile .image-wrapper {
        max-width: 280px;
    }

    .wpcf7:has(.fact-finder-form) {
        padding: 40px 20px 28px;
    }

    .fact-finder-form .fact-finder-grid {
        grid-template-columns: 1fr;
    }

    .zero-fee-form .zero-fee-grid {
        grid-template-columns: 1fr;
    }

    .form-popup-modal {
        padding: 16px;
    }

    .form-popup-modal .form-popup-content {
        max-height: calc(100vh - 32px);
        padding: 44px 20px 24px;
    }
}

/* ========== Form and Calendar Section ========== */

/* Form and Calendar: each column shows its heading, the white box and the note box with the same space */
.form-and-calendar-section .form-and-calendar-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-and-calendar-section .form-and-calendar-heading {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Form and Calendar: smaller heading than the theme h2, so two headings fit side by side */
.form-and-calendar-section .form-and-calendar-heading h2 {
    font-size: 32px;
}

.form-and-calendar-section .form-and-calendar-heading p {
    font-size: 16px;
    line-height: 160%;
}

/* Form and Calendar: heading and text at the top of the white box */
.form-and-calendar-section .iframe-header {
    padding: 36px 32px 8px;
}

.form-and-calendar-section .iframe-header p {
    padding-top: 5px;
}

/* Form and Calendar: space for the gradient bar when the white box has no heading */
.form-and-calendar-section .form-wrapper > .iframe-wrapper:first-child {
    margin-top: 9px;
    padding-top: 24px;
}

/* Form and Calendar: Contact Form 7 form inside the white box */
.form-and-calendar-section .custom-form {
    padding: 0 32px 32px;
}

.form-and-calendar-section .form-wrapper > .custom-form:first-child {
    padding-top: 40px;
}

.form-and-calendar-section .iframe-wrapper{
    padding: 0 32px 24px;
}

/* Form and Calendar: note box under the form (for example "P.S. Reminder:") */
.form-and-calendar-section .form-and-calendar-note {
    padding: 28px 32px;
    border-radius: 20px;
    background-color: var(--midnight-blue);
    text-align: center;
}

.form-and-calendar-section .form-and-calendar-note h4 {
    padding-bottom: 8px;
    color: var(--teal-border);
}

.form-and-calendar-section .form-and-calendar-note p {
    color: var(--mist-blue);
    font-size: 15px;
    line-height: 160%;
}

/* Form and Calendar: on a midnight blue background the note box uses the card style of .image-cta-card in main.css, so it does not blend into the section */
.form-and-calendar-section.midnight-blue-bg .form-and-calendar-note {
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: linear-gradient(161deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
}

/* Form and Calendar: responsive */
@media screen and (max-width: 767px) {
    .form-and-calendar-section .form-and-calendar-heading h2 {
        font-size: 26px;
    }

    .form-and-calendar-section .iframe-header {
        padding: 32px 20px 4px;
    }

    .form-and-calendar-section .custom-form {
        padding: 0 20px 24px;
    }

    .form-and-calendar-section .form-and-calendar-note {
        padding: 24px 20px;
    }
}

/* Form and Calendar: GHL calendar uses the full width of its card (main.css adds 20px side padding to iframe.clx-cal) */
.form-and-calendar-section .iframe-wrapper iframe.clx-cal {
    padding: 0;
}

@media (max-width: 767px) {
    .form-and-calendar-section .form-wrapper .iframe-wrapper {
        padding: 0 8px 12px;
    }

    .form-and-calendar-section .form-wrapper > .iframe-wrapper:first-child {
        padding-top: 16px;
    }
}

/* Client Stories: on mobile the slider dots go below the cards and wrap to more lines, so they do not cover the cards */
.client-stories-slider-wrapper .slick-dots {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    row-gap: 8px;
    margin-top: 24px;
}

/* ========== Client Profile Form ========== */

/* Card around the form */
.wpcf7:has(.client-profile-form) {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    padding: 40px 40px 36px;
    overflow: hidden;
    border: 1px solid var(--gray-border);
    border-radius: 20px;
    background: var(--color-white-solid);
    box-shadow: 0 20px 40px 0 rgba(0, 27, 69, 0.12), 0 8px 16px 0 rgba(0, 27, 69, 0.04);
}

.wpcf7:has(.client-profile-form)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 9px;
    background: linear-gradient(90deg, #5BDECC 0%, #489CD9 100%);
}

/* One step shows at a time. The step fades in when the plugin shows it. */
.client-profile-form .uacf7-step {
    animation: cpfStepFadeIn 0.35s ease;
}

@keyframes cpfStepFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step bar */
.client-profile-form .cpf-progress {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-border);
}

.client-profile-form .cpf-progress-count {
    margin: 0 0 14px;
    color: var(--teal);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.client-profile-form .cpf-progress-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.client-profile-form .cpf-progress-list li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 6px;
    text-align: center;
    color: var(--light-gray);
    font-size: 12px;
    font-weight: 600;
    line-height: 135%;
}

/* Line between the step numbers: from the right edge of this circle to the left edge of the next circle (circles are 32px, centered in each step) */
.client-profile-form .cpf-progress-list li::after {
    content: "";
    position: absolute;
    top: 15px;
    left: calc(50% + 22px);
    width: calc(100% - 44px);
    height: 2px;
    background-color: var(--gray-border);
}

.client-profile-form .cpf-progress-list li:last-child::after {
    display: none;
}

.client-profile-form .cpf-progress-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 2px solid var(--gray-border);
    border-radius: 50%;
    background-color: var(--color-white-solid);
    color: var(--light-gray);
    font-size: 14px;
    font-weight: 700;
}

/* Name of the current step in the "Step 1 of 5" line. Only on mobile (see the responsive rules). */
.client-profile-form .cpf-progress-current {
    display: none;
}

/* Steps that are complete: teal */
.client-profile-form .cpf-progress--2 li:nth-child(-n+1),
.client-profile-form .cpf-progress--3 li:nth-child(-n+2),
.client-profile-form .cpf-progress--4 li:nth-child(-n+3),
.client-profile-form .cpf-progress--5 li:nth-child(-n+4) {
    color: var(--teal);
}

.client-profile-form .cpf-progress--2 li:nth-child(-n+1) .cpf-progress-number,
.client-profile-form .cpf-progress--3 li:nth-child(-n+2) .cpf-progress-number,
.client-profile-form .cpf-progress--4 li:nth-child(-n+3) .cpf-progress-number,
.client-profile-form .cpf-progress--5 li:nth-child(-n+4) .cpf-progress-number {
    border-color: var(--teal);
    background-color: var(--teal);
    color: var(--color-white-solid);
}

.client-profile-form .cpf-progress--2 li:nth-child(-n+1)::after,
.client-profile-form .cpf-progress--3 li:nth-child(-n+2)::after,
.client-profile-form .cpf-progress--4 li:nth-child(-n+3)::after,
.client-profile-form .cpf-progress--5 li:nth-child(-n+4)::after {
    background-color: var(--teal);
}

/* After a successful send, step 5 is complete too (Contact Form 7 adds .sent to the form) */
.wpcf7 form.sent .client-profile-form .cpf-progress--5 li:nth-child(5) {
    color: var(--teal);
}

.wpcf7 form.sent .client-profile-form .cpf-progress--5 li:nth-child(5) .cpf-progress-number {
    border-color: var(--teal);
    background-color: var(--teal);
    color: var(--color-white-solid);
    box-shadow: none;
}

.wpcf7 form.sent .client-profile-form .cpf-progress--5 li:nth-child(4)::after {
    background-color: var(--teal);
}

/* Current step: midnight blue */
.client-profile-form .cpf-progress--1 li:nth-child(1),
.client-profile-form .cpf-progress--2 li:nth-child(2),
.client-profile-form .cpf-progress--3 li:nth-child(3),
.client-profile-form .cpf-progress--4 li:nth-child(4),
.client-profile-form .cpf-progress--5 li:nth-child(5) {
    color: var(--midnight-blue);
}

.client-profile-form .cpf-progress--1 li:nth-child(1) .cpf-progress-number,
.client-profile-form .cpf-progress--2 li:nth-child(2) .cpf-progress-number,
.client-profile-form .cpf-progress--3 li:nth-child(3) .cpf-progress-number,
.client-profile-form .cpf-progress--4 li:nth-child(4) .cpf-progress-number,
.client-profile-form .cpf-progress--5 li:nth-child(5) .cpf-progress-number {
    border-color: var(--midnight-blue);
    background-color: var(--midnight-blue);
    color: var(--color-white-solid);
    box-shadow: 0 0 0 4px rgba(0, 27, 69, 0.1);
}

/* Section headings in the steps ("Financial Position and Investment Goals") */
.client-profile-form .uacf7-step h3 {
    margin: 0;
    padding: 4px 0 4px;
    color: var(--midnight-blue);
    font-size: 22px;
    line-height: 130%;
}

/* "Additional Information" heading in the middle of step 5 */
.client-profile-form .uacf7-step .col-sm-12 + .col-sm-12:has(> h3) {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-border);
}

/* Required fields: a teal star after the label */
.client-profile-form .col-sm-12:has(.wpcf7-validates-as-required) > label::after {
    content: " *";
    color: var(--teal);
}

/* Radio (partner/spouse) and checkbox (risk tolerance) options as cards */
.client-profile-form .wpcf7-radio,
.client-profile-form .wpcf7-checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.client-profile-form .wpcf7-checkbox {
    flex-direction: column;
}

.client-profile-form .wpcf7-list-item label {
    padding: 12px 18px;
    border: 1px solid var(--gray-border);
    border-radius: 10px;
    background-color: var(--color-white-solid);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.client-profile-form .wpcf7-radio .wpcf7-list-item label {
    min-width: 120px;
}

.client-profile-form .wpcf7-list-item label:hover {
    border-color: var(--teal);
}

.client-profile-form .wpcf7-list-item label:has(input:checked) {
    border-color: var(--teal);
    background-color: var(--quote-bg);
    color: var(--midnight-blue);
}

/* "Do you have a partner/spouse?" is an exclusive checkbox (one choice, optional). */
.client-profile-form .wpcf7-exclusive-checkbox {
    flex-direction: row;
}

.client-profile-form .wpcf7-exclusive-checkbox .wpcf7-list-item label {
    min-width: 120px;
}

/* Previous and Next buttons. The plugin hides Previous on the first step. */
.client-profile-form p.uacf7-buttons {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 32px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--gray-border);
}

.client-profile-form .uacf7-buttons button.uacf7-prev,
.client-profile-form .uacf7-buttons button.uacf7-next {
    flex: 1 1 0;
    float: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    margin: 0;
    padding: 8px 24px;
    border-radius: 10px;
    font-family: "Montserrat";
    font-size: 16px;
    font-weight: 700;
    line-height: 130%;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.client-profile-form .uacf7-buttons button.uacf7-next {
    border: 1px solid var(--midnight-blue);
    background-color: var(--midnight-blue);
    color: var(--color-white-solid);
}

.client-profile-form .uacf7-buttons button.uacf7-next:hover {
    border-color: var(--teal);
    background-color: var(--teal);
}

.client-profile-form .uacf7-buttons button.uacf7-prev {
    border: 1px solid var(--midnight-blue);
    background-color: transparent;
    color: var(--midnight-blue);
}

.client-profile-form .uacf7-buttons button.uacf7-prev:hover {
    background-color: var(--midnight-blue);
    color: var(--color-white-solid);
}

.client-profile-form .uacf7-buttons button.uacf7-next::after,
.client-profile-form .uacf7-buttons button.uacf7-prev::before {
    content: "";
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask: url('../images/solid-white-arrow.svg') no-repeat center;
    mask: url('../images/solid-white-arrow.svg') no-repeat center;
    transition: transform 0.25s ease-in-out;
}

.client-profile-form .uacf7-buttons button.uacf7-prev::before {
    transform: scaleX(-1);
}

.client-profile-form .uacf7-buttons button.uacf7-next:hover::after {
    transform: translateX(6px);
}

.client-profile-form .uacf7-buttons button.uacf7-prev:hover::before {
    transform: scaleX(-1) translateX(6px);
}

.client-profile-form .uacf7-buttons button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(51, 181, 160, 0.35);
}

/* The step spinner shows only while the plugin checks the step */
.client-profile-form .uacf7-buttons .uacf7-ajax-loader {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    margin: 8px 0 0 -12px;
}

.client-profile-form .uacf7-buttons .uacf7-ajax-loader.is-active {
    display: block;
}

/* Responsive */
@media screen and (max-width: 767px) {
    .wpcf7:has(.client-profile-form) {
        padding: 32px 18px 24px;
    }

    /* Mobile: numbers only. The name of the current step shows in the "Step 1 of 5" line. */
    .client-profile-form .cpf-progress-current {
        display: inline;
    }

    .client-profile-form .cpf-progress-list {
        gap: 6px;
    }

    .client-profile-form .cpf-progress-label {
        display: none;
    }

    .client-profile-form .cpf-progress-list li::after {
        left: calc(50% + 20px);
        width: calc(100% - 40px);
    }

    .client-profile-form .cpf-progress-number {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .client-profile-form .uacf7-step h3 {
        font-size: 19px;
    }

    .client-profile-form .wpcf7-radio .wpcf7-list-item,
    .client-profile-form .wpcf7-exclusive-checkbox .wpcf7-list-item {
        flex: 1 1 0;
    }

    .client-profile-form p.uacf7-buttons {
        gap: 10px;
    }

    .client-profile-form .uacf7-buttons button.uacf7-prev,
    .client-profile-form .uacf7-buttons button.uacf7-next {
        min-height: 48px;
        padding: 8px 14px;
        font-size: 14px;
    }
}

/* ========== Video Section ========== */
.video-section .heading-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 820px;
    margin: 0 auto 40px;
}

.video-section .heading-wrapper h5.subheading {
    padding-bottom: 0;
}

.video-section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    border-radius: 50%;
    background-color: var(--icon-teal-bg);
    color: var(--teal);
    font-size: 20px;
    font-weight: 700;
}

.video-section.midnight-blue-bg .video-section-number {
    background-color: rgba(91, 222, 204, 0.15);
    color: var(--teal-border);
}

.video-section.midnight-blue-bg h2 {
    color: var(--color-white-solid);
}

.video-section-grid {
    display: grid;
    gap: 32px;
    margin: 0 auto;
}

.video-section-grid--1 {
    grid-template-columns: 1fr;
    max-width: 900px;
}

.video-section-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 1100px;
}

.video-section-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    background-color: var(--deep-navy);
    box-shadow: 0 24px 48px 0 rgba(0, 27, 69, 0.13), 0 8px 16px 0 rgba(0, 27, 69, 0.05);
}

.video-section-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-section-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 760px;
    margin: 36px auto 0;
}

.video-section-text p {
    line-height: 165%;
}

.video-section-text a {
    color: var(--teal);
    font-weight: 600;
}

.video-section.midnight-blue-bg .video-section-text p {
    color: var(--mist-blue);
}

.video-section-button {
    justify-content: center;
    margin-top: 32px;
}

@media screen and (max-width: 767px) {
    .video-section .heading-wrapper {
        margin-bottom: 28px;
    }

    .video-section-grid,
    .video-section-grid--2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .video-section-frame {
        border-radius: 14px;
    }

    .video-section-text {
        margin-top: 28px;
    }

    .video-section-button .arrow-button {
        width: 100%;
    }
}

/* ========== Client Wish List Form ========== */

/* 2- and 3-column rows inside a step (Phone Home / Phone Work, Bedrooms / Bathrooms / Living Areas) */
.client-wishlist-form .uacf7-step .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
    width: 100%;
    margin: 20px 0 0;
    padding: 0;
}

.client-wishlist-form .uacf7-step .row:has(> .col-sm-4) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.client-wishlist-form .uacf7-step .row > [class^="col-sm-"] {
    flex: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.client-wishlist-form .uacf7-step .col-sm-12 + .row,
.client-wishlist-form .uacf7-step .row + .col-sm-12 {
    margin-top: 20px;
}

/* Text areas in a 2-column row have the same height as the one-line field next to them */
.client-wishlist-form .uacf7-step .row > [class^="col-sm-"] textarea {
    height: 52px;
    min-height: 52px;
}

/* Required fields in the rows: a teal star after the label (same as the other labels) */
.client-wishlist-form .uacf7-step .row > [class^="col-sm-"]:has(.wpcf7-validates-as-required) > label::after {
    content: " *";
    color: var(--teal);
}

/* Help notes under a field ("What size building do you prefer? …") */
.client-wishlist-form .uacf7-step .col-sm-12 > .wpcf7-form-control-wrap + p,
.client-wishlist-form .uacf7-step .col-sm-12 > p:not(:first-child) {
    margin: 8px 0 0;
    color: var(--light-gray);
    font-size: 13px;
    line-height: 150%;
}

/* Longer notes (Investors / Owner Occupiers note, Explanatory Note, risk note): a light teal box */
.client-wishlist-form .uacf7-step .col-sm-12:not(:has(.wpcf7-form-control-wrap)):not(:has(> h3)):not(:has(.wpcf7-submit)) {
    padding: 18px 20px;
    border-left: 3px solid var(--teal);
    border-radius: 10px;
    background-color: var(--quote-bg);
    color: var(--dark-gray-text);
    font-size: 14px;
    line-height: 160%;
}

.client-wishlist-form .uacf7-step .col-sm-12:not(:has(.wpcf7-form-control-wrap)):not(:has(> h3)):not(:has(.wpcf7-submit)) p {
    margin: 0;
    color: var(--dark-gray-text);
    font-size: 14px;
}

.client-wishlist-form .uacf7-step .col-sm-12:not(:has(.wpcf7-form-control-wrap)):not(:has(> h3)):not(:has(.wpcf7-submit)) p + p,
.client-wishlist-form .uacf7-step .col-sm-12:not(:has(.wpcf7-form-control-wrap)):not(:has(> h3)):not(:has(.wpcf7-submit)) > strong {
    display: block;
    margin-top: 10px;
}

.client-wishlist-form .uacf7-step .col-sm-12:not(:has(.wpcf7-form-control-wrap)):not(:has(> h3)):not(:has(.wpcf7-submit)) strong {
    color: var(--midnight-blue);
}

.client-wishlist-form .uacf7-step .col-sm-12:not(:has(.wpcf7-form-control-wrap)):not(:has(> h3)):not(:has(.wpcf7-submit)) ol {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0 12px;
    padding-left: 20px;
    list-style: decimal;
}

/* Checkbox groups with many options (life-cycle stage, compromise criteria): 2 columns */
.client-wishlist-form .wpcf7-checkbox:not(.wpcf7-exclusive-checkbox):has(.wpcf7-list-item:nth-child(5)) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media screen and (max-width: 767px) {
    .client-wishlist-form .uacf7-step .row,
    .client-wishlist-form .uacf7-step .row:has(> .col-sm-4),
    .client-wishlist-form .wpcf7-checkbox:not(.wpcf7-exclusive-checkbox):has(.wpcf7-list-item:nth-child(5)) {
        grid-template-columns: 1fr;
    }
}

/* ========== Mentorship Program page ========== */

/* "Not Just A Course" statistics (Cards With Numbers): hide the 01 / 02 / 03 numbers and show the values (20+, A+, 1 on 1) as large teal text, as on the live page */
.page-id-19789 .numbered-cards-wrapper .card p.card-number {
    display: none;
}

.page-id-19789 .numbered-cards-wrapper .card h3 {
    color: var(--teal);
    font-size: 56px;
    line-height: 110%;
    letter-spacing: -1px;
}

.page-id-19789 .numbered-cards-wrapper .card h3 + p {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mentor program mockup image (Full Width Textarea under the hero): not wider than 960px */
.page-id-19789 .full-width-textarea .text-wrapper img {
    max-width: 960px;
    margin-top: 0;
}

@media screen and (max-width: 767px) {
    .page-id-19789 .numbered-cards-wrapper .card h3 {
        font-size: 44px;
    }
}

/* ========== Review stars ========== */
.icon-content-card .review-stars {
    margin: 0 0 8px;
    color: var(--teal);
    font-size: 20px;
    line-height: 1;
    letter-spacing: 3px;
}

/* ========== Dragan Dimovski page ========== */
.page-id-19808 .two-column-content-and-image .social-links-wrapper {
    flex-wrap: wrap;
    margin-top: 12px;
}

.page-id-19808 .two-column-content-and-image .social-links-wrapper a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--midnight-blue);
    border-radius: 10px;
    background: var(--midnight-blue);
}

.page-id-19808 .two-column-content-and-image .social-links-wrapper a:hover {
    border-color: var(--teal);
    background: var(--teal);
}

.page-id-19808 .two-column-content-and-image .social-links-wrapper img {
    width: 18px;
    height: 18px;
}

/* Buyers Agent Institute: no theme icon, so a small text button in the same row */
.page-id-19808 .two-column-content-and-image .social-links-wrapper a.social-link-text {
    width: auto;
    padding: 0 14px;
    color: var(--color-white-solid);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* ========== Mentorship Application Form ========== */
.mentorship-form .col-sm-12:has(.wpcf7-submit) {
    margin-top: 28px;
}
/* ========== AOS fix for WP-Optimize "Delay JavaScript" ========== */
body [data-aos]:not(.aos-init) {
    opacity: 1;
    transform: none;
    transition: none;
}
/* ========== Step loader fix on mobile ========== */
@media screen and (max-width: 767px) {
    .wpcf7:has(.client-profile-form .uacf7-buttons) {
        padding-bottom: 40px;
    }
}
/* ========== Home banner form card ========== */
.two-column-with-iframe-home-banner .form-container .iframe-wrapper {
    padding: 12px 24px 24px;
}

@media screen and (max-width: 767px) {
    .two-column-with-iframe-home-banner .form-container .iframe-wrapper {
        padding: 12px 20px 20px;
    }
}
/* ========== White form card ========== */
.content-with-form .form-wrapper .iframe-wrapper {
    padding: 0 32px 32px;
}

@media screen and (max-width: 767px) {
    .content-with-form .form-wrapper .iframe-wrapper {
        padding: 28px 20px 24px;
    }
}
/* ========== GHL form cards follow the GHL form style ========== */

/* Guide row (Book CTA With Features And Form): the global .iframe-wrapper has a 100px min-height for loading forms. */
.book-cta-with-features-and-form .iframe-wrapper {
    min-height: 0;
}

/* The GHL embed script makes the iframe 5px taller than the form. */
.book-cta-with-features-and-form .iframe-wrapper .ep-iFrameContainer {
    margin-bottom: -5px;
}

/* Form and Calendar Section with a dark GHL form (Sydney, NSW / QLD / SA / VIC Exclusive): dark card, the same look as the Home banner card (Figma Aside 876:26743). */
.form-and-calendar-section .form-wrapper:has(iframe[src*="Cj8fOkoKA3ZHVHLl7Yqr"]),
.form-and-calendar-section .form-wrapper:has(iframe[src*="WgerF98GPPoVCo0zcAWh"]),
.form-and-calendar-section .form-wrapper:has(iframe[src*="Y9S1nZ7eM9CGnyYtr0rb"]),
.form-and-calendar-section .form-wrapper:has(iframe[src*="Yueao4z0awCf4m0oUrw2"]),
.form-and-calendar-section .form-wrapper:has(iframe[src*="JhOae3FiSjQpfk0q0MPm"]) {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(140deg, rgba(91, 222, 204, 0.35) 0%, rgba(72, 156, 217, 0.10) 40%, rgba(72, 156, 217, 0.00) 65%),
        var(--midnight-blue);
    box-shadow: 0 36px 72px 0 rgba(0, 8, 20, 0.30);
}

/* On a midnight blue section the card is a glass card, as on the Home banner */
.form-and-calendar-section.midnight-blue-bg .form-wrapper:has(iframe[src*="Cj8fOkoKA3ZHVHLl7Yqr"]),
.form-and-calendar-section.midnight-blue-bg .form-wrapper:has(iframe[src*="WgerF98GPPoVCo0zcAWh"]),
.form-and-calendar-section.midnight-blue-bg .form-wrapper:has(iframe[src*="Y9S1nZ7eM9CGnyYtr0rb"]),
.form-and-calendar-section.midnight-blue-bg .form-wrapper:has(iframe[src*="Yueao4z0awCf4m0oUrw2"]),
.form-and-calendar-section.midnight-blue-bg .form-wrapper:has(iframe[src*="JhOae3FiSjQpfk0q0MPm"]) {
    background:
        linear-gradient(140deg, rgba(91, 222, 204, 0.35) 0%, rgba(72, 156, 217, 0.10) 40%, rgba(72, 156, 217, 0.00) 65%),
        rgba(255, 255, 255, 0.04);
}

/* Heading and text in the dark card */
.form-and-calendar-section .form-wrapper:has(iframe[src*="Cj8fOkoKA3ZHVHLl7Yqr"]) .iframe-header h3,
.form-and-calendar-section .form-wrapper:has(iframe[src*="WgerF98GPPoVCo0zcAWh"]) .iframe-header h3,
.form-and-calendar-section .form-wrapper:has(iframe[src*="Y9S1nZ7eM9CGnyYtr0rb"]) .iframe-header h3,
.form-and-calendar-section .form-wrapper:has(iframe[src*="Yueao4z0awCf4m0oUrw2"]) .iframe-header h3,
.form-and-calendar-section .form-wrapper:has(iframe[src*="JhOae3FiSjQpfk0q0MPm"]) .iframe-header h3 {
    color: var(--color-white-solid);
}

.form-and-calendar-section .form-wrapper:has(iframe[src*="Cj8fOkoKA3ZHVHLl7Yqr"]) .iframe-header p,
.form-and-calendar-section .form-wrapper:has(iframe[src*="WgerF98GPPoVCo0zcAWh"]) .iframe-header p,
.form-and-calendar-section .form-wrapper:has(iframe[src*="Y9S1nZ7eM9CGnyYtr0rb"]) .iframe-header p,
.form-and-calendar-section .form-wrapper:has(iframe[src*="Yueao4z0awCf4m0oUrw2"]) .iframe-header p,
.form-and-calendar-section .form-wrapper:has(iframe[src*="JhOae3FiSjQpfk0q0MPm"]) .iframe-header p {
    color: var(--mist-blue);
}
/* ========== GHL booking calendar in the home banner card ========== */
.two-column-with-iframe-home-banner .iframe-wrapper iframe.clx-cal {
    padding: 0;
}

@media (max-width: 767px) {
    .two-column-with-iframe-home-banner .form-container .iframe-wrapper:has(iframe.clx-cal) {
        padding: 12px;
    }
}
/* ========== Text after button in Pointers Section and Icon and Content Cards ========== */
.pointers-section .text-after-button,
.icon-and-content-cards .text-after-button {
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

.pointers-section .text-after-button p,
.icon-and-content-cards .text-after-button p {
    margin: 0;
}

.pointers-section .text-after-button strong,
.icon-and-content-cards .text-after-button strong {
    color: var(--midnight-blue);
    font-weight: 700;
}
/* Image CTA cards (Podcast and other pages): image fills the 320px high box and does not stretch */
.image-cta-card img {
    object-fit: cover;
    object-position: center;
}

@media (max-width: 767px) {
    .image-cta-card img {
        max-height: 420px;
    }
}

/* Page speed: the first section (hero) shows at once, without the AOS fade, so the main text paints early */
main > section:first-child [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Page speed: the 5-star image has a fixed size, so the layout does not move when it loads */
.reviews-wrapper .review-text img {
    width: 72px;
    height: 13px;
}

/* Page speed: the Home hero GHL form keeps its final height from the start, so the hero does not move when the form loads.
   The form is 601px high when it is wider than 400px, and about 793px or more when it is narrower (fields stack).
   The min-height is on the wrapper too, because form_embed.js moves the iframe off-screen while the form loads. */
.two-column-with-iframe-home-banner .form-wrapper {
    container-type: inline-size;
}

#inline-KhXQmG3rypy53bqwiISg,
.iframe-wrapper:has(#inline-KhXQmG3rypy53bqwiISg) {
    min-height: 793px;
}

/* min-height without the wrapper padding, so the wrapper height is the same before and after the form loads */
.iframe-wrapper:has(#inline-KhXQmG3rypy53bqwiISg) {
    box-sizing: content-box;
}

@container (min-width: 401px) {
    #inline-KhXQmG3rypy53bqwiISg,
    .iframe-wrapper:has(#inline-KhXQmG3rypy53bqwiISg) {
        min-height: 601px;
    }
}

/* Smaller image in Two Column Content and Image: put "image-size-50" (70% wide) or "image-size-70" (80% wide) in the block Custom Class field */
.two-column-content-and-image.image-size-50 .image-wrapper,
.two-column-content-and-image.image-size-70 .image-wrapper {
    margin-inline: auto;
}

.two-column-content-and-image.image-size-50 .image-wrapper {
    max-width: 70%;
}

.two-column-content-and-image.image-size-70 .image-wrapper {
    max-width: 80%;
}

@media (max-width: 767px) {
    .two-column-content-and-image.image-size-50 .image-wrapper,
    .two-column-content-and-image.image-size-70 .image-wrapper {
        max-width: 100%;
    }
}

/* Rounded image in Two Column Content and Image: put "image-rounded" in the block Custom Class field.
   !important is needed: main.css sets "border-radius: 0 !important" on .home-two-col images. */
.two-column-content-and-image.image-rounded .image-wrapper img {
    border-radius: 20px !important;
}
