.medical-home-hero {
    max-width: 1320px;
    margin: 0 auto;
    padding: 5px 20px 80px;
    font-family: 'Manrope', sans-serif;
}

.medical-home-hero__inner {
    background: linear-gradient(135deg, #e7efeb 0%, #f5f9f7 100%);
    border-radius: 24px;
    padding: 64px 80px 88px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 40px;
    overflow: hidden;
    position: relative;
    min-height: 0;
}

.medical-home-hero__content {
    max-width: 580px;
    position: relative;
    z-index: 2;
    flex: 0 0 54%;
}

.medical-home-hero .hero-title {
    font-size: var(--medical-home-hero-title-size, clamp(44px, 3.2vw, 52px));
    font-weight: 800;
    color: #1d503c;
    line-height: 1.1;
    margin: 0 0 24px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    max-width: 540px;
    white-space: pre-line;
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
}

.medical-home-hero .hero-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin: 0 0 22px;
    padding: 0 18px;
    border: 1px solid rgba(217, 103, 91, 0.28);
    border-radius: 10px;
    background: #f5ece9;
    color: #d9675b;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.01em;
}

.medical-home-hero .hero-desc {
    font-size: var(--medical-home-hero-desc-size, 16px);
    color: #1f2926;
    line-height: 1.6;
    margin: 0 0 40px;
    font-weight: 500;
    max-width: 580px;
}

.medical-home-hero .hero-usps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
    margin-bottom: 48px;
    max-width: 560px;
}

.medical-home-hero .usp-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.medical-home-hero .usp-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(29, 80, 60, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d503c;
    overflow: hidden;
}

.medical-home-hero .usp-icon i {
    font-size: 14px;
    line-height: 1;
    display: block;
}

.medical-home-hero .usp-text {
    font-size: var(--medical-home-hero-usp-size, 14px);
    font-weight: 700;
    color: #24312c;
    line-height: 1.3;
    max-width: 170px;
}

.medical-home-hero .small-form {
    margin-top: 38px;
    max-width: 480px;
}

.medical-home-hero .small-form,
.medical-home-hero .small-form .wpforms-container,
.medical-home-hero .small-form .wpforms-container-full,
.medical-home-hero .small-form .wpforms-form {
    display: block;
    background: transparent;
    background-color: transparent !important;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.medical-home-hero .small-form .wpforms-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 250px);
    column-gap: 0;
    row-gap: 16px;
    align-items: start;
    position: relative;
    background: transparent;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.medical-home-hero .small-form .wpforms-field-container {
    display: contents !important;
}

.medical-home-hero .small-form .wpforms-field-text,
.medical-home-hero .small-form .wpforms-field-phone {
    grid-column: 1 / 2;
    grid-row: 1;
    width: 100% !important;
    min-width: 0;
    margin: 0;
    background: #ffffff;
    border: 1px solid #d9e1db;
    border-right: 0;
    border-radius: 12px 0 0 12px;
    overflow: hidden;
    box-shadow: none;
    display: flex !important;
    align-items: stretch;
    position: relative;
    box-sizing: border-box;
}

.medical-home-hero .small-form .wpforms-field-container > * {
    width: 100% !important;
}

.medical-home-hero .small-form .wpforms-field {
    padding: 0 !important;
    margin: 0 !important;
}

.medical-home-hero .small-form .wpforms-field-text input,
.medical-home-hero .small-form .wpforms-field-phone input {
    width: 100%;
    height: 54px;
    border-radius: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    font-family: 'Manrope', sans-serif;
    font-size: 15px !important;
    font-weight: 500 !important;
    position: relative;
    z-index: 2;
}

.medical-home-hero .small-form .wpforms-field-text input.wpforms-error,
.medical-home-hero .small-form .wpforms-field-text input.user-invalid,
.medical-home-hero .small-form .wpforms-field-phone input.wpforms-error,
.medical-home-hero .small-form .wpforms-field-phone input.user-invalid {
    border: 1px solid #d63638 !important;
    box-shadow: inset 0 0 0 1px #d63638 !important;
}

.medical-home-hero .small-form .wpforms-field-text label.wpforms-error,
.medical-home-hero .small-form .wpforms-field-phone label.wpforms-error {
    position: absolute;
    left: 0;
    top: -26px;
    margin: 0 !important;
    padding: 0 !important;
    color: #d63638 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    background: transparent !important;
    z-index: 3;
    pointer-events: none;
    white-space: nowrap;
}

.medical-home-hero .small-form .wpforms-field-text .wpforms-error,
.medical-home-hero .small-form .wpforms-field-phone .wpforms-error {
    color: #d63638 !important;
}

.medical-home-hero .small-form em.wpforms-error {
    position: absolute;
    left: 0;
    top: -26px;
    margin: 0 !important;
    padding: 0 !important;
    color: #d63638 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    background: transparent !important;
    z-index: 3;
    pointer-events: none;
    white-space: nowrap;
}

