/* doublepay.net — Avenue Link */

:root {
    --aim-teal-500: #14b8a6;
    --aim-teal-700: #0f766e;
    --aim-teal-600: #0d9488;
    --aim-ink: #0f172a;
    --aim-slate: #334155;
    --aim-muted: #64748b;
    --aim-border: #e2e8f0;

    --aim-bubble-pink: #fb7185;
    --aim-bubble-coral: #fb7185;
    --aim-bubble-sun: #fbbf24;

    --aim-radius-lg: 18px;
    --aim-radius-md: 14px;
    --aim-shadow-soft: 0 14px 46px rgba(15, 23, 42, 0.14);
    --aim-shadow-lift: 0 12px 28px rgba(15, 23, 42, 0.18);
    --aim-focus: 0 0 0 4px rgba(20, 184, 166, 0.22), 0 0 0 7px rgba(251, 113, 133, 0.18);

    /* Steps icons: purple + teal brand */
    --aim-step-purple-top: #5f1a8a;
    --aim-step-purple-mid: #56187a;
    --aim-step-purple-deep: #4a1469;
    --aim-step-purple-light: #6a1d98;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    max-width: 100%;
    /* Avoid overflow-x: hidden here — it clips the left edge when any child is
       slightly wider than the viewport (e.g. ~1200px layouts in ~1204px DevTools). */
}

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-feature-icon,
    .brand-promo-icon,
    .step-icon {
        transition: none;
    }

    .hero-feature-icon:hover {
        transform: none;
        box-shadow: none;
    }

    .brand-promo-icon:hover {
        transform: none;
        filter: none;
    }

    .brand-promo-icon i {
        animation: none;
    }

    .step-icon:hover {
        transform: none;
        box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
    }

    .dp-brand-mark {
        animation: none;
        background-position: 50% 50%;
    }
}

.disclaimer,
.disclaimer * {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Match hero / brand-promo horizontal inset on large screens (overrides index inline padding). */
.disclaimer {
    padding: 2.25rem clamp(1.25rem, 5vw, 2rem);
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    box-sizing: border-box;
}

.disclaimer-content {
    max-width: var(--max-width, 1200px);
    width: 100%;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
}

.disclaimer-content p {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.site-footer {
    padding: 2.25rem 1rem;
}

.site-title::before {
    content: none;
    display: none;
}

.site-header {
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.12);
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    z-index: 10;
    /* Extra horizontal inset so the logo never kisses the viewport edge (see index inline padding: vertical only). */
    padding-inline: clamp(1rem, 2.5vw, 1.5rem);
}

.header-content {
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    padding: 0 var(--spacing, 1rem);
    width: 100%;
    min-width: 0;
}

.site-title {
    font-weight: 600;
    color: #0f172a;
    letter-spacing: 0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.site-title-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.site-title-link:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 4px;
    border-radius: 6px;
}

/* Header logo — same shape as thebigpanda.com (logo-icon + #site-title-text; no site-title-logo / site-logo on img) */
.site-title .logo-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 0;
}

.site-title .logo-icon img {
    display: block;
    height: 2.7rem;
    width: auto;
    max-width: min(336px, 100%);
    object-fit: contain;
    object-position: left center;
}

/* Brand promo band (matches form button purple) */
.brand-promo {
    background:
        radial-gradient(ellipse 100% 120% at 50% -20%, rgba(255, 255, 255, 0.1) 0%, transparent 55%),
        linear-gradient(135deg, #5f1a8a 0%, #56187A 55%, #4a1469 100%);
    color: #ffffff;
    padding: 2.25rem 1rem;
    text-align: center;
}

.brand-promo-inner {
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem 1.5rem;
}

.brand-promo-icon {
    flex-shrink: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(3.75rem, min(14vw, 18vh), 7rem);
    line-height: 1;
    transition:
        transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1),
        filter 0.26s ease;
}

.brand-promo-icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.22));
}

