﻿/* =========================================================================
   DIRECT SETTLEMENT PAGE — component styles
   Extends custom.css. Uses the same --im-* tokens (burgundy / grey /
   white / black) so this page sits visually in line with the homepage.
   ========================================================================= */

/* ---------------------------------------------------------------------
   HERO
--------------------------------------------------------------------- */
.width-max-820 {
    max-width:820px;
}
.width-max-200 {
    max-width: 200px;
}

.im-section {
    padding: 88px 0;
    background: #f1f1f1;
    overflow: hidden;
}

.im-section--cta {
    background: var(--burgundy);
    background-image: radial-gradient(circle at 85% 20%, rgba(140,42,66,0.14), transparent 45%), linear-gradient(180deg, var(--burgundy-dark) 0%, var(--burgundy) 100%);
    color: #fff;
}

.im-section--alt{
    
}
.ds-hero {
    position: relative;
    background: url('../images/benefits-bg.jpg') center center / cover no-repeat;
    padding: 36px 0 100px;
    overflow: hidden;
}

.ds-hero-dots {
    display: none;
}

.ds-h2 {
    color: #000;
    margin-bottom: 20px;
    line-height:1.25!important;
}

.ds-btn-outline {
    border: 1.5px solid var(--darkburgundy);
    color: var(--darkburgundy);
    
    font-weight: 600;
    font-size: 0.92rem;
    padding: 12px 24px;
    border-radius: 30px;
    background: transparent;
    transition: all .2s ease;
}

    .ds-btn-outline:hover {
        background: var(--darkburgundy);
        border-color: var(--darkburgundy);
        color: #ffffff;
    }

.ds-flow {
    position: relative;
    min-height: 420px;
    padding: 10px;
    max-width: 100%;
    overflow: hidden;
}

.ds-elbow {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.ds-elbow-v1,
.ds-elbow-v2 {
    position: absolute;
    width: 3px;
    background: var(--burgundy);
    border-radius: 2px;
}

.ds-elbow-h {
    position: absolute;
    height: 3px;
    background: var(--burgundy);
    border-radius: 2px;
}

.ds-elbow-v2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    transform: translateX(-50%);
    border-style: solid;
    border-width: 8px 6px 0 6px;
    border-color: var(--burgundy) transparent transparent transparent;
}

/* Desktop: down → right → down, landing on top edge of the next card */
.ds-elbow--1 .ds-elbow-v1 {
    left: 53px;
    top: 106px;
    height: 23px;
}

.ds-elbow--1 .ds-elbow-h {
    left: 53px;
    top: 129px;
    width: 16%;
}

.ds-elbow--1 .ds-elbow-v2 {
    left: calc(16% + 53px);
    top: 129px;
    height: 23px;
}

.ds-elbow--2 .ds-elbow-v1 {
    left: calc(16% + 53px);
    top: 248px;
    height: 23px;
}

.ds-elbow--2 .ds-elbow-h {
    left: calc(16% + 53px);
    top: 271px;
    width: 12%;
}

.ds-elbow--2 .ds-elbow-v2 {
    left: calc(28% + 53px);
    top: 271px;
    height: 23px;
}

