/* =========================================================================
   Info Box Section — venus-clinic/info-box-section
   Tokens (from Figma):
     Background:      #F8EFF3
     Brand main:      #701346
     Heading colour:  #24306A
     Body grey 800:   #383838
     Label grey 700:  #58585A
     Card bg:         #FFFFFF
     Shadow:          5 5 30 rgba(112,19,70,0.15)
   Type:
     H2  Noto Sans SemiBold Italic 44 / 56
     H4  Noto Sans Bold Italic 30 / 42 (#701346)
     Label Lato Medium 16 / 24, letter-spacing 1.28px, uppercase
     Body Lato Regular 18 / 26
     Button Noto Sans SemiBold 20 / 20
   ========================================================================= */

.info-box-section {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    background-color: #F8EFF3;
    padding: 80px 20px 120px;
    overflow: hidden;
    color: #383838;
    font-family: 'Lato', sans-serif;
}

.info-box-section *,
.info-box-section *::before,
.info-box-section *::after {
    box-sizing: border-box;
}

.info-box-section.alignwide,
.info-box-section.alignfull {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.info-box-section__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ----- Decorative background image (full-section <img>) -------------- */

.info-box-section__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    z-index: 0;
    max-width: none;
}

/* ----- Header --------------------------------------------------------- */

.info-box-section__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.info-box-section__chevrons {
    display: inline-flex;
    width: 26px;
    height: 40px;
    margin-bottom: 12px;
}

.info-box-section__chevrons svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

/* Sequential downward translate-and-fade cascade — chevrons travel top → bottom in a smooth loop. */
@-webkit-keyframes info-box-section-chevron-fade {
    0% {
        opacity: 0;
        -webkit-transform: translateY(-8px);
                transform: translateY(-8px);
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 0;
        -webkit-transform: translateY(8px);
                transform: translateY(8px);
    }
}

@keyframes info-box-section-chevron-fade {
    0% {
        opacity: 0;
        -webkit-transform: translateY(-8px);
                transform: translateY(-8px);
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 0;
        -webkit-transform: translateY(8px);
                transform: translateY(8px);
    }
}

.info-box-section__chevrons svg path {
    opacity: 0;
    -webkit-transform-origin: center;
            transform-origin: center;
    -webkit-transform-box: fill-box;
            transform-box: fill-box;
    -webkit-animation: info-box-section-chevron-fade 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
            animation: info-box-section-chevron-fade 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    -webkit-transition: opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
            transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    will-change: opacity, transform;
}

.info-box-section__chevrons svg path:nth-of-type(1) {
    -webkit-animation-delay: 0s;
            animation-delay: 0s;
}

.info-box-section__chevrons svg path:nth-of-type(2) {
    -webkit-animation-delay: 0.25s;
            animation-delay: 0.25s;
}

.info-box-section__chevrons svg path:nth-of-type(3) {
    -webkit-animation-delay: 0.5s;
            animation-delay: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
    .info-box-section__chevrons svg path {
        -webkit-animation: none;
        animation: none;
        opacity: 1;
    }
}

.info-box-section__heading {
    margin: 0;
    color: #24306A;
    font-family: 'Noto Sans', sans-serif;
    font-style: italic;
    font-weight: 600;
    font-size: clamp(28px, 4.2vw, 44px);
    line-height: 1.27;
    letter-spacing: 0;
    text-transform: capitalize;
    max-width: 900px;
}

.info-box-section__description {
    margin: 0;
    max-width: 824px;
    color: #383838;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.45;
}

/* ----- Timeline ------------------------------------------------------- */

.info-box-section__timeline {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    width: 100%;
    max-width: 960px;
}

.info-box-section__step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    z-index: 1;
}

/* Vertical connector line — runs from this step's icon center to the next step's icon center.
   Hidden on the last step. Behind icons via z-index. */
.info-box-section__step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 60px;
    /* center of 120px icon */
    bottom: -80px;
    /* 20px gap + 60px into next icon's center */
    left: 60px;
    /* horizontal center of 120px icon column */
    width: 1px;
    margin-left: -0.5px;
    background-color: rgba(112, 19, 70, 0.4);
    z-index: 0;
}

/* ----- Step icon (round) --------------------------------------------- */

.info-box-section__step-icon {
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #701346;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.info-box-section__step-icon-img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    display: block;
}

/* ----- Step card ----------------------------------------------------- */

.info-box-section__step-card {
    flex: 1 1 auto;
    min-width: 0;
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 24px 32px;
    box-shadow: 5px 5px 30px rgba(112, 19, 70, 0.15);
    position: relative;
}

/* Pointer arrow on left edge of card — aligned with icon center (icon = 120px, center = 60px) */
.info-box-section__step-arrow {
    position: absolute;
    top: 60px;
    left: -10px;
    width: 20px;
    height: 20px;
    background-color: #FFFFFF;
    transform: translateY(-50%) rotate(45deg);
    box-shadow: -3px 3px 6px rgba(112, 19, 70, 0.06);
    border-radius: 2px;
    z-index: 0;
}