/* Notdog Duo: primary = light; secondary / highlight = softer tint of section purple (#56187A) */
.brand-promo-icon i {
    --fa-primary-color: rgba(255, 255, 255, 0.98);
    --fa-secondary-color: #c9b8e8;
    --fa-secondary-opacity: 1;
    display: inline-block;
    transform-origin: 50% 60%;
    /* ~0.85s shake, then 3s rest before repeat (3.85s total) */
    animation: brand-promo-icon-shake 3.85s linear infinite;
}

@keyframes brand-promo-icon-shake {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    3% {
        transform: translate3d(-4px, 1px, 0) rotate(-5deg);
    }

    7% {
        transform: translate3d(4px, -1px, 0) rotate(5deg);
    }

    10% {
        transform: translate3d(-3px, 0, 0) rotate(-4deg);
    }

    13% {
        transform: translate3d(3px, 1px, 0) rotate(4deg);
    }

    16.5% {
        transform: translate3d(-2px, 0, 0) rotate(-2deg);
    }

    20% {
        transform: translate3d(2px, 0, 0) rotate(2deg);
    }

    22%,
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
}

.brand-promo-copy {
    flex: 0 1 auto;
    max-width: 52ch;
    min-width: 0;
    text-align: left;
}

.brand-promo-title {
    margin: 0 0 0.65rem 0;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #ffffff;
}

.brand-promo-text {
    margin: 0;
    max-width: none;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

@media (max-width: 767.98px) {
    .brand-promo-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .brand-promo-copy {
        text-align: center;
    }
}

/* Form hero background */
.form-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.hero-split {
    position: relative;
    z-index: 2;
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    padding: 2.25rem 1rem 2.75rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    justify-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

.hero-left {
    color: #333333;
    text-shadow: none;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.hero-headline {
    margin: 0 0 0.75rem 0;
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.hero-headline-kicker {
    display: block;
    font-size: clamp(0.6875rem, 1.35vw, 0.8125rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--aim-muted);
    margin: 0 0 0.5rem 0;
}

.hero-headline-line1,
.hero-headline-line2,
.hero-headline-line3 {
    display: block;
}

.hero-highlight {
    color: #333333;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.dp-brand-mark {
    display: inline-block;
    background-image: linear-gradient(
        122deg,
        #022c22 0%,
        #064e3b 14%,
        #0f766e 32%,
        #5eead4 48%,
        #14b8a6 58%,
        #0d9488 72%,
        #064e3b 88%,
        #022c22 100%
    );
    background-size: 280% 280%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: hero-brand-gradient-shift 4s ease-in-out infinite alternate;
}

/* Lighter gradient on purple so “Double Pay” stays readable */
.brand-promo .dp-brand-mark {
    background-image: linear-gradient(
        122deg,
        #f0fdfa 0%,
        #ccfbf1 14%,
        #ffffff 28%,
        #5eead4 46%,
        #a7f3d0 58%,
        #99f6e4 72%,
        #ecfdf5 88%,
        #ffffff 100%
    );
    filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.55));
}

@keyframes hero-brand-gradient-shift {
    0% {
        background-position: 0% 35%;
    }

    100% {
        background-position: 100% 65%;
    }
}

.hero-subcopy {
    margin: 0 0 1.25rem 0;
    max-width: 54ch;
    color: #333333;
    font-size: 1.02rem;
    line-height: 1.55;
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin: 0 0 1.5rem 0;
    max-width: 50ch;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.hero-feature-icon {
    width: 2.46rem;
    height: 2.46rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #56187A;
    box-shadow: none;
    color: #ffffff;
    font-size: 1.2rem;
    transition:
        transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.22s ease;
}

.hero-feature-icon:hover {
    transform: scale(1.14);
    box-shadow: 0 10px 24px rgba(86, 24, 122, 0.42);
}

.hero-feature-icon i {
    text-shadow: none;
}

.hero-feature-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: #333333;
}

@media (max-width: 1279.98px) {
    .hero-headline {
        font-size: 36px;
    }

    .hero-left {
        text-align: center;
    }

    .hero-subcopy {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-features {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-feature {
        justify-content: center;
    }
}

.hero-trust {
    margin-top: 1rem;
    display: grid;
    gap: 0.6rem;
}

.hero-trust-line {
    margin: 0;
    color: #333333;
    font-size: 0.95rem;
}

.hero-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem 0.85rem;
}

.hero-avatars {
    display: inline-flex;
    align-items: center;
}

.hero-avatar {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.75);
    background: linear-gradient(135deg, rgba(251, 113, 133, 0.9), rgba(20, 184, 166, 0.85));
    margin-left: -10px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.22);
}

.hero-avatar:first-child {
    margin-left: 0;
}

.hero-stars {
    color: rgba(251, 191, 36, 0.96);
    letter-spacing: 0.12em;
    text-shadow: 0 8px 22px rgba(15, 23, 42, 0.25);
}

.hero-rating-text {
    color: #333333;
    font-size: 0.95rem;
}

.form-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 420px;
    background-image: url('https://res.cloudinary.com/dbtcg826q/image/upload/v1774454805/common/sp-buckets/img/dpay-hero.webp');
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    z-index: 1;
    overflow: hidden;
}