.medical-home-hero .small-form .wpforms-submit-container {
    grid-column: 2 / 3;
    grid-row: 1;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 100%;
    position: relative;
    background: #ffffff;
    border: 1px solid #d9e1db;
    border-left: 0;
    border-radius: 0 12px 12px 0;
    padding: 0;
    overflow: hidden;
    box-shadow: none;
    display: flex !important;
    align-items: stretch;
    box-sizing: border-box;
}

.medical-home-hero .small-form .wpforms-submit {
    width: 100% !important;
    max-width: none !important;
    height: 54px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 14px rgba(207, 91, 84, 0.3) !important;
    border: 0 !important;
    background: #d9675b !important;
    color: #ffffff !important;
    font-family: 'Manrope', sans-serif;
    font-size: var(--medical-home-hero-button-size, 15px) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    display: block !important;
}

.medical-home-hero .small-form .wpforms-field-checkbox {
    grid-column: 1 / 3;
    grid-row: 2;
    width: 100%;
    margin: 14px 0 0;
    padding: 0;
    background: transparent !important;
    background-color: transparent !important;
    border: 0;
    box-shadow: none;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 480px;
    position: relative;
}

.medical-home-hero .small-form .wpforms-field-checkbox .wpforms-field-row,
.medical-home-hero .small-form .wpforms-field-checkbox .wpforms-field-row-block,
.medical-home-hero .small-form .wpforms-field-checkbox .wpforms-field-row-container,
.medical-home-hero .small-form .wpforms-field-checkbox .wpforms-field-row-block-container,
.medical-home-hero .small-form .wpforms-field-checkbox .wpforms-list-1,
.medical-home-hero .small-form .wpforms-field-checkbox ul,
.medical-home-hero .small-form .wpforms-field-checkbox li,
.medical-home-hero .small-form .wpforms-field-checkbox fieldset {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.medical-home-hero .small-form .wpforms-field-checkbox .wpforms-field-label-inline {
    color: #8d948f !important;
    font-family: 'Manrope', sans-serif;
    font-size: var(--medical-home-hero-consent-size, 11px);
    line-height: 1.45;
    cursor: pointer;
    margin-top: 1px;
}

.medical-home-hero .small-form .wpforms-field-checkbox ul {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.medical-home-hero .small-form .wpforms-field-checkbox li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 0;
    background: transparent !important;
    background-color: transparent !important;
}

.medical-home-hero .small-form .wpforms-field-checkbox .wpforms-field-label-inline a {
    color: #8d948f !important;
}

.medical-home-hero .small-form .wpforms-field-checkbox .wpforms-field-label-inline,
.medical-home-hero .small-form .wpforms-field-checkbox .wpforms-field-label-inline a {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.medical-home-hero .small-form .wpforms-field-checkbox em.wpforms-error {
    position: absolute;
    left: 24px;
    top: -20px;
    margin: 0 !important;
    padding: 0 !important;
    color: #d63638 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    background: transparent !important;
    z-index: 3;
    pointer-events: none;
    white-space: nowrap;
}

.medical-home-hero .small-form input[type=checkbox] {
    transform: translateY(1px);
    margin-right: 0;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    display: inline-block;
    -webkit-appearance: none !important;
    appearance: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    background: #ffffff !important;
    border: 1px solid #1d503c !important;
    border-radius: 3px;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
    position: absolute !important;
    opacity: 0 !important;
}

.medical-home-hero .small-form input[type=checkbox]::before,
.medical-home-hero .small-form input[type=checkbox]::after {
    content: none !important;
    display: none !important;
}

.medical-home-hero .small-form .wpforms-field-checkbox .wpforms-field-label-inline {
    position: relative;
    padding-left: 24px;
}

.medical-home-hero .small-form .wpforms-field-checkbox .wpforms-field-label-inline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 14px;
    height: 14px;
    border: 1px solid #1d503c;
    border-radius: 3px;
    background: #ffffff;
    box-sizing: border-box;
}

.medical-home-hero .small-form .wpforms-field-checkbox input[type=checkbox]:checked + .wpforms-field-label-inline::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 5px;
    width: 8px;
    height: 4px;
    border-left: 2px solid #1d503c;
    border-bottom: 2px solid #1d503c;
    transform: rotate(-45deg);
}

.medical-home-hero .small-form .wpforms-error-container {
    display: none !important;
}

.medical-home-hero .small-form .wpforms-submit:hover {
    background: #d5554d !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(207, 91, 84, 0.4) !important;
}

.medical-home-hero__form-note {
    margin-top: 12px;
    font-size: 12px;
    color: #7d8781;
}

