/* aimpayment.com — 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-amount-orange: #f6891e;
    --aim-amount-orange-light: #ffb04a;
    --aim-amount-orange-deep: #e07812;

    --aim-radius-lg: 18px;
    --aim-radius-md: 14px;
    /* Warm shadow for form card on orange hero (avoids cool slate read as “blue”) */
    --aim-shadow-card: 0 14px 42px rgba(90, 45, 12, 0.12);
    --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);

    /* Hero figure size (HTML width/height are hints only; CSS controls display) */
    --hero-person-max-width: 760px;
    --hero-person-max-height: min(92vh, 930px);
    --hero-person-nudge-x: 2.25rem;
}

.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;
}

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

.site-title {
    font-family: 'Caprasimo', Georgia, serif;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: 0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-title .logo-arrow {
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
}

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

.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/v1775160897/common/sp-buckets/img/ap-hero.webp');
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    z-index: 1;
    overflow: hidden;
}

.form-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(520px 360px at 88% 82%, rgba(251, 113, 133, 0.22), rgba(251, 113, 133, 0) 70%);
    filter: blur(0.3px);
    pointer-events: none;
}

.hero-spacer {
    display: none;
}

.hero-spacer-img {
    display: block;
    width: auto;
    height: auto;
    max-width: var(--hero-person-max-width);
    max-height: var(--hero-person-max-height);
    object-fit: contain;
    object-position: bottom right;
    margin-left: auto;
    margin-bottom: 0;
    pointer-events: none;
}

.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: center;
}

.hero-left {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 10px 34px rgba(15, 23, 42, 0.35);
}

.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-line1,
.hero-headline-line2,
.hero-headline-line3 {
    display: block;
}

.hero-highlight {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(251, 113, 133, 0.92), rgba(251, 191, 36, 0.92));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subcopy {
    margin: 0 0 1.25rem 0;
    max-width: 54ch;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.02rem;
    line-height: 1.55;
}

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

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

.hero-feature-icon {
    width: 2.05rem;
    height: 2.05rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--aim-bubble-pink);
    box-shadow: 0 12px 28px rgba(251, 113, 133, 0.35), 0 10px 24px rgba(15, 23, 42, 0.18);
    color: #ffffff;
}

.hero-feature-text {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

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

.hero-trust-line {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    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: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.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;
}

@media (min-width: 768px) {
    /* Allow figure to grow past 50% column; overflow:hidden would clip him */
    .form-section {
        padding: 3rem 0 0;
        overflow: visible;
    }

    .hero-split {
        grid-template-areas: "heroForm heroSpacer";
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.25rem;
        max-width: var(--max-width, 1200px);
        padding: 2.5rem 1rem 0;
        margin: 0 auto;
        justify-items: start;
        align-items: end;
    }

    .hero-split .form-container {
        grid-area: heroForm;
        padding: 0;
        margin-left: 0;
        justify-self: center;
        padding-bottom: 1.5rem;
    }

    .hero-spacer {
        display: flex;
        grid-area: heroSpacer;
        align-items: flex-end;
        justify-content: flex-end;
        align-self: end;
        justify-self: end;
        width: 100%;
        min-height: 0;
        overflow: visible;
    }

    .hero-spacer-img {
        transform: translateX(var(--hero-person-nudge-x));
    }

    .hero-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 58ch;
        gap: 0.9rem 1.25rem;
    }
}

/* Mobile-only: same figure as .hero-spacer when hero person is hidden (<768px) */
.hero-mobile-figure {
    display: flex;
    justify-content: center;
    background: #ffffff;
    padding: 0 1rem 2.5rem;
}

.hero-mobile-figure-img {
    display: block;
    width: auto;
    max-width: min(100%, 420px);
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

@media (min-width: 768px) {
    .hero-mobile-figure {
        display: none;
    }
}

/* Steps */
.steps-section {
    background: #ffffff;
    padding: 3rem 1rem;
}

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

.steps-main-title {
    color: #0f766e;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.steps-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.step {
    text-align: center;
}

.step-icon {
    position: relative;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--aim-teal-700) 0%, var(--aim-teal-500) 100%);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    line-height: 1;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

.step-icon::before {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.18);
    pointer-events: none;
}

.step-icon::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%) rotate(16deg);
    background:
        radial-gradient(circle at 30% 30%, rgba(251, 191, 36, 0.95) 0 35%, rgba(251, 191, 36, 0) 36%),
        radial-gradient(circle at 70% 70%, rgba(251, 113, 133, 0.9) 0 40%, rgba(251, 113, 133, 0) 41%);
    border-radius: 999px;
    pointer-events: none;
    opacity: 0.95;
}

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

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: #0f172a;
}

