/* ============================================================
   HOW IT WORKS PAGE — Optional Widget Overrides & Custom Helpers
   ============================================================ */

/* ── Services Cutout Card Background Image ── */
.hiw-cutout-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    border-radius: 32px;
    z-index: 1;
    -webkit-mask-image: radial-gradient(circle 52px at calc(100% - 36.5px) 36.5px, transparent 99%, #000 100%);
    mask-image: radial-gradient(circle 52px at calc(100% - 36.5px) 36.5px, transparent 99%, #000 100%);
}

.hiw-cutout-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 71, 80, 0.85) 0%, rgba(13, 43, 62, 0.55) 100%);
    border-radius: 32px;
    z-index: 1.1;
    -webkit-mask-image: radial-gradient(circle 52px at calc(100% - 36.5px) 36.5px, transparent 99%, #000 100%);
    mask-image: radial-gradient(circle 52px at calc(100% - 36.5px) 36.5px, transparent 99%, #000 100%);
}

/* ── Journey Timeline Interactive Steps ── */
.hiw-journey__step {
    cursor: pointer;
}

.hiw-journey__step-content {
    display: none;
}

.hiw-journey__step-content.active {
    display: block;
}

/* ── Visa Section Styles & Figma Alignment ── */
.hiw-visa__title span {
    color: var(--asar-accent); /* #d5992d */
    font-family: 'Roca One', var(--font-heading);
    font-weight: 300;
}

.hiw-btn--secondary {
    background: #fcf6ee;
    color: #004750;
    box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.1);
    border: none;
}

.hiw-btn--secondary:hover {
    background: #fbf0e2;
    color: #00363d;
    transform: translateY(-2px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

.hiw-btn--secondary svg path {
    stroke: #004750;
}

/* Visa Cards Button (White Circle, Teal Arrow) */
.hiw-visa .hiw-cutout-card__btn {
    background: #fff;
    border: 1px solid rgba(0, 71, 80, 0.1);
    color: var(--asar-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.hiw-visa .hiw-cutout-card:hover .hiw-cutout-card__btn {
    background: var(--asar-accent);
    color: #fff;
    border-color: var(--asar-accent);
    transform: rotate(45deg);
}

/* Visa Cards Typography (Figma: Title 44px Satoshi Bold, Desc 20px Satoshi Regular) */
.hiw-visa .hiw-cutout-card {
    min-height: 273px;
    padding: 36px;
}

.hiw-visa .hiw-cutout-card__title {
    font-family: var(--font-subheading);
    font-size: clamp(1.4rem, 2.2vw, 2.2rem); /* Rescales nicely up to 35px */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.hiw-visa .hiw-cutout-card__desc {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.1vw, 1.15rem); /* approx 18-20px */
    line-height: 1.55;
    opacity: 0.9;
}

/* ── Support Section Styles & Figma Alignment ── */
.hiw-support__heading {
    font-family: 'Roca One', var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 4rem); /* 64px Roca One */
    font-weight: 700;
    color: var(--asar-primary); /* Dedicated Support for (Teal) */
    text-align: center;
    margin-bottom: 64px;
    line-height: 1.15;
}

.hiw-support__heading span {
    font-family: 'Roca One', var(--font-heading);
    color: var(--asar-dark); /* International Patients (Dark blue) */
    font-weight: 300;
}

.hiw-support-card {
    background: #fff8f0; /* Soft light peach color from Figma */
    min-height: 233px;
    padding: 32px;
    border-radius: 32px;
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.15);
    border: none;
}

.hiw-support-card__title {
    font-family: var(--font-subheading);
    font-size: clamp(1.25rem, 1.8vw, 1.875rem); /* 30px Satoshi Bold */
    font-weight: 700;
    color: #000000;
    line-height: 1.3;
}

/* Fix stroke-based SVG icons so they render as clean lines, not solid blobs */
.hiw-support-card__icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8px;
    width: 28px;
    height: 28px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Custom background icon wrappers matching Figma specific classes */
.hiw-support-card:nth-child(4) .hiw-support-card__icon,
.hiw-support-card:nth-child(5) .hiw-support-card__icon {
    background: rgba(74, 84, 103, 0.15); /* Grey/slate wrapper */
    color: #4a5467;
}

/* ── CTA Section Styles & Figma Alignment ── */
.hiw-cta__title {
    font-family: 'Roca One', var(--font-heading);
    font-size: clamp(2rem, 3.8vw, 4rem); /* 64px Roca One Bold */
    font-weight: 700;
    line-height: 1.15;
}

.hiw-cta__subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 1.4vw, 1.5rem); /* 24px Satoshi Regular */
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.hiw-cta__btns {
    display: flex;
    gap: 35px;
    align-items: center;
    margin-top: 12px;
}

.hiw-cta__btns .hiw-btn {
    height: 72px;
    border-radius: 16px;
    font-size: clamp(1.1rem, 1.4vw, 1.5rem); /* 24px Satoshi Bold */
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    flex: 1;
    min-width: 320px;
    max-width: 422px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    border: none;
    text-transform: none;
    letter-spacing: normal;
}

/* Primary Button 1 (Get Free Medical Opinion) - Dark Blue/Black */
.hiw-cta__btns .hiw-btn--dark {
    background: #031b2b;
    color: #ffffff;
}

.hiw-cta__btns .hiw-btn--dark:hover {
    background: #082d46;
    transform: translateY(-2px);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.25);
}

/* Primary Button 2 (Talk to a Patient Coordinator) - Soft Peach Background, Gold Border, Gold Text */
.hiw-cta__btns .hiw-btn--gold-outline {
    background: #fff8f0;
    border: 2px solid #d5992d;
    color: #d5992d;
}

.hiw-cta__btns .hiw-btn--gold-outline:hover {
    background: #fbf0e2;
    color: #b78122;
    border-color: #b78122;
    transform: translateY(-2px);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
}