.medical-home-hero__image {
    position: absolute;
    right: 0;
    top: 0;
    width: var(--medical-home-hero-image-width, 45%);
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 35%);
    mask-image: linear-gradient(to right, transparent 0%, black 35%);
}

.medical-home-hero__image img {
    display: block;
    width: var(--medical-home-hero-image-scale, 78%);
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.medical-home-hero__image-placeholder {
    width: 100%;
    min-height: 520px;
    border-radius: 20px;
    background: rgba(29, 80, 60, 0.06);
    color: #1d503c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-align: center;
    padding: 24px;
}

.medical-home-hero__form-preview .hero-form-wrapper {
    background: #ffffff;
    padding: 8px;
    border-radius: 12px;
    display: flex;
    box-shadow: 0 10px 40px rgba(29, 80, 60, 0.08);
    max-width: 480px;
    border: 1px solid #d9e1db;
}

.medical-home-hero__form-preview .hero-form-wrapper input {
    flex-grow: 1;
    border: none;
    padding: 0 24px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    color: #1f2926;
    background: transparent;
    font-weight: 500;
}

.medical-home-hero__form-preview .hero-form-wrapper button {
    background: #d9675b;
    color: #ffffff;
    border: none;
    padding: 18px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: var(--medical-home-hero-button-size, 15px);
    cursor: default;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(207, 91, 84, 0.3);
    white-space: nowrap;
}

.medical-home-hero__form-preview .hero-form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    color: #8d948f;
    font-size: var(--medical-home-hero-consent-size, 11px);
    line-height: 1.4;
    max-width: 480px;
}

.medical-home-hero__form-preview .hero-form-consent input {
    margin-top: 2px;
    width: 14px;
    height: 14px;
    accent-color: #1d503c;
    cursor: pointer;
    flex-shrink: 0;
}

.medical-home-hero__form-preview .hero-form-consent label {
    cursor: pointer;
}

.medical-home-hero__form-preview .hero-form-consent a {
    color: inherit;
    text-decoration: underline;
}

@media (max-width: 1200px) {
    .medical-home-hero__inner {
        padding: 48px 48px 0;
    }

    .medical-home-hero .hero-title {
        font-size: var(--medical-home-hero-title-size, clamp(36px, 4vw, 48px));
    }

    .medical-home-hero .hero-price {
        min-height: 42px;
        margin-bottom: 18px;
        padding: 0 16px;
        font-size: 15px;
    }

    .medical-home-hero .hero-desc {
        font-size: var(--medical-home-hero-desc-size, 15px);
    }

    .medical-home-hero .usp-text {
        font-size: var(--medical-home-hero-usp-size, 13px);
    }
}

@media (max-width: 900px) {
    .medical-home-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .medical-home-hero__inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 34px 22px 0;
        min-height: auto;
    }

    .medical-home-hero__content {
        max-width: none;
        width: 100%;
    }

    .medical-home-hero__image {
        width: 100%;
        flex-basis: auto;
        position: relative;
        right: auto;
        top: auto;
        height: auto;
        justify-content: center;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .medical-home-hero__image img {
        width: min(100%, 420px);
    }

    .medical-home-hero .hero-usps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 14px;
    }

    .medical-home-hero .small-form {
        max-width: none;
    }

    .medical-home-hero .small-form .wpforms-form {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        grid-template-columns: none !important;
    }

    .medical-home-hero .small-form .wpforms-field-container {
        display: contents !important;
    }

    .medical-home-hero .small-form .wpforms-field-text {
        width: 100%;
        min-width: 0;
        display: block;
        border-radius: 12px;
        border-right: 1px solid #d9e1db;
    }

    .medical-home-hero .small-form .wpforms-field-phone {
        width: 100%;
        min-width: 0;
        display: block;
        border-radius: 12px;
        border-right: 1px solid #d9e1db;
    }

    .medical-home-hero .small-form .wpforms-field-text input {
        border-radius: 12px !important;
        display: block;
    }

    .medical-home-hero .small-form .wpforms-submit-container {
        width: 100%;
        display: block;
        grid-column: auto;
        grid-row: auto;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        background: transparent;
        border: 0;
        border-radius: 0;
        padding: 0;
    }

    .medical-home-hero .small-form .wpforms-field-checkbox {
        grid-column: auto;
        grid-row: auto;
        max-width: none;
        margin-top: 8px;
        width: 100%;
        display: flex;
    }

    .medical-home-hero .small-form .wpforms-field-checkbox li {
        width: 100%;
    }

    .medical-home-hero .small-form .wpforms-field-checkbox .wpforms-field-label-inline {
        display: block;
        min-width: 0;
    }

    .medical-home-hero .small-form .wpforms-submit {
        width: 100% !important;
        border-radius: 12px !important;
    }
}

