/* ==========================================================================
   HOW IT WORKS PAGE CUSTOM STYLES
   ========================================================================== */

/* --- Page Variables & Setup --- */
:root {
    --forest-green: #0e3e2b;
    --muted-purple: #5c578a;
    --sage-bg: #e2ebe6;
    --sticky-yellow: #f8f1c8;
    --sticky-green: #d2ebd8;
    --notepad-bg: #faf7f2;
    --dashed-border: rgba(28, 28, 46, 0.2);
}

.how-it-works-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* background-color: #ffffff; */
    border: 1.5px solid var(--dark-navy);
    border-radius: 100px;
    padding: 6px 14px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--dark-navy);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.how-it-works-badge-dot {
    width: 7px;
    height: 7px;
    background-color: var(--orange);
    border-radius: 50%;
    flex-shrink: 0;
}

/* --- Hero & Top Section --- */
.hiw-hero {
    padding-top: 50px;
    padding-bottom: 60px;
}

.hiw-heading {
    font-family: 'Georgia', serif;
    font-size: clamp(38px, 5.5vw, 68px);
    font-weight: 500;
    line-height: 1.08;
    color: var(--dark-navy);
    margin-bottom: 20px;
}

.hiw-heading span.claim-process-wrap {
    font-family: 'Georgia', serif;
    display: inline-block;
    position: relative;
    white-space: nowrap;
}

.hiw-heading .wavy-underline {
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 14px;
    pointer-events: none;
}

.hiw-desc {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--text-mid);
    max-width: 580px;
    margin-bottom: 0;
}

/* --- Tilted Notebook (Top Right) --- */
.notepad-container {
    position: relative;
    padding: 20px 20px 20px 35px;
    background-color: #f5f0e6;
    border: 1px solid rgba(28, 28, 46, 0.08);
    border-radius: 6px;
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.04),
        0 2px 4px rgba(0, 0, 0, 0.02);
    min-height: 280px;
    transform: rotate(10deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.notepad-container:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.06),
        0 4px 10px rgba(0, 0, 0, 0.03);
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .notepad-container {
        transform: rotate(5deg);
        padding: 20px 15px 20px 30px;
    }

    .notepad-item {
        font-size: 23px;
    }
}

/* Binder Holes Style */
.notepad-binder-holes {
    position: absolute;
    left: 14px;
    top: 20px;
    bottom: 20px;
    width: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 10;
}

.binder-hole {
    width: 10px;
    height: 10px;
    background-color: var(--cream);
    border: 1px solid rgba(28, 28, 46, 0.15);
    border-radius: 50%;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.12);
}

/* Notepad Lines background */
.notepad-paper {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 15px;
    padding-left: 10px;
}

.notepad-item {
    font-family: 'Patrick Hand', 'Caveat', cursive;
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-navy);
    line-height: 1.5;
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    white-space: nowrap;
}

/* Sticky Green Tape - Centered at top */
.sticky-tape {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%) rotate(5deg);
    width: 85px;
    height: 25px;
    background-color: #71AB7D;
    border-left: 2px dashed rgba(255, 255, 255, 0.3);
    border-right: 2px dashed rgba(255, 255, 255, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    z-index: 5;
    pointer-events: none;
}

/* Red Handdrawn line */
.notepad-red-line {
    width: 70%;
    height: auto;
    margin: 8px 0 15px 35px;
    pointer-events: none;
}

/* Mountain Sketch inside Notepad */
.notepad-mountain-sketch {
    width: 130px;
    height: auto;
    align-self: flex-end;
    margin-top: auto;
    margin-right: 15px;
    opacity: 0.85;
}

/* --- Timeline section --- */
.timeline-section {
    padding-top: 50px;
    padding-bottom: 80px;
    position: relative;
}

.timeline-outer {
    position: relative;
    max-width: 1050px;
    margin: 0 auto;
}