/* Tablet / mobile: still fill the hero (cover); only adjust crop / min-height */
@media (max-width: 1279.98px) {
    .form-background {
        background-size: cover;
        background-position: center 22%;
    }
}

@media (max-width: 767.98px) {
    .form-background {
        background-size: cover;
        background-position: center 18%;
        min-height: 360px;
    }
}

.form-background::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    /* Large moving wash; mix-blend-mode lets it read clearly on the photo */
    background: linear-gradient(
        122deg,
        rgba(13, 148, 136, 0.78) 0%,
        rgba(20, 184, 166, 0.52) 22%,
        rgba(255, 255, 255, 0.52) 48%,
        rgba(86, 24, 122, 0.6) 78%,
        rgba(15, 118, 110, 0.72) 100%
    );
    opacity: 0.9;
    background-size: 320% 320%;
    background-position: 10% 30%;
    mix-blend-mode: soft-light;
    filter: saturate(1.15) contrast(1.05);
}

@media (prefers-reduced-motion: reduce) {
    .form-background::before {
        filter: none;
        background-position: 50% 50%;
        background-size: 200% 200%;
    }
}

/* Image-only background version (saved for later use)
.form-background {
    background-image: url('https://res.cloudinary.com/dbtcg826q/image/upload/v1774453867/common/sp-buckets/img/bg.webp');
}
*/

.form-background::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.3);
}

.form-container {
    position: relative;
    z-index: 2;
    background: transparent;
    padding: 1rem;
    min-height: 0;
    max-width: none;
    margin: 0 auto;
    box-shadow: none;
    border-radius: 0;
}

/* Live iframe embed (card on #loan-form-container; replaces dummy multi-step form) */
.hero-split .form-container#loan-form-container {
    width: min(100%, 600px);
    max-width: min(100%, 600px);
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    background: #ffffff;
    border-radius: var(--aim-radius-lg);
    box-shadow: var(--aim-shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-sizing: border-box;
    overflow: hidden;
}

#loan-form-container #form-frame {
    display: block;
    width: 100%;
    min-height: 500px;
    border: none;
    overflow: hidden;
}

@media (min-width: 768px) {
    .form-section {
        padding: 0;
    }

    .hero-split {
        padding: 2.5rem 1rem 3.25rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
        max-width: 58ch;
        gap: 0.9rem;
    }
}

