/* ============================================================
   Smile Journey Widget — magnet-2
   Prefix: sjw-   (no overlap with ggr-, dcn-, mgn-)
   ============================================================ */

:root {
    --sjw-ink:        #1a2535;
    --sjw-muted:      #667085;
    --sjw-line:       #e8eaed;
    --sjw-paper:      #ffffff;
    --sjw-soft:       #f3f4f4;
    --sjw-blue:       #4a7dff;
    --sjw-blue-hover: #3468f5;
    --sjw-soft-blue:  rgba(74, 125, 255, 0.12);
    --sjw-cyan:       #5ec4f5;
    --sjw-navy:       #0a1929;
    --sjw-panel:      #f8fafc;
    --sjw-panel-line: #dfe6f2;
    --sjw-shadow:     0 12px 30px rgb(26 37 53 / 0.08), 0 1px 3px rgb(26 37 53 / 0.08);
    --sjw-ease:       180ms ease;
}

/* ── Page wrapper ─────────────────────────────────────────── */

.sjw-page {
    position: relative;
    width: min(100%, 710px);
    padding: 28px 0;
}

/* FormBuilder instance for Zahir's backend — visually hidden, still submittable via JS. */
/* Timeline backend form — lives on blog post page (#lm-timeline-backend). */
#lm-timeline-backend.sjw-lead-form-source {
    position: absolute !important;
    left: -9999px !important;
    top: 0 !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    z-index: -1 !important;
}

.sjw-page .sjw-lead-form-source {
    position: absolute !important;
    left: -9999px !important;
    top: 0 !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    z-index: -1 !important;
}

/* ── Card ─────────────────────────────────────────────────── */

.sjw-card {
    width: 100%;
    border: 1px solid var(--sjw-line);
    border-radius: 14px;
    background: var(--sjw-paper);
    box-shadow: var(--sjw-shadow);
    overflow: hidden;
}

/* ── Header ───────────────────────────────────────────────── */

.sjw-header {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 38%);
    gap: 24px;
    align-items: center;
    padding: 34px 30px 30px;
    background: linear-gradient(135deg, #09182b 0%, #0e2440 55%, #142f52 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.sjw-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
    z-index: -1;
}

.sjw-header::after {
    content: '';
    position: absolute;
    top: -110px;
    right: -90px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 125, 255, 0.22) 0%, transparent 65%);
    pointer-events: none;
    z-index: -1;
}

.sjw-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.sjw-kicker::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sjw-cyan);
    flex: 0 0 auto;
    box-shadow: 0 0 8px var(--sjw-cyan);
}

.sjw-title {
    margin: 0;
    color: #ffffff;
    font-family: "Cal Sans", Arial, sans-serif;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: 0;
    max-width: 380px;
}

.sjw-date-accent {
    color: var(--sjw-cyan);
    white-space: nowrap;
}

.sjw-subtitle {
    margin: 11px 0 0;
    color: rgba(255, 255, 255, 0.56);
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.5;
}

/* ── Dark header: scoped element overrides ────────────────── */

.sjw-header .sjw-date-pill {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.72);
}

.sjw-header .sjw-date-pill--end {
    background: #f5a726;
    border-color: #f5a726;
    color: #09182b;
}

.sjw-header .sjw-dates-sep {
    color: rgba(255, 255, 255, 0.2);
}

.sjw-header .sjw-route-track {
    background: rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

.sjw-header .sjw-route-dot {
    border-color: rgba(255, 255, 255, 0.24);
    background: #172d4c;
    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.16);
}

.sjw-header .sjw-route-dot--done {
    border-color: var(--sjw-blue);
    background: var(--sjw-blue);
    box-shadow: 0 0 0 4px rgba(74, 125, 255, 0.13), 0 7px 16px rgba(0, 0, 0, 0.16);
}

.sjw-header .sjw-route-dot--active {
    border-color: rgba(255, 255, 255, 0.85);
    background: var(--sjw-blue);
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.12), 0 0 24px rgba(74, 125, 255, 0.58);
}

.sjw-header .sjw-route-icon {
    opacity: 0.82;
    filter: brightness(0) invert(1);
}