/* Dotted vertical connector */
.timeline-line {
    position: absolute;
    left: 45px;
    top: 120px;
    /* Starts exactly at the bottom of the circle 01 badge */
    bottom: 50px;
    width: 2px;
    background-image: linear-gradient(to bottom, #0e3e2b 40%, transparent 40%);
    background-size: 2px 14px;
    background-repeat: repeat-y;
    z-index: 1;
    pointer-events: none;
}

/* Step container row */
.timeline-step-row {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 90px;
    z-index: 2;
}

.timeline-step-row:last-child {
    margin-bottom: 0;
}

/* Horizontal separator line between steps */
.timeline-step-row::after {
    content: '';
    position: absolute;
    bottom: -45px;
    left: 45px;
    right: 0;
    height: 1px;
    background-color: #cdcdcd;
}

.timeline-step-row:last-child::after {
    display: none;
}

/* Left column (Number badge) */
.step-badge-col {
    width: 90px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.step-number-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Georgia', serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    z-index: 5;
    transition: transform 0.25s ease;
}

.step-number-circle.green {
    background-color: var(--forest-green);
}

.step-number-circle.purple {
    background-color: var(--muted-purple);
}

.timeline-step-row:hover .step-number-circle {
    transform: scale(1.12);
}

/* Middle column (Illustration container) */
.step-visual-col {
    width: 320px;
    flex-shrink: 0;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.step-illustration-wrap {
    width: 250px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
}

/* Custom interactive SVGs hover styles */
.step-illustration-wrap svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-illustration-wrap:hover svg {
    transform: translateY(-8px) scale(1.03);
}

/* Sticky notes inside illustrations */
.inner-sticky-note {
    position: absolute;
    padding: 10px 12px;
    border-radius: 2px;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.06);
    font-family: 'Caveat', cursive;
    font-size: 17px;
    font-weight: 700;
    color: var(--dark-navy);
    line-height: 1.1;
    text-align: center;
    z-index: 6;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.sticky-note-y {
    background-color: var(--sticky-yellow);
    border: 1px solid rgba(245, 213, 114, 0.4);
}

.sticky-note-g {
    background-color: var(--sticky-green);
    border: 1px solid rgba(141, 213, 181, 0.4);
}

/* Sticky note offsets for specific steps */
.step-row-1 .inner-sticky-note {
    right: 5px;
    bottom: 25px;
    transform: rotate(4deg);
}

.step-row-2 .inner-sticky-note {
    right: 0px;
    bottom: 25px;
    transform: rotate(-3deg);
}

.step-row-4 .inner-sticky-note {
    right: 15px;
    bottom: 45px;
    transform: rotate(5deg);
}

.timeline-step-row:hover .inner-sticky-note {
    transform: rotate(0deg) scale(1.05);
}

/* Curved Green Arrow on Step 3 */
/* .step-row-3 .step-visual-col::before {
    content: '';
    position: absolute;
    left: -20px;
    bottom: 0px;
    width: 44px;
    height: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44' fill='none' stroke='%230e3e2b' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M8 30 C12 20, 24 16, 32 20'/%3E%3Cpath d='M25 21 L32 20 L31 13'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
} */

/* Right column (Text content) */
.step-content-col {
    flex-grow: 1;
    padding-left: 20px;
}

.step-title {
    font-family: 'Georgia', serif;
    font-size: 28px;
    font-weight: 500;
    color: var(--dark-navy);
    margin-bottom: 12px;
    transition: color 0.25s;
}

.timeline-step-row:hover .step-title {
    color: var(--orange);
}

.step-desc {
    font-family: var(--font-body);
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--text-mid);
    max-width: 520px;
    margin-bottom: 0;
}

/* --- Bottom Note/Banner Section --- */
.bottom-note-section {
    padding-bottom: 60px;
}

.what-todo-notepad {
    position: relative;
    background-color: #f5f0e6;
    border: 2px solid rgba(28, 28, 46, 0.12);
    border-radius: 8px;
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.04),
        0 2px 4px rgba(0, 0, 0, 0.02);
    padding: 35px 35px 35px 50px;
}

/* Paperclip accessories */
.notepad-paperclip {
    position: absolute;
    top: -8px;
    left: 25px;
    width: 28px;
    height: 52px;
    pointer-events: none;
    z-index: 10;
    transform: rotate(-8deg);
}

.notepad-binder-holes {
    position: absolute;
    left: 18px;
    top: 25px;
    bottom: 25px;
    width: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 5;
}

.binder-hole {
    width: 12px;
    height: 12px;
    background-color: var(--cream);
    border: 1px solid rgba(28, 28, 46, 0.15);
    border-radius: 50%;
    box-shadow: inset 1.5px 1.5px 3px rgba(0, 0, 0, 0.12);
}