@media (min-width: 1280px) {
    /* Side-by-side: wider row gives the form column more room */
    .hero-split {
        max-width: min(1400px, 100%);
        grid-template-columns: 1fr 1.12fr;
        gap: 2.25rem;
        align-items: center;
        justify-items: stretch;
    }

    .hero-left {
        text-align: left;
    }

    .hero-subcopy {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-features {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-feature {
        justify-content: flex-start;
    }

    .form-container {
        min-width: 0;
        /* Let the shell align to content width; outer hero-split padding handles inset */
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 1279.98px) {
    .form-section {
        padding: 0;
    }

    /* Tablet + mobile: restore horizontal inset (0 was flush to edges) and add breathing room */
    .hero-split {
        padding: 3.25rem clamp(1.25rem, 5vw, 2rem) 3.75rem;
        gap: 2.5rem;
    }

    .hero-headline {
        margin-bottom: 1rem;
    }

    .hero-subcopy {
        margin-bottom: 1.5rem;
    }

    .hero-features {
        gap: 1rem;
        margin-bottom: 1.75rem;
    }

    .form-container {
        padding: 1.5rem clamp(1.25rem, 5vw, 2rem);
    }

    /* Purple promo band: match hero / form horizontal inset */
    .brand-promo {
        padding: 3.25rem clamp(1.25rem, 5vw, 2rem) 3.75rem;
    }

    .disclaimer {
        padding: 3.25rem clamp(1.25rem, 5vw, 2rem) 3.75rem;
    }

    .site-footer {
        padding: 3.25rem clamp(1.25rem, 5vw, 2rem) 3.75rem;
    }
}

@media (max-width: 767.98px) {
    .hero-split {
        padding-top: 3.75rem;
        padding-bottom: 4rem;
        gap: 2.75rem;
    }

    .brand-promo {
        padding-top: 3.75rem;
        padding-bottom: 4rem;
    }

    .disclaimer {
        padding-top: 3.75rem;
        padding-bottom: 4rem;
    }

    .site-footer {
        padding-top: 3.75rem;
        padding-bottom: 4rem;
    }

    .hero-headline {
        font-size: calc(36px * 1.2);
        margin-bottom: 1.125rem;
    }

    .hero-subcopy {
        margin-bottom: 1.75rem;
    }

    .hero-features {
        gap: 1.125rem;
        margin-bottom: 2rem;
    }
}

/* Steps (How it works) */
.steps-section {
    position: relative;
    background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
    overflow: hidden;
}

.steps-section::before,
.steps-section::after {
    content: none;
}

.steps-layout {
    position: relative;
    z-index: 1;
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
}

.steps-header {
    text-align: center;
    margin-bottom: 2.75rem;
}

.steps-main-title {
    color: #1e293b;
    font-size: clamp(1.35rem, 2.8vw, 1.9rem);
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.steps-subtitle {
    color: #64748b;
    font-size: 1.02rem;
    margin: 0;
    max-width: 52ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.steps-flow {
    position: relative;
    z-index: 1;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 0.25rem;
}

.steps-connector {
    display: none;
    position: absolute;
    left: 8%;
    right: 8%;
    top: 2.35rem;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(196, 181, 253, 0.85), rgba(244, 114, 182, 0.55), rgba(196, 181, 253, 0.85));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    z-index: 0;
}

@media (min-width: 768px) {
    .steps-connector {
        display: block;
    }
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .steps-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
        align-items: start;
    }
}

.step {
    text-align: center;
    margin: 0;
}

.step-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 1.15rem;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 1.15rem;
    color: #ffffff;
    font-size: 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
    transition:
        transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.24s ease;
}

.step-icon:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.22);
}

.step-icon--1 {
    background: linear-gradient(180deg, var(--aim-step-purple-light) 0%, var(--aim-step-purple-mid) 45%, var(--aim-step-purple-deep) 100%);
}

.step-icon--2 {
    background: linear-gradient(180deg, var(--aim-teal-500) 0%, var(--aim-teal-600) 45%, var(--aim-teal-700) 100%);
}

.step-icon--3 {
    background: linear-gradient(145deg, var(--aim-step-purple-top) 0%, var(--aim-step-purple-mid) 35%, var(--aim-teal-600) 72%, var(--aim-teal-700) 100%);
}