.info-box-section__step-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 100%;
    background-color: #FFFFFF;
    border-radius: 12px 0 0 12px;
    z-index: 1;
}

.info-box-section__step-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* Label + title share their own block with no gap (per Figma — natural line-height spacing). */
.info-box-section__step-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.info-box-section__step-label {
    margin: 0;
    color: #58585A;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 1.28px;
    text-transform: uppercase;
}

.info-box-section__step-title {
    margin: 0;
    color: #701346;
    font-family: 'Noto Sans', sans-serif;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.4;
    text-transform: capitalize;
}

.info-box-section__step-text {
    color: #383838;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.45;
}

.info-box-section__step-text p {
    margin: 0;
}

.info-box-section__step-text p+p {
    margin-top: 12px;
}

/* ----- CTA button ---------------------------------------------------- */

.info-box-section__step-cta {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 32px;
    margin-top: 4px;
    background-color: #701346;
    color: #FFFFFF;
    border: 1px solid #701346;
    border-radius: 200px;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: capitalize;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.15s ease;
    text-align: center;
    cursor: pointer;
}

/* Hover — outlined treatment per Figma button system: transparent bg, brand border, brand text. */
.info-box-section__step-cta:hover,
.info-box-section__step-cta:focus-visible {
    background-color: transparent;
    color: #701346;
    border-color: #701346;
    text-decoration: none;
}

.info-box-section__step-cta:focus-visible {
    outline: 2px solid #24306A;
    outline-offset: 3px;
}

/* Active / pressed — Figma "When clicked" state: default appearance at 75% opacity. */
.info-box-section__step-cta:active {
    opacity: 0.75;
}

/* ----- Bottom wave --------------------------------------------------- */

.info-box-section__wave {
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 100%;
    transform: translateX(-50%);
    line-height: 0;
    pointer-events: none;
    z-index: 2;
    overflow: visible;
}

.info-box-section__wave svg {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1440 / 105;
    overflow: visible;
}

/* =========================================================================
   Responsive — tablet
   ========================================================================= */

@media (max-width: 1024px) {

    .info-box-section {
        padding: 64px 20px 96px;
    }

    .info-box-section__inner {
        max-width: 720px;
    }

    .info-box-section__step-icon {
        flex: 0 0 96px;
        width: 96px;
        height: 96px;
    }

    .info-box-section__step:not(:last-child)::before {
        top: 48px;
        bottom: -68px;
        /* 20px gap + 48px next icon center */
        left: 48px;
    }

    .info-box-section__step-card {
        padding: 20px 24px;
    }

    .info-box-section__step-arrow {
        top: 48px;
    }

    .info-box-section__wave svg {
        aspect-ratio: 1440 / 90;
    }
}

/* =========================================================================
   Responsive — mobile (≤ 767px)
   Per Figma mobile (375px frame, 335px content):
     icon 60px, gap 10px, card padding 20px, layout stays side-by-side.
   ========================================================================= */

@media (max-width: 767px) {

    .info-box-section {
        padding: 40px 20px 60px;
    }

    .info-box-section__inner {
        gap: 32px;
        max-width: 100%;
    }

    .info-box-section__header {
        gap: 16px;
    }

    .info-box-section__chevrons {
        margin-bottom: 0;
    }

    .info-box-section__heading {
        font-size: 34px;
        line-height: 46px;
        max-width: 100%;
    }

    .info-box-section__description {
        font-size: 16px;
        line-height: 24px;
        max-width: 100%;
    }

    .info-box-section__timeline {
        gap: 20px;
        max-width: 100%;
    }

    .info-box-section__step:not(:last-child)::before {
        top: 30px;
        bottom: -50px;
        /* 20px gap + 30px next icon center */
        left: 30px;
    }

    .info-box-section__step {
        flex-direction: row;
        align-items: flex-start;
        gap: 25px;
    }

    .info-box-section__step-icon {
        flex: 0 0 60px;
        width: 60px;
        height: 60px;
    }

    .info-box-section__step-card {
        padding: 20px;
    }

    .info-box-section__step-arrow {
        top: 30px;
        left: -8px;
        width: 16px;
        height: 16px;
        transform: translateY(-50%) rotate(45deg);
    }

    .info-box-section__step-card::after {
        width: 8px;
    }

    .info-box-section__step-label {
        font-size: 16px;
        line-height: 24px;
        letter-spacing: 1.28px;
    }

    .info-box-section__step-title {
        font-size: 24px;
        line-height: 36px;
    }

    .info-box-section__step-text {
        font-size: 16px;
        line-height: 24px;
    }

    .info-box-section__step-cta {
        align-self: flex-start;
        padding: 14px 24px;
        font-size: 16px;
    }

    .info-box-section__wave svg {
        aspect-ratio: 750 / 80;
    }
}

/* =========================================================================
   Responsive — small mobile (≤ 380px) — tighten further
   ========================================================================= */

@media (max-width: 380px) {


    .info-box-section__step-title {
        font-size: 22px;
        line-height: 32px;
    }
}

/* =========================================================================
   Editor adjustments
   ========================================================================= */

.editor-styles-wrapper .info-box-section {
    margin: 0;
}