@media (max-width: 640px) {
    .medical-home-hero__inner {
        position: relative;
        overflow: hidden;
        border-radius: 22px;
        padding: 28px 16px 32px;
    }

    .medical-home-hero__inner::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to bottom,
            rgba(231, 239, 235, 0.82) 0%,
            rgba(231, 239, 235, 0.72) 34%,
            rgba(231, 239, 235, 0.52) 68%,
            rgba(231, 239, 235, 0.28) 100%
        );
        z-index: 1;
        pointer-events: none;
    }

    .medical-home-hero__content,
    .medical-home-hero__form {
        position: relative;
        z-index: 2;
    }

    .medical-home-hero__content {
        max-width: none;
        width: 100%;
        padding-right: 0;
    }

    .medical-home-hero .hero-title {
        max-width: 100%;
        font-size: clamp(30px, 8vw, 42px);
        line-height: 1.03;
        margin: 0 0 14px;
    }

    .medical-home-hero .hero-price {
        min-height: 38px;
        margin-bottom: 14px;
        padding: 0 14px;
        font-size: 14px;
    }

    .medical-home-hero .hero-desc {
        max-width: 100%;
        margin: 0 0 18px;
        line-height: 1.55;
    }

    .medical-home-hero .hero-usps {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 18px;
        max-width: 100%;
    }

    .medical-home-hero .usp-text {
        font-size: 14px;
        line-height: 1.28;
        max-width: none;
    }

    .medical-home-hero .usp-item {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        text-align: left;
    }

    .medical-home-hero .small-form .wpforms-submit,
    .medical-home-hero .small-form .wpforms-field-text input {
        height: 52px !important;
        font-size: var(--medical-home-hero-button-size, 15px) !important;
    }

    .medical-home-hero .usp-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .medical-home-hero .usp-icon i {
        font-size: 14px;
    }

    .medical-home-hero .usp-text {
        font-size: 14px;
        max-width: none;
        line-height: 1.25;
    }

    .medical-home-hero .small-form {
        width: 100%;
        max-width: 100%;
        margin-top: 14px;
    }

    .medical-home-hero .small-form .wpforms-form {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        grid-template-columns: none !important;
    }

    .medical-home-hero .small-form .wpforms-submit-container,
    .medical-home-hero .small-form .wpforms-field-text,
    .medical-home-hero .small-form .wpforms-field-phone,
    .medical-home-hero .small-form .wpforms-field-checkbox {
        max-width: 100%;
    }

    .medical-home-hero .small-form .wpforms-field-text,
    .medical-home-hero .small-form .wpforms-field-phone {
        display: block !important;
        border-radius: 14px;
    }

    .medical-home-hero .small-form .wpforms-field-text input,
    .medical-home-hero .small-form .wpforms-field-phone input {
        height: 52px !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
        font-size: 14px !important;
    }

    .medical-home-hero .small-form .wpforms-submit-container {
        margin-top: 0 !important;
    }

    .medical-home-hero .small-form .wpforms-submit {
        width: 100% !important;
        height: 52px !important;
        border-radius: 14px !important;
    }

    .medical-home-hero .small-form .wpforms-field-checkbox {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
        margin: 2px 0 0;
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }

    .medical-home-hero .small-form .wpforms-field-checkbox .wpforms-field-label-inline {
        display: block;
        min-width: 0;
        font-size: 10px;
        line-height: 1.32;
    }

    .medical-home-hero .small-form .wpforms-field-checkbox .wpforms-field-label-inline::before {
        top: 1px;
    }

    .medical-home-hero__image {
        position: absolute;
        inset: -52px -22px -4px auto;
        width: min(96vw, 430px);
        height: min(104%, 600px);
        z-index: 0;
        pointer-events: none;
        display: block;
        -webkit-mask-image: none;
        mask-image: none;
        opacity: 0.9;
    }

    .medical-home-hero__image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center right;
    }

    .medical-home-hero .small-form .wpforms-field-text input.wpforms-error,
    .medical-home-hero .small-form .wpforms-field-text input.user-invalid,
    .medical-home-hero .small-form .wpforms-field-phone input.wpforms-error,
    .medical-home-hero .small-form .wpforms-field-phone input.user-invalid {
        margin-bottom: 4px !important;
    }

    .medical-home-hero .small-form .wpforms-field-text label.wpforms-error,
    .medical-home-hero .small-form .wpforms-field-phone label.wpforms-error,
    .medical-home-hero .small-form em.wpforms-error {
        position: static;
        display: block;
        margin: 4px 0 0 !important;
        padding: 0 !important;
        white-space: normal;
        font-size: 11px !important;
        line-height: 1.25 !important;
    }

    .medical-home-hero .small-form .wpforms-field-checkbox em.wpforms-error {
        position: static;
        left: auto;
        top: auto;
        margin: 4px 0 0 !important;
        white-space: normal;
    }
}