.step-icon i {
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.2));
}

/* Hero: larger icon tiles; glyph size (.step-icon font-size) unchanged */
#hero-steps .step-icon {
    width: 5.1rem;
    height: 5.1rem;
    border-radius: 1.38rem;
}

@media (min-width: 768px) {
    #hero-steps .steps-connector {
        top: 2.775rem;
    }
}

.step-card {
    background: #ffffff;
    border-radius: 1.1rem;
    padding: 1.35rem 1.75rem 1.45rem;
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.028),
        0 18px 42px rgba(15, 23, 42, 0.075);
    border: 1px solid rgba(226, 232, 240, 0.9);
    text-align: center;
    max-width: 320px;
    margin: 0 auto;
}

@media (max-width: 1279.98px) {
    .step-card {
        max-width: none;
    }
}

.step-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #334155;
}

.step-description {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

.steps-cta {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.steps-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: var(--aim-radius-md);
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    font-family: 'Inter', system-ui, sans-serif;
    border: 2px solid transparent;
    background-image:
        linear-gradient(135deg, #5f1a8a 0%, #56187A 55%, #4a1469 100%),
        linear-gradient(135deg, #a855f7 0%, #ec4899 55%, #d946ef 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 16px 36px rgba(86, 24, 122, 0.22);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.steps-cta-btn:hover {
    filter: brightness(1.03) saturate(1.05);
    box-shadow: 0 18px 44px rgba(168, 85, 247, 0.28);
    transform: translateY(-1px);
}

.steps-cta-btn:active {
    transform: translateY(1px);
}

.steps-cta-btn:focus-visible {
    outline: none;
    box-shadow: var(--aim-focus), 0 18px 44px rgba(168, 85, 247, 0.22);
}

#loan-form-container {
    scroll-margin-top: 5rem;
    width: 100%;
    box-sizing: border-box;
}

/* ---------------------------
   Hero steps section shell
   --------------------------- */
#hero-steps {
    max-width: none;
    margin: 0 auto;
    padding: 5rem 1rem 3.5rem;
}

@media (max-width: 1279.98px) {
    #hero-steps {
        padding: 5rem 1.75rem 3.5rem;
    }
}

#hero-steps .steps-layout {
    width: 100%;
}

/* Shared form controls (e.g. unsubscribe-form.html popup) */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #0f172a;
    font-size: 0.875rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Inter', system-ui, sans-serif;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.form-group input:focus-visible {
    outline: none;
    box-shadow: var(--aim-focus);
    border-color: var(--aim-teal-500);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    color: #ffffff;
    border: 2px solid transparent;
    border-radius: 6px;
    box-sizing: border-box;
    background-image:
        linear-gradient(135deg, #5f1a8a 0%, #56187A 55%, #4a1469 100%),
        linear-gradient(135deg, #a855f7 0%, #ec4899 55%, #d946ef 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
    font-family: 'Inter', system-ui, sans-serif;
    box-shadow: 0 16px 36px rgba(86, 24, 122, 0.22);
}

.btn-submit:hover {
    filter: brightness(1.03) saturate(1.05);
    box-shadow: 0 18px 44px rgba(168, 85, 247, 0.28);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(1px);
}

.btn-submit:focus-visible {
    outline: none;
    box-shadow: var(--aim-focus), 0 18px 44px rgba(168, 85, 247, 0.22);
}

/* Footer */
.site-footer .footer-content {
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    text-align: center;
}

.site-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem 0.85rem;
    line-height: 1.5;
}

.site-footer .footer-links a {
    white-space: normal;
}

.site-footer .footer-info {
    margin-top: 1rem;
}

.site-footer .copyright {
    margin-top: 1.25rem;
}

.site-footer .footer-links a {
    color: #ffffff;
    text-decoration: underline;
}

.site-footer .footer-links a:hover {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
}

#footer-company,
#footer-site-name {
    font-style: normal;
}
