/* Shared premium legal advisory hero for /home and /legal-advisory-result. */

.ml-advisory-hero,
.ml-advisory-hero * {
    box-sizing: border-box;
}

.ml-lawpage .ml-advisory.ml-advisory-hero,
.ml-ai-page .ml-ai-search.ml-advisory-hero {
    --ml-hero-ink: #10141b;
    --ml-hero-ink-2: #171b23;
    --ml-hero-paper: #fbf7ef;
    --ml-hero-paper-2: #efe5d7;
    --ml-hero-copper: #c99879;
    --ml-hero-copper-2: #f0c4aa;
    --ml-hero-rose: #d7968c;
    --ml-hero-text: #ffffff;
    --ml-hero-muted: #716e6a;

    position: relative;
    isolation: isolate;
    width: 100vw;
    min-height: clamp(430px, 36vw, 620px);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: clamp(74px, 8.5vw, 132px) max(20px, calc((100vw - 1180px) / 2));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(circle at 72% 18%, rgba(201, 152, 121, 0.18), transparent 26%),
        radial-gradient(circle at 24% 34%, rgba(240, 196, 170, 0.11), transparent 30%),
        linear-gradient(115deg, #181b22 0%, #11151d 44%, #0d1219 100%);
    border: 0;
    border-radius: 0;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.07);
}

.ml-lawpage .ml-advisory.ml-advisory-hero::before,
.ml-ai-page .ml-ai-search.ml-advisory-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 112px 112px;
    mask-image: radial-gradient(circle at 50% 46%, rgba(0, 0, 0, 0.82), transparent 74%);
}

.ml-lawpage .ml-advisory.ml-advisory-hero::after,
.ml-ai-page .ml-ai-search.ml-advisory-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(12, 16, 22, 0.68), transparent 28%, transparent 72%, rgba(12, 16, 22, 0.66)),
        radial-gradient(ellipse at center, transparent 0%, transparent 48%, rgba(7, 10, 14, 0.7) 100%);
    pointer-events: none;
}

.ml-advisory-hero__content {
    position: relative;
    z-index: 2;
    width: min(1160px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ml-lawpage .ml-advisory-hero h1,
.ml-ai-page .ml-advisory-hero h1 {
    max-width: min(1480px, 100%);
    margin: 0 0 clamp(30px, 4vw, 46px);
    color: var(--ml-hero-text) !important;
    font-family: inherit;
    font-size: clamp(38px, 4.15vw, 66px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: 0;
    text-wrap: balance;
    text-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

.ml-lawpage .ml-advisory-hero__form,
.ml-ai-page .ml-advisory-hero__form {
    position: relative;
    width: min(1040px, 100%);
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 240, 229, 0.93)),
        var(--ml-hero-paper);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.36),
        0 0 0 7px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.ml-lawpage .ml-advisory-hero__form::after,
.ml-ai-page .ml-advisory-hero__form::after {
    content: "";
    position: absolute;
    inset: auto 12% 0 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 196, 170, 0.9), transparent);
    pointer-events: none;
}