/* Sticky Green Tape - Centered at top, override for bottom note top-right alignment */
.what-todo-notepad .sticky-tape {
    left: auto;
    right: 40px;
    top: -12px;
    transform: rotate(4deg);
}

/* Left Title block */
.todo-title-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.todo-title {
    font-family: 'Caveat', cursive;
    /* font-size: 38px; */
    font-weight: 700;
    color: var(--dark-navy);
    line-height: 1.1;
    transform: rotate(-1.5deg);
    margin-bottom: 12px;
    text-align: center;
}

.todo-underline-vector {
    width: 160px;
    height: 8px;
    margin-bottom: 15px;
}

.todo-arrow-vector {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%) rotate(5deg);
    width: 44px;
    height: auto;
}

/* Right columns layout */
.todo-cols-wrap {
    display: flex;
    align-items: center;
}

.todo-col-item {
    padding: 10px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    position: relative;
}

/* Vertical dashed dividers */
.todo-col-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    width: 1.5px;
    height: 70%;
    border-right: 2.5px dashed rgba(28, 28, 46, 0.15);
}

.what-todo-notepad .row>div:last-child .todo-col-item::after {
    display: none;
}

.todo-icon-outer {
    width: 80px;
    height: 80px;
    margin-bottom: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.25s ease;
}

.todo-col-item:hover .todo-icon-outer {
    transform: translateY(-4px) scale(1.08);
}

.todo-icon-outer svg,
.todo-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.todo-text {
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--dark-navy);
    line-height: 1.45;
    max-width: 180px;
    margin-bottom: 0;
}

/* --- CTA Section ("Did we reach out to you?") --- */
.reach-out-section {
    padding-bottom: 70px;
}

.reach-out-banner {
    position: relative;
    background-color: var(--sage-bg);
    /* border: 1.5px solid rgba(28, 28, 46, 0.18); */
    border-radius: 20px;
    padding: 50px 30px;
    overflow: visible;
}

/* Compass and pine trees grid style backgrounds */
.banner-decor-left {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.compass-wrap {
    position: relative;
    width: 200px;
    height: 200px;
    cursor: pointer;
}

.compass-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.35s cubic-bezier(0.25, 1.25, 0.5, 1.25);
}

.compass-wrap:hover .compass-img {
    transform: scale(1.08) rotate(8deg);
}

.banner-decor-right {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}

.pine-trees-right-img {
    width: 150px;
    height: auto;
    opacity: 0.95;
    transition: transform 0.3s ease;
}

.reach-out-banner:hover .pine-trees-right-img {
    transform: translateY(-4px);
}

/* Desktop Absolute Overlapping Layout */
@media (min-width: 992px) {
    .compass-wrap {
        position: absolute;
        left: -35px;
        /* Pull further out to overlap more */
        top: 50%;
        transform: translateY(-50%);
        width: 480px;
        /* Even bigger clock! */
        height: 480px;
        z-index: 2;
    }

    .compass-wrap:hover .compass-img {
        transform: scale(1.08) rotate(8deg);
    }

    .pine-trees-right-img {
        position: absolute;
        right: -25px;
        /* Pull further out to overlap more */
        top: 50%;
        transform: translateY(-50%);
        width: 480px;
        /* Even bigger tree! */
        height: auto;
        z-index: 2;
    }

    .reach-out-banner:hover .pine-trees-right-img {
        transform: translateY(-50%) translateY(-6px) scale(1.02);
    }
}

/* Laptop Viewport Adjustments (992px to 1199.98px) to prevent overlap with middle text */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .compass-wrap {
        width: 250px;
        height: 250px;
        left: -20px;
    }

    .pine-trees-right-img {
        width: 190px;
        right: -15px;
    }
}

/* Center Content */
.reach-out-content {
    text-align: center;
    z-index: 5;
    position: relative;
}

.reach-out-title {
    font-family: 'Georgia', serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 500;
    color: var(--dark-navy);
    margin-bottom: 8px;
}

.reach-out-subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    /* color: var(--text-mid); */
    margin-bottom: 28px;
}

.reach-out-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.btn-schedule-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--orange);
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 14px 40px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 4px 14px rgba(232, 90, 43, 0.25);
    transition: background-color 0.25s, transform 0.2s, box-shadow 0.25s;
}

.btn-schedule-call:hover {
    background-color: #d04b1d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 90, 43, 0.35);
}