.ds-flow-node {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 72%;
    background: #ffffff;
    border: 1px solid var(--grey);
    border-radius: 16px;
    padding: 8px 18px;
    box-shadow: var(--im-shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .ds-flow-node:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: var(--im-shadow-hover);
    }

.ds-flow-node--1 {
    margin-left: 0;
}

.ds-flow-node--2 {
    margin-left: 16%;
    margin-top: 46px;
}

.ds-flow-node--3 {
    margin-left: 28%;
    margin-top: 46px;
    background: var(--darkburgundy);
    border-color: var(--darkburgundy);
}

    .ds-flow-node--3 .ds-flow-title,
    .ds-flow-node--3 .ds-flow-sub {
        color: #ffffff!important;
    }

    .ds-flow-node--3 .ds-flow-sub {
        color: rgba(255,255,255,0.72);
    }

.ds-flow-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--verylightgrey);
    border: 2px solid var(--burgundy);
    color: var(--burgundy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.ds-flow-icon--final {
    background: var(--burgundy);
    border-color: var(--burgundy);
    color: #ffffff;
}

.ds-flow-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ds-flow-tag {
    
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9a9a9a;
}

.ds-flow-tag--accent {
    color: #fff;
}

.ds-flow-title {
    
    font-weight: 800;
    font-size: 1.05rem;
    color: #000;
}

.ds-flow-sub {
    font-size: 0.8rem;
    color: #7a7a7a;
}

/*.ds-flow-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--burgundy);
    color: #ffffff;
    
    font-weight: 700;
    font-size: 0.78rem;
    padding: 8px 16px;
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(140,42,66,0.35);
    display: flex;
    align-items: center;
    gap: 6px;
    animation: dsFloat 3s ease-in-out infinite;
}*/

@keyframes dsFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@media (max-width: 991.98px) {
    .ds-flow {
        min-height: auto;
        padding: 44px 4px 10px;
        overflow: visible;
    }

    .ds-flow-node {
        width: 92%;
    }

    .ds-flow-node--2 {
        margin-left: 6%;
        margin-top: 24px;
    }

    .ds-flow-node--3 {
        margin-left: 12%;
        margin-top: 24px;
    }

    /*.ds-flow-badge {
        top: 0;
        right: 4%;
    }*/

    .ds-elbow--1 .ds-elbow-v1 {
        left: 47px;
        top: 130px;
        height: 12px;
    }

    .ds-elbow--1 .ds-elbow-h {
        left: 47px;
        top: 142px;
        width: 6%;
    }

    .ds-elbow--1 .ds-elbow-v2 {
        left: calc(6% + 47px);
        top: 142px;
        height: 12px;
    }

    .ds-elbow--2 .ds-elbow-v1 {
        left: calc(6% + 47px);
        top: 240px;
        height: 12px;
    }

    .ds-elbow--2 .ds-elbow-h {
        left: calc(6% + 47px);
        top: 252px;
        width: 6%;
    }

    .ds-elbow--2 .ds-elbow-v2 {
        left: calc(12% + 47px);
        top: 252px;
        height: 12px;
    }
}

/* ---------------------------------------------------------------------
   MANDATE CLARIFY BOX (no / yes rows)
--------------------------------------------------------------------- */
.ds-clarify-box {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ds-clarify-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border-radius: 10px;
    padding: 16px 18px;
    border: 1px solid var(--grey);
}

    .ds-clarify-row i {
        flex: 0 0 auto;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
        margin-top: 2px;
    }

    .ds-clarify-row p {
        margin: 0;
        font-size: 0.95rem;
        color: var(--im-body-text);
    }

.ds-clarify-row--no {
    background: #f8f7f7;
}

    .ds-clarify-row--no i {
        background: #e6e4e5;
        color: #1a1a1a;
    }

.ds-clarify-row--yes {
    background: rgba(140,42,66,0.06);
}

    .ds-clarify-row--yes i {
        background: var(--burgundy);
        color: #ffffff;
    }

/* ---------------------------------------------------------------------
   NOTIFICATION CARD
--------------------------------------------------------------------- */
.ds-notification-card {
    background: #ffffff;
    border: 1px solid var(--grey);
    border-top: 4px solid var(--burgundy);
    border-radius: 14px;
    padding: 20px 28px;
    box-shadow: var(--im-shadow);
}

.ds-notification-icon {
    font-size: 1.6rem;
    color: var(--darkburgundy);
    margin-bottom: 14px;
    display: block;
}

.ds-notification-tag {
    display: inline-block;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: var(--darkburgundy)!important;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.ds-notification-date {
    font-size: 0.85rem;
    color: #7a7a7a;
    margin-bottom: 0;
}

.ds-notification-card hr {
    border-color: var(--grey);
    margin: 18px 0;
}

.ds-notification-card p {
    font-size: 0.92rem;
    color: var(--im-body-text);
}

/* ---------------------------------------------------------------------
   STEP TIMELINE — interactive tabs
--------------------------------------------------------------------- */
#how-it-works{

}
.ds-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 40px;
    gap: 0;
}

.ds-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.ds-step {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(140, 42, 66, 0.06);
    border: none;
    padding: 10px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: background .2s ease;
}

    .ds-step:hover {
        background: rgba(140, 42, 66, 0.06);
    }

.ds-step-num {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--grey);
    color: var(--im-body-text);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

.ds-step.active .ds-step-num {
    background: var(--burgundy);
    border-color: var(--burgundy);
    color: #fff;
}

.ds-step-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--im-body-text);
    transition: color .2s ease;
    white-space: nowrap;
}

.ds-step.active .ds-step-title {
    color: var(--darkburgundy);
}

/* Connecting line */
.ds-step-line {
    width: 50px;
    height: 2px;
    background: var(--grey);
    margin: 25px 4px 0;
}

/* White information box */
.ds-step-info {
    width: 260px;
    min-height: 100px;
    margin-top: 12px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    color: var(--im-body-text);
    font-size: 0.88rem;
    line-height: 1.6;
    text-align: center;
}

/* Hide the old panel if you don't need it */
.ds-step-panels {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}