.ml-lawpage .ml-advisory-hero__form button,
.ml-ai-page .ml-advisory-hero__form button {
    flex: 0 0 auto;
    min-width: 238px;
    height: auto;
    min-height: 82px;
    padding: 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    border-right: 1px solid rgba(87, 66, 61, 0.18);
    border-radius: 999px 0 0 999px;
    background: #c9897e;
    color: #ffffff;
    font-family: inherit;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.ml-lawpage .ml-advisory-hero__form button:hover,
.ml-lawpage .ml-advisory-hero__form button:focus,
.ml-ai-page .ml-advisory-hero__form button:hover,
.ml-ai-page .ml-advisory-hero__form button:focus {
    background: #b7776e;
}

.ml-advisory-hero__button-mark,
.ml-advisory-hero__field-mark {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ml-advisory-hero__button-mark {
    width: 30px;
    height: 30px;
}

.ml-advisory-hero__button-mark svg,
.ml-advisory-hero__field-mark svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ml-advisory-hero__button-mark path,
.ml-advisory-hero__field-mark path {
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linejoin: round;
}

.ml-advisory-hero__field {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
}

.ml-lawpage .ml-advisory-hero__field input,
.ml-ai-page .ml-advisory-hero__field textarea {
    width: 100%;
    height: 100%;
    min-height: 82px;
    padding: 0 86px 0 42px;
    border: 0;
    outline: 0;
    resize: none;
    background: transparent;
    color: #2a2b2d;
    font-family: inherit;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.45;
}

.ml-ai-page .ml-advisory-hero__field textarea {
    padding-top: 27px;
}

.ml-lawpage .ml-advisory-hero__field input::placeholder,
.ml-ai-page .ml-advisory-hero__field textarea::placeholder {
    color: rgba(71, 70, 68, 0.66);
    font-style: normal;
    font-weight: 500;
}

.ml-advisory-hero__field-mark {
    position: absolute;
    top: 50%;
    right: 34px;
    width: 34px;
    height: 34px;
    color: rgba(201, 152, 121, 0.58);
    transform: translateY(-50%);
    pointer-events: none;
}

.ml-advisory-hero__art {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.ml-advisory-hero__svg {
    position: absolute;
    display: block;
    overflow: visible;
    color: var(--ml-hero-copper);
    stroke: currentColor;
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.42;
}

.ml-advisory-hero__svg circle {
    fill: currentColor;
    stroke: none;
}

.ml-advisory-hero__svg--orbits {
    left: -6%;
    top: -12%;
    width: min(47vw, 720px);
    min-width: 480px;
    animation: mlHeroOrbitDrift 22s ease-in-out infinite alternate;
}

.ml-advisory-hero__svg--scales {
    left: 8%;
    top: 20%;
    width: min(22vw, 340px);
    min-width: 220px;
    opacity: 0.36;
    animation: mlHeroScaleBreathe 8s ease-in-out infinite;
}

.ml-advisory-hero__svg--circuit {
    right: 7%;
    top: 8%;
    width: min(34vw, 520px);
    min-width: 320px;
    opacity: 0.32;
    animation: mlHeroCircuitFloat 13s ease-in-out infinite alternate;
}

.ml-advisory-hero__svg--documents {
    right: 4%;
    top: 10%;
    width: min(25vw, 420px);
    min-width: 260px;
    color: var(--ml-hero-copper-2);
    opacity: 0.28;
    transform: rotate(5deg);
    animation: mlHeroDocumentFloat 10s ease-in-out infinite alternate;
}

.ml-advisory-hero__svg--waves {
    left: 0;
    right: 0;
    bottom: -22px;
    width: 100%;
    height: 240px;
    color: var(--ml-hero-copper);
    opacity: 0.26;
    stroke-width: 1;
    animation: mlHeroWaveFlow 18s ease-in-out infinite alternate;
}

.ml-advisory-hero__dash {
    stroke-dasharray: 2 13;
    animation: mlHeroDash 22s linear infinite;
}

@keyframes mlHeroOrbitDrift {
    from {
        transform: translate3d(-12px, 8px, 0) rotate(-2deg);
    }
    to {
        transform: translate3d(18px, -10px, 0) rotate(2deg);
    }
}

@keyframes mlHeroScaleBreathe {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
        opacity: 0.3;
    }
    50% {
        transform: translate3d(0, -8px, 0);
        opacity: 0.44;
    }
}

@keyframes mlHeroCircuitFloat {
    from {
        transform: translate3d(18px, 0, 0);
        opacity: 0.24;
    }
    to {
        transform: translate3d(-8px, 12px, 0);
        opacity: 0.4;
    }
}

@keyframes mlHeroDocumentFloat {
    from {
        transform: translate3d(18px, -6px, 0) rotate(5deg);
    }
    to {
        transform: translate3d(-8px, 10px, 0) rotate(2deg);
    }
}

@keyframes mlHeroWaveFlow {
    from {
        transform: translate3d(-18px, 0, 0) scaleX(1.02);
    }
    to {
        transform: translate3d(18px, -8px, 0) scaleX(1.04);
    }
}

@keyframes mlHeroDash {
    to {
        stroke-dashoffset: -180;
    }
}

@media (max-width: 900px) {
    .ml-lawpage .ml-advisory.ml-advisory-hero,
    .ml-ai-page .ml-ai-search.ml-advisory-hero {
        min-height: 420px;
        padding: 70px 18px;
    }

    .ml-lawpage .ml-advisory-hero h1,
    .ml-ai-page .ml-advisory-hero h1 {
        margin-bottom: 28px;
        font-size: clamp(33px, 8vw, 52px);
    }

    .ml-lawpage .ml-advisory-hero__form,
    .ml-ai-page .ml-advisory-hero__form {
        display: grid;
        grid-template-columns: 1fr;
        width: min(100%, 560px);
        min-height: 0;
        border-radius: 30px;
    }

    .ml-lawpage .ml-advisory-hero__form button,
    .ml-ai-page .ml-advisory-hero__form button {
        order: 2;
        width: 100%;
        min-width: 0;
        min-height: 62px;
        border-right: 0;
        border-top: 1px solid rgba(86, 62, 51, 0.18);
        border-radius: 0 0 28px 28px;
        font-size: 17px;
    }

    .ml-advisory-hero__field {
        order: 1;
    }

    .ml-lawpage .ml-advisory-hero__field input,
    .ml-ai-page .ml-advisory-hero__field textarea {
        min-height: 64px;
        padding: 0 60px 0 22px;
        font-size: 15px;
    }

    .ml-ai-page .ml-advisory-hero__field textarea {
        padding-top: 22px;
    }

    .ml-advisory-hero__field-mark {
        right: 22px;
        width: 27px;
        height: 27px;
    }

    .ml-advisory-hero__svg--scales {
        left: -6%;
        top: 18%;
        opacity: 0.26;
    }

    .ml-advisory-hero__svg--documents {
        right: -18%;
        opacity: 0.23;
    }

    .ml-advisory-hero__svg--circuit {
        right: -22%;
        opacity: 0.24;
    }
}

@media (max-width: 520px) {
    .ml-lawpage .ml-advisory.ml-advisory-hero,
    .ml-ai-page .ml-ai-search.ml-advisory-hero {
        min-height: 390px;
        padding: 58px 14px;
    }

    .ml-lawpage .ml-advisory-hero h1,
    .ml-ai-page .ml-advisory-hero h1 {
        font-size: 31px;
        line-height: 1.1;
    }

    .ml-lawpage .ml-advisory-hero__form,
    .ml-ai-page .ml-advisory-hero__form {
        border-radius: 24px;
    }

    .ml-lawpage .ml-advisory-hero__form button,
    .ml-ai-page .ml-advisory-hero__form button {
        border-radius: 0 0 22px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ml-advisory-hero__svg,
    .ml-advisory-hero__dash {
        animation: none !important;
    }
}