.step-description {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

@media (min-width: 768px) {
    .steps-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* ---------------------------
   Hero steps responsive grid
   --------------------------- */
#hero-steps {
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    padding: 3rem 1rem;
}

#hero-steps > div:not(.loading-container) {
    display: grid;
    gap: 2rem;
}

@media (max-width: 639.98px) {
    #hero-steps > div:not(.loading-container) {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 640px) and (max-width: 1023.98px) {
    #hero-steps > div:not(.loading-container) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    #hero-steps > div:not(.loading-container) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

#hero-steps h1,
#hero-steps h2,
#hero-steps p {
    grid-column: 1 / -1;
    text-align: center;
    margin: 0 auto;
    max-width: 72ch;
}

/* ---------------------------
   Dummy form (Prime-style flow; teal theme)
   --------------------------- */
#dummy-form-container {
    max-width: 600px;
    margin: 0;
    padding: 2.25rem 1.25rem;
    background: #ffffff;
    border-radius: var(--aim-radius-lg);
    box-shadow: var(--aim-shadow-card);
    border: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(6px);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-step.hidden {
    display: none;
}

#step-1 {
    text-align: center;
}

.form-step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--aim-teal-700);
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    text-align: left;
}

.amount-btn {
    position: relative;
    padding: 1.25rem 1rem;
    border: 2px solid transparent;
    border-radius: var(--aim-radius-md);
    background-image:
        linear-gradient(#f8f9fa, #f8f9fa),
        linear-gradient(
            145deg,
            var(--aim-amount-orange) 0%,
            var(--aim-amount-orange-light) 42%,
            var(--aim-amount-orange-deep) 100%
        );
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    font-size: 1rem;
    font-weight: 500;
    color: var(--aim-ink);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease, filter 180ms ease;
    font-family: 'Inter', system-ui, sans-serif;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.amount-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
}

.amount-btn:hover {
    background-image:
        linear-gradient(#f8f9fa, #f8f9fa),
        linear-gradient(
            145deg,
            var(--aim-amount-orange-light) 0%,
            #ffc878 48%,
            var(--aim-amount-orange) 100%
        );
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    transform: translateY(-3px);
    box-shadow: var(--aim-shadow-lift);
}

.amount-btn.active {
    background-image:
        linear-gradient(#2563eb, #1d4ed8),
        linear-gradient(
            145deg,
            var(--aim-amount-orange) 0%,
            var(--aim-amount-orange-light) 50%,
            var(--aim-amount-orange-deep) 100%
        );
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    border: 2px solid transparent;
    color: #ffffff;
    box-shadow: 0 14px 36px rgba(37, 99, 235, 0.28);
}

.amount-btn.active::before {
    opacity: 0.22;
}

.amount-btn:focus-visible {
    outline: none;
    box-shadow: var(--aim-focus), var(--aim-shadow-lift);
}

.ssl-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #10b981;
    color: #ffffff;
    border-radius: 4px;
    font-size: 0.875rem;
    margin: 0 auto 0.5rem auto;
    font-weight: 600;
}

.ssl-text-bold {
    font-weight: 700;
}

.ssl-text-normal {
    font-weight: 400;
}

.ssl-icon {
    flex-shrink: 0;
}

.ssl-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0.5rem 0 1rem 0;
    text-align: center;
}

.advertising-disclosure {
    text-align: center;
    margin-top: 1rem;
}

.advertising-disclosure a {
    color: #0f766e;
    text-decoration: none;
    font-size: 0.875rem;
}

.advertising-disclosure a:hover {
    text-decoration: underline;
}

#dummy-loan-form {
    max-width: 100%;
}

.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;
    background: linear-gradient(135deg, var(--aim-teal-700) 0%, var(--aim-teal-500) 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    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(15, 118, 110, 0.22);
}

.btn-submit:hover {
    filter: brightness(1.02) saturate(1.05);
    box-shadow: 0 18px 44px rgba(15, 118, 110, 0.26);
    transform: translateY(-1px);
}

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

.btn-submit:focus-visible {
    outline: none;
    box-shadow: var(--aim-focus), 0 18px 44px rgba(15, 118, 110, 0.24);
}

.success-content {
    text-align: center;
    padding: 2rem 0;
}

.success-content h2 {
    color: #0f766e;
    margin-bottom: 1rem;
}

.success-content p {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.selected-amount-display {
    margin-top: 1.5rem;
    font-size: 1.125rem;
}

.selected-amount-display strong {
    color: #0f766e;
    font-size: 1.25rem;
}

@media (max-width: 640px) {
    .amount-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .amount-btn {
        padding: 1rem;
        font-size: 0.9375rem;
    }

    .form-step-title {
        font-size: 1.25rem;
    }
}

/* 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.65rem 1.1rem;
    margin-bottom: 1.25rem;
}

.site-footer .footer-info p {
    margin: 0.35rem 0;
}

.site-footer .copyright {
    margin: 0.75rem 0 0;
}

.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;
}