@media (max-width: 767px) {

    .ds-flow-node { /*iwc added*/
        width: 96%;
    }

    /*.ds-elbow, .ds-elbow--1, .ds-elbow--2, .ds-elbow-v1, .ds-elbow-v2, .ds-elbow-h{
        display:none;
    }*/
    .ds-steps {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .ds-step-item {
        width: 100%;
        align-items: stretch;
    }

    .ds-step {
        width: 100%;
        justify-content: flex-start;
        padding: 10px 12px;
    }

    .ds-step-title {
        white-space: normal;
        text-align: left;
    }

    .ds-step-line {
        width: 2px;
        height: 25px;
        margin: 0 0 0 27px;
    }

    .ds-step-info {
        width: 100%;
        min-height: auto;
        margin: 0 0 15px;
        padding: 18px;
        text-align: left;
    }
}


/*@media (max-width: 575px) {
    .ds-flow-node {*/ /*iwc added*/
        /*width: 95%;
    }

    .ds-elbow, .ds-elbow--1, .ds-elbow--2, .ds-elbow-v1, .ds-elbow-v2, .ds-elbow-h{
        display:none;
    }
}*/
    /* ---------------------------------------------------------------------
   TOGGLE — Direct Settlement vs Invoice Discounting
--------------------------------------------------------------------- */
    .ds-toggle-wrap {
        max-width: 860px;
        margin: 0 auto;
    }

    .ds-toggle {
        position: relative;
        display: flex;
        background: var(--verylightgrey);
        border-radius: 40px;
        padding: 6px;
        margin-bottom: 30px;
        border: 1px solid var(--grey);
    }

    .ds-toggle-btn {
        flex: 1;
        position: relative;
        z-index: 2;
        background: transparent;
        border: none;
        padding: 13px 18px;
        font-weight: 600;
        font-size: 0.9rem;
        color: var(--im-body-text);
        border-radius: 30px;
        transition: color .25s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

        .ds-toggle-btn.active {
            color: #ffffff;
        }

    .ds-toggle-slider {
        position: absolute;
        top: 6px;
        left: 6px;
        width: calc(50% - 6px);
        height: calc(100% - 12px);
        background: var(--darkburgundy);
        background-image: linear-gradient(120deg, var(--darkburgundy), var(--burgundy));
        border-radius: 30px;
        transition: transform .3s cubic-bezier(.65,0,.35,1);
        z-index: 1;
    }

    .ds-toggle-panel {
        display: none;
        animation: dsFadeIn .3s ease;
    }

        .ds-toggle-panel.active {
            display: block;
        }

    .ds-panel-icon {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background: var(--verylightgrey);
        border: 2px solid var(--burgundy);
        color: var(--burgundy);
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 12px;
    }

    .ds-panel-stat {
        font-weight: 800;
        font-size: 1.6rem;
        color: var(--darkburgundy);
    }

    .ds-panel-stat-label {
        font-size: 0.8rem;
        color: #7a7a7a;
    }

    /* ---------------------------------------------------------------------
   FAQ ACCORDION
--------------------------------------------------------------------- */
    .ds-faq-item {
        border-bottom: 1px solid var(--grey);
    }

    .ds-faq-q {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        background: transparent;
        border: none;
        text-align: left;
        padding: 20px 4px;
        font-weight: 600;
        font-size: 1rem;
        color: #000;
        cursor: pointer;
    }

        .ds-faq-q i {
            color: var(--burgundy);
            transition: transform .25s ease;
            flex: 0 0 auto;
        }

        .ds-faq-q[aria-expanded="true"] i {
            transform: rotate(180deg);
        }

    .ds-faq-a {
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }

        .ds-faq-a p {
            padding: 0 4px 20px;
            margin: 0;
            color: var(--im-body-text);
            font-size: 0.95rem;
            line-height: 1.7;
        }

    /* ---------------------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------------------- */
    @media (max-width: 767.98px) {
        .ds-hero {
            padding: 22px 0 64px;
        }

        .ds-steps {
            flex-direction: column;
            align-items: stretch;
        }

        .ds-step {
            justify-content: flex-start;
        }

        .ds-step-line {
            width: 2px;
            height: 24px;
            margin: 0 0 0 25px;
        }

        .ds-step-panel {
            padding: 30px 22px;
        }

        .ds-toggle-btn {
            font-size: 0.78rem;
            padding: 12px 10px;
            gap: 6px;
        }
    }


    /* =========================================================================
   BUTTONS & LINKS — match primary site's CTA language
   ========================================================================= */
    .im-btn-primary {
        background: var(--burgundy);
        border: none;
        color: #fff;
        font-weight: 700;
        font-size: 0.92rem;
        padding: 13px 26px;
        border-radius: 30px;
        transition: background .2s ease, transform .2s ease;
    }

        .im-btn-primary:hover {
            background: var(--charcoal);
            color: #fff;
            transform: translateY(-2px);
        }

    .im-btn-accent {
        background: #fff;
        border: none;
        color: var(--burgundy);
        font-weight: 700;
        font-size: 0.95rem;
        padding: 14px 26px;
        border-radius: 30px;
        transition: background .2s ease, transform .2s ease;
    }

        .im-btn-accent:hover {
            background: var(--charcoal);
            transform: translateY(-2px);
            color: #fff;
        }

    .im-btn-accent-outline {
        background: var(--burgundy);
        border: 2px solid #fff;
        color: #fff;
        font-weight: 700;
        font-size: 0.95rem;
        padding: 12px 26px;
        border-radius: 30px;
        transition: background .2s ease, transform .2s ease;
    }

        .im-btn-accent-outline:hover {
            background: var(--charcoal);
            transform: translateY(-2px);
            color: #fff;
        }