.sjw-header .sjw-route-dot--done .sjw-route-icon,
.sjw-header .sjw-route-dot--active .sjw-route-icon {
    opacity: 1;
}

.sjw-header .sjw-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.sjw-header .sjw-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: none;
}

.sjw-header .sjw-toggle-btn.sjw-toggle-btn--open {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.sjw-header .sjw-toggle-btn.sjw-toggle-btn--open:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: none;
}

/* ── Route column (right side of header) ─────────────────── */

.sjw-route-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.sjw-dates-row {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.sjw-date-pill {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--sjw-line);
    border-radius: 999px;
    padding: 4px 11px;
    font-size: 10px;
    font-weight: 600;
    color: var(--sjw-muted);
    letter-spacing: 0.3px;
}

.sjw-date-pill--end {
    background: var(--sjw-blue);
    border-color: var(--sjw-blue);
    color: #fff;
}

.sjw-dates-sep {
    color: var(--sjw-line);
    font-size: 11px;
}

/* Route strip */

.sjw-route-strip {
    position: relative;
    height: 46px;
}

.sjw-route-track {
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 4px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 99px;
    transform: translateY(-50%);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.07);
}

.sjw-route-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--sjw-blue);
    border-radius: 99px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sjw-route-dots {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sjw-route-dot {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #d7dde8;
    background: var(--sjw-paper);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    box-shadow: 0 5px 14px rgb(26 37 53 / 0.1), inset 0 0 0 1px rgb(255 255 255 / 0.75);
    transition: border-color var(--sjw-ease), background-color var(--sjw-ease), box-shadow var(--sjw-ease);
}

.sjw-route-icon {
    display: block;
    width: 24px;
    height: 24px;
    margin: 0;
    max-width: none;
    object-fit: contain;
    opacity: 0.88;
}

.sjw-route-dot--done .sjw-route-icon,
.sjw-route-dot--active .sjw-route-icon {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.sjw-route-dot--done {
    border-color: var(--sjw-blue);
    background: var(--sjw-blue);
}

.sjw-route-dot--active {
    border-color: var(--sjw-blue);
    background: var(--sjw-blue);
    box-shadow: 0 0 0 4px var(--sjw-soft-blue), 0 2px 6px rgb(0 0 0 / 0.1);
}

/* Toggle button */

.sjw-toggle-btn {
    appearance: none;
    border: 0;
    border-radius: 8px;
    min-height: 42px;
    padding: 0 14px;
    background: var(--sjw-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    white-space: nowrap;
    letter-spacing: 0.1px;
    transition: background-color var(--sjw-ease), box-shadow var(--sjw-ease), border-color var(--sjw-ease);
}

.sjw-toggle-btn:hover {
    background: var(--sjw-blue-hover);
}

.sjw-toggle-btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px var(--sjw-soft-blue);
}

.sjw-toggle-btn.sjw-toggle-btn--open {
    background: var(--sjw-soft);
    color: var(--sjw-muted);
    box-shadow: none;
}

.sjw-toggle-btn.sjw-toggle-btn--open:hover {
    background: var(--sjw-line);
    box-shadow: none;
    transform: none;
}

/* ── Expandable section ───────────────────────────────────── */

.sjw-expand-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.34s ease;
}

.sjw-card.sjw-is-open .sjw-expand-wrap {
    grid-template-rows: 1fr;
}

.sjw-expand-inner {
    overflow: hidden;
}

.sjw-expand-content {
    padding: 22px 28px 26px;
    background:
        linear-gradient(180deg, #ffffff 0%, var(--sjw-panel) 100%);
}

/* ── Minimal step guide ───────────────────────────────────── */

.sjw-stepper-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px 10px 10px 14px;
    border: 1px solid var(--sjw-panel-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 1px 2px rgb(26 37 53 / 0.04);
}

.sjw-stepper-meta {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
}

.sjw-stepper-label {
    min-width: 0;
    overflow: hidden;
    color: var(--sjw-ink);
    font-size: 12.5px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sjw-stepper-date {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 0 10px 0 8px;
    border: 1px solid rgba(74, 125, 255, 0.2);
    border-radius: 8px;
    background: #eef4ff;
    color: var(--sjw-blue);
    font-size: 11.5px;
    font-weight: 700;
}

.sjw-stepper-date-icon {
    display: block;
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.sjw-stepper-dots {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 5px;
}

.sjw-step-dot {
    appearance: none;
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: #d5dce8;
    cursor: pointer;
    transition: width var(--sjw-ease), background-color var(--sjw-ease), box-shadow var(--sjw-ease);
}

.sjw-step-dot--active {
    width: 22px;
    background: var(--sjw-blue);
    box-shadow: none;
}

.sjw-step-dot:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px var(--sjw-soft-blue);
}

.sjw-stepper-controls {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 4px;
}

.sjw-stepper-button {
    appearance: none;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--sjw-panel-line);
    border-radius: 8px;
    padding: 0;
    background: var(--sjw-paper);
    color: var(--sjw-ink);
    cursor: pointer;
    transition: border-color var(--sjw-ease), background-color var(--sjw-ease), color var(--sjw-ease), box-shadow var(--sjw-ease);
}

.sjw-stepper-arrow {
    display: block;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.sjw-stepper-button--prev .sjw-stepper-arrow {
    transform: rotate(180deg);
}

.sjw-stepper-button:hover,
.sjw-stepper-button:focus-visible {
    border-color: var(--sjw-blue);
    background: var(--sjw-blue);
    color: #ffffff;
    outline: 0;
}

/* ── Detail card ──────────────────────────────────────────── */

@keyframes sjwDetailBodyShift {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes sjwDetailIconShift {
    from { opacity: 0; transform: translateX(-8px) scale(0.94); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes sjwDetailGlowSweep {
    from { transform: translateX(-18px); opacity: 0.45; }
    to   { transform: translateX(0); opacity: 1; }
}

.sjw-detail-card {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    border: 1px solid var(--sjw-panel-line);
    border-radius: 12px;
    padding: 21px 18px 20px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 2px rgb(26 37 53 / 0.04);
    overflow: hidden;
    transition: box-shadow var(--sjw-ease);
}

.sjw-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    border-radius: 0 0 999px 999px;
    background: var(--sjw-blue);
    z-index: 0;
}

.sjw-detail-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(74, 125, 255, 0.045), transparent 42%);
    pointer-events: none;
    z-index: 0;
}

.sjw-detail-icon-wrap,
.sjw-detail-body {
    position: relative;
    z-index: 1;
}

.sjw-detail-card.sjw-is-changing .sjw-detail-body {
    animation: sjwDetailBodyShift 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.sjw-detail-card.sjw-is-changing .sjw-detail-icon-wrap {
    animation: sjwDetailIconShift 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.sjw-detail-card.sjw-is-changing::after {
    animation: sjwDetailGlowSweep 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.sjw-detail-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: var(--sjw-blue);
    border: 1px solid rgba(74, 125, 255, 0.32);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    box-shadow: 0 8px 18px rgba(74, 125, 255, 0.18);
}

.sjw-detail-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
}

.sjw-detail-icon-img {
    display: block;
    width: 34px;
    height: 34px;
    margin: 0;
    max-width: none;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.sjw-detail-body {
    min-width: 0;
    will-change: transform, opacity;
}


.sjw-detail-title {
    margin: 0 0 5px;
    color: var(--sjw-ink);
    font-family: "Cal Sans", Arial, sans-serif;
    font-size: 20px;
    line-height: 1.05;
    letter-spacing: 0;
}

.sjw-detail-copy {
    margin: 0;
    color: var(--sjw-muted);
    font-size: 13.5px;
    line-height: 1.5;
}

/* ── CTA box ──────────────────────────────────────────────── */

.sjw-cta-box {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    border-radius: 12px;
    padding: 18px;
    background: linear-gradient(135deg, #09182b 0%, #0e2440 55%, #142f52 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
    overflow: visible;
    transition: box-shadow var(--sjw-ease);
}

.sjw-cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
    z-index: 0;
}

.sjw-cta-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    border-radius: 0 0 999px 999px;
    background: rgba(94, 196, 245, 0.7);
    pointer-events: none;
    z-index: 0;
}

.sjw-cta-text,
.sjw-cta-actions,
.sjw-cta-success {
    position: relative;
    z-index: 1;
}

.sjw-cta-actions {
    min-width: 0;
    overflow: visible;
    position: relative;
    z-index: 4;
}

.sjw-cta-box.sjw-cta-box--highlighted {
    box-shadow: 0 0 0 3px rgba(74, 125, 255, 0.35);
}

.sjw-cta-title {
    margin: 0 0 4px;
    color: #ffffff;
    font-family: "Cal Sans", Arial, sans-serif;
    font-size: 18px;
    letter-spacing: 0;
    line-height: 1.08;
}

.sjw-cta-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12.5px;
    line-height: 1.4;
}

.sjw-cta-form {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
    min-width: 0;
    position: relative;
    z-index: 5;
}

.sjw-cta-form .iti {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    width: 200px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-right: 0;
    border-radius: 10px 0 0 10px;
    background: rgba(255, 255, 255, 0.12);
    overflow: visible;
    --iti-hover-color: rgba(255, 255, 255, 0.08);
}

.sjw-cta-form .iti__country-container {
    z-index: 2;
    background: transparent !important;
}

.sjw-cta-form button.iti__selected-country {
    appearance: none;
    -webkit-appearance: none;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #ffffff;
    height: 100%;
    min-height: 44px;
}

.sjw-cta-form .iti__selected-country,
.sjw-cta-form .iti__selected-country-primary {
    background: transparent !important;
    background-color: transparent !important;
}

.sjw-cta-form .iti__selected-country-primary {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 6px 0 10px;
}

.sjw-cta-form .iti__selected-dial-code {
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    margin-right: 2px;
}

.sjw-cta-form .iti__arrow {
    margin-left: 4px;
    border-top-color: rgba(255, 255, 255, 0.75);
}

.sjw-cta-form .iti--allow-dropdown .iti__country-container:not(:has(+ input[disabled])):not(:has(+ input[readonly])) .iti__selected-country-primary:hover,
.sjw-cta-form .iti--allow-dropdown .iti__country-container:not(:has(+ input[disabled])):not(:has(+ input[readonly])) .iti__selected-country:has(+ .iti__dropdown-content:hover) .iti__selected-country-primary {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.sjw-cta-input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border: 0;
    border-radius: 0;
    padding: 0 12px;
    background: transparent;
    color: #ffffff;
    font-size: 13px;
    outline: 0;
}

.sjw-cta-form .iti:focus-within {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.sjw-cta-input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.sjw-cta-input:focus {
    outline: 0;
    box-shadow: none;
}

/* Country dropdown portal (rendered on body) */
body > .iti--container {
    z-index: 10050 !important;
}

body > .iti--container .iti__dropdown-content {
    border-radius: 10px;
    border: 1px solid #dfe6f2;
    box-shadow: 0 12px 28px rgba(9, 24, 43, 0.22);
    overflow: hidden;
}

body > .iti--container .iti__country-list {
    max-height: 220px;
}

.sjw-cta-submit {
    appearance: none;
    border: 0;
    border-bottom-right-radius: 10px;
    border-top-right-radius: 10px;
    min-height: 44px;
    padding: 0 12px;
    background: linear-gradient(180deg, #4a7dff 0%, #3f70f3 100%);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color var(--sjw-ease), box-shadow var(--sjw-ease);
}

.sjw-cta-submit svg {
    display: block;
    width: 18px;
    height: auto;
}

.sjw-cta-submit:hover {
    background: linear-gradient(180deg, #3468f5 0%, #2f5fe5 100%);
}

.sjw-cta-submit:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(74, 125, 255, 0.35);
}

.sjw-cta-success {
    display: none;
    color: #6ee7b7;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.sjw-cta-box.sjw-cta-box--submitting .sjw-cta-submit {
    opacity: 0.72;
    cursor: wait;
    pointer-events: none;
}

.sjw-cta-box.sjw-cta-box--submitted .sjw-cta-form {
    display: none;
}

.sjw-cta-box.sjw-cta-box--submitted .sjw-cta-success {
    display: block;
}

/* ── Disclaimer ───────────────────────────────────────────── */

.sjw-disclaimer {
    margin: 0;
    color: var(--sjw-muted);
    font-size: 11px;
    line-height: 1.4;
    opacity: 0.65;
    text-align: center;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 640px) {
    .sjw-page {
        padding: 12px;
    }

    .sjw-header {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 26px 20px 22px;
    }

    .sjw-title {
        font-size: 24px;
        max-width: 100%;
    }

    .sjw-subtitle {
        font-size: 13px;
    }

    .sjw-route-col {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sjw-dates-row {
        justify-content: space-between;
        grid-column: auto;
    }

    .sjw-route-strip {
        grid-row: auto;
        grid-column: auto;
        align-self: center;
        height: 42px;
    }

    .sjw-route-track {
        left: 18px;
        right: 18px;
    }

    .sjw-route-dot {
        width: 36px;
        height: 36px;
    }

    .sjw-route-icon {
        width: 21px;
        height: 21px;
    }

    .sjw-toggle-btn {
        grid-row: auto;
        grid-column: auto;
        width: 100%;
        min-width: 0;
    }

    .sjw-expand-content {
        padding: 16px 14px 20px;
    }

    .sjw-stepper-row {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 7px;
        border-radius: 12px;
        padding: 8px;
    }

    .sjw-stepper-meta {
        grid-column: auto;
        gap: 6px;
    }

    .sjw-stepper-date {
        min-height: 22px;
        padding: 0 8px 0 7px;
        font-size: 10.5px;
    }

    .sjw-stepper-date-icon {
        width: 13px;
        height: 13px;
    }

    .sjw-stepper-label {
        font-size: 11.5px;
    }

    .sjw-stepper-dots {
        grid-column: auto;
        grid-row: auto;
        gap: 4px;
    }

    .sjw-step-dot {
        width: 6px;
        height: 6px;
    }

    .sjw-step-dot--active {
        width: 16px;
    }

    .sjw-stepper-controls {
        grid-column: auto;
        grid-row: auto;
    }

    .sjw-stepper-button {
        width: 26px;
        height: 26px;
    }

    .sjw-detail-card {
        grid-template-columns: 56px minmax(0, 1fr);
        align-items: start;
        gap: 13px;
        padding: 20px 14px 16px;
        border-radius: 12px;
    }

    .sjw-detail-icon-wrap {
        width: 56px;
        height: 56px;
        border-radius: 12px;
    }

    .sjw-detail-icon,
    .sjw-detail-icon-img {
        width: 30px;
        height: 30px;
    }

    .sjw-detail-title {
        font-size: 20px;
    }

    .sjw-detail-copy {
        font-size: 13.5px;
    }

    .sjw-cta-box {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px 16px;
    }

    .sjw-cta-form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .sjw-cta-form .iti {
        width: 100%;
    }

    .sjw-cta-input {
        width: 100%;
    }

    .sjw-cta-success {
        max-width: 100%;
    }
}

@media (max-width: 400px) {
    .sjw-title {
        font-size: 22px;
    }

    .sjw-kicker {
        font-size: 10px;
        letter-spacing: 1.8px;
    }

    .sjw-stepper-meta {
        gap: 5px;
    }

    .sjw-stepper-date {
        flex-basis: auto;
    }

    .sjw-cta-form {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0;
    }

    .sjw-cta-input {
        width: 100%;
        border: 0;
        border-radius: 0;
    }

    .sjw-cta-submit {
        width: auto;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sjw-detail-card.sjw-is-changing .sjw-detail-body,
    .sjw-detail-card.sjw-is-changing .sjw-detail-icon-wrap,
    .sjw-detail-card.sjw-is-changing::after {
        animation: none;
    }
}
[dir="rtl"] .sjw-stepper-button--prev .sjw-stepper-arrow {
    transform: rotate(0deg); /* RTL'de geri oku sağa bakmalı */
}

[dir="rtl"] .sjw-stepper-button--next .sjw-stepper-arrow {
    transform: rotate(180deg); /* RTL'de ileri oku sola bakmalı */
}

[dir="rtl"] .sjw-cta-form {
    flex-direction: row-reverse; 
}