.btn-schedule-call svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn-why-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: var(--dark-navy) !important;
    border: 1.5px solid var(--dark-navy);
    border-radius: 8px;
    padding: 14px 40px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    width: 100%;
    max-width: 320px;
    transition: background-color 0.25s, color 0.25s, transform 0.2s;
}

.btn-why-contact:hover {
    background-color: var(--dark-navy);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.p-color {
    color: rgb(14, 62, 43);
}

/* ==========================================================================
   RESPONSIVENESS & MEDIA QUERIES
   ========================================================================== */

@media (max-width: 991.98px) {

    .hiw-desc {
        max-width: 100%;
        font-size: 15.5px;
    }

    .timeline-step-row::after {
        left: 30px;
    }

    /* Hero notepad adjustments */
    .notepad-container {
        margin-top: 30px;
        transform: none;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }

    .notepad-container:hover {
        transform: translateY(-3px);
    }

    /* Timeline adjustments */
    .timeline-line {
        left: 30px;
        top: 100px;
        /* Starts exactly at the bottom of the circle 01 badge on tablet */
    }

    .step-badge-col {
        width: 60px;
    }

    .step-number-circle {
        width: 50px;
        height: 50px;
        font-size: 19px;
    }

    .step-visual-col {
        width: 260px;
    }

    .step-illustration-wrap {
        width: 210px;
        height: 150px;
    }

    /* What do I have to do notepad */
    .what-todo-notepad {
        padding: 30px 24px 30px 40px;
    }

    .todo-cols-wrap {
        margin-top: 25px;
    }

    .todo-col-item {
        padding: 5px 12px;
    }

    .todo-col-item::after {
        display: none;
    }

    /* Did we reach out */
    .banner-decor-left {
        justify-content: center;
        margin-bottom: 20px;
    }

    .banner-decor-right {
        justify-content: center;
        margin-top: 20px;
    }
}

@media (max-width: 767.98px) {

    /* Step layouts change to stacked style */
    .timeline-line {
        display: none;
    }

    .timeline-step-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 70px;
        border: 1px solid rgba(28, 28, 46, 0.06);
        background-color: rgba(255, 255, 255, 0.4);
        padding: 24px 20px;
        border-radius: 12px;
    }

    .timeline-step-row::after {
        display: none;
    }

    .step-badge-col {
        width: auto;
        margin-bottom: 15px;
    }

    .step-visual-col {
        width: 100%;
        margin-bottom: 15px;
        padding: 0;
    }

    .step-content-col {
        padding-left: 0;
        width: 100%;
    }

    .step-desc {
        margin-left: auto;
        margin-right: auto;
    }

    /* Notepad item list columns */
    .todo-cols-wrap {
        flex-direction: column;
        gap: 20px;
    }

    .todo-col-item {
        width: 100%;
    }

    .todo-col-item::after {
        display: none;
    }

    .todo-col-item {
        border-bottom: 1.5px dashed var(--dashed-border);
        padding-bottom: 20px;
    }

    .todo-col-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .todo-title-wrap {
        align-items: center;
        text-align: center;
    }

    .todo-arrow-vector {
        display: none;
    }

    /* Reset banner images to normal flow on mobile */
    .compass-wrap {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    .pine-trees-right-img {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 130px;
        height: auto;
        margin: 0 auto;
        display: block;
    }

    .banner-decor-left,
    .banner-decor-right {
        justify-content: center;
        margin: 0;
    }
}

@media (max-width: 575.98px) {
    .hiw-hero {
        padding-top: 30px;
        padding-bottom: 40px;
    }

    .hiw-desc {
        font-size: 14.5px;
        line-height: 1.5;
    }

    .notepad-container {
        padding: 15px 15px 15px 30px;
    }

    .notepad-item {
        font-size: 20px;
    }

    .what-todo-notepad {
        padding: 25px 15px 25px 25px;
    }
}

.what-todo-notepad {
    padding: 25px 15px 25px 25px;
}

/* Image Illustration Styles & Hover Effects */
.hiw-step-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-illustration-wrap:hover .hiw-step-img {
    transform: translateY(-8px) scale(1.03);
}

/* Heading Underline (Dynamic & Responsive) */
.hiw-underline-wrap {
    display: inline-block;
    position: relative;
    white-space: nowrap;
    font-family: 'Georgia', serif;
}

.hiw-underline {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 8px;
    pointer-events: none;
}