/* cushionfinance.com — Avenue Link */

/* ─── Fonts ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Karla:wght@400;500;600&display=swap');

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Karla', system-ui, sans-serif;
    color: #1a0533;
    background: #ffffff;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* ─── Site Header ────────────────────────────────────────────── */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #E9D5FF;
    padding: 0.9rem 1.25rem;
}

.header-content {
    max-width: 1120px;
    margin: 0 auto;
}

.site-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(120deg, #581C87 0%, #7E22CE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.01em;
    margin: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(88, 28, 135, 0.3));
}

/* ─── Hero / Form Section ────────────────────────────────────── */
.form-section {
    position: relative;
    min-height: 520px;
    padding: 3rem 1.25rem;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Deep plum-to-violet gradient */
.form-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg, #1A0533 0%, #3B0764 40%, #581C87 80%, #6D28D9 100%);
    z-index: 0;
}

/* Floating radial glow blobs */
.form-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 650px 500px at -5% 110%, rgba(167, 139, 250, 0.22) 0%, transparent 65%),
        radial-gradient(ellipse 450px 350px at 108% -5%,  rgba(192, 132, 252, 0.2)  0%, transparent 60%),
        radial-gradient(ellipse 350px 350px at 60% 80%,   rgba(109, 40,  217, 0.35) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

/* Diagonal shimmer stripe */
.form-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 35%,
        rgba(196, 181, 253, 0.06) 50%,
        transparent 65%
    );
    z-index: 2;
    pointer-events: none;
}

/* ─── Hero Layout ────────────────────────────────────────────── */
.hero-split {
    position: relative;
    z-index: 10;
    max-width: 1120px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

.hero-spacer { display: none; }

/* ─── Form Container Panel ───────────────────────────────────── */
.form-container {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow:
        0 28px 80px rgba(58, 7, 100, 0.45),
        0 0 0 1px rgba(192, 132, 252, 0.2);
    overflow: hidden;
    flex-shrink: 0;
    margin: 0 auto;
}

/* ─── Dummy Form ─────────────────────────────────────────────── */
#dummy-form-container {
    padding: 1.75rem 1.75rem 2rem;
}

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

.form-step-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a0533;
    text-align: center;
    margin: 0 0 1.25rem;
    line-height: 1.35;
}

/* ─── Loan Amount Grid ───────────────────────────────────────── */
.amount-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.amount-btn {
    font-family: 'Karla', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #581C87;
    background: #FAF5FF;
    border: 1.5px solid #E9D5FF;
    border-radius: 10px;
    padding: 0.625rem 0.75rem;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: center;
    line-height: 1.2;
}

.amount-btn:hover {
    background: #F3E8FF;
    border-color: #A855F7;
    color: #3B0764;
}

.amount-btn.active {
    background: linear-gradient(135deg, #7E22CE 0%, #581C87 100%);
    border-color: transparent;
    color: #ffffff;
}

/* ─── SSL Badge ──────────────────────────────────────────────── */
.ssl-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: #7C3AED;
    margin-bottom: 0.35rem;
}

.ssl-text-bold { font-weight: 700; color: #3B0764; }
.ssl-icon { color: #16a34a; }

.ssl-description {
    text-align: center;
    font-size: 0.72rem;
    color: #7C3AED;
    margin: 0 0 0.5rem;
}

.advertising-disclosure {
    text-align: center;
    font-size: 0.72rem;
    margin: 0;
}

.advertising-disclosure a {
    color: #7E22CE;
    text-decoration: none;
}

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

/* ─── Form Fields ────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #3B0764;
    margin-bottom: 0.35rem;
}

.form-group input {
    width: 100%;
    font-family: 'Karla', sans-serif;
    font-size: 0.9375rem;
    color: #1a0533;
    background: #FAF5FF;
    border: 1.5px solid #DDD6FE;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.form-group input:focus {
    border-color: #7E22CE;
    box-shadow: 0 0 0 3px rgba(126, 34, 206, 0.12);
    background: #ffffff;
}

.form-group input::placeholder { color: #C4B5FD; }

/* ─── Submit Button ──────────────────────────────────────────── */
.btn-submit {
    width: 100%;
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #9333EA 0%, #7E22CE 50%, #581C87 100%);
    border: none;
    border-radius: 11px;
    padding: 0.875rem 1.5rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 20px rgba(88, 28, 135, 0.4);
    margin-top: 0.5rem;
    letter-spacing: 0.01em;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(88, 28, 135, 0.52);
}

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

/* ─── Success Message ────────────────────────────────────────── */
.success-content { text-align: center; padding: 1rem 0; }

.success-content .form-step-title {
    background: linear-gradient(120deg, #581C87, #9333EA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.success-content p {
    font-size: 0.9375rem;
    color: #4C1D95;
    margin-bottom: 0.5rem;
}

.selected-amount-display {
    font-size: 0.875rem;
    color: #7C3AED;
    margin-top: 0.75rem;
}

/* ─── Steps Section ──────────────────────────────────────────── */
.steps-section {
    background: linear-gradient(180deg, #FAF5FF 0%, #F5F0FF 60%, #F3E8FF 100%);
    padding: 4.5rem 1.25rem;
    position: relative;
}

/* Warm violet radial wash */
.steps-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 500px at 50% -5%, rgba(167, 139, 250, 0.15) 0%, transparent 70%),
        radial-gradient(600px 400px at 90% 100%, rgba(192, 132, 252, 0.1) 0%, transparent 65%);
    pointer-events: none;
}

.steps-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.steps-main-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 700;
    background: linear-gradient(120deg, #3B0764 0%, #7E22CE 60%, #A855F7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    margin: 0 0 0.6rem;
}

.steps-subtitle {
    font-size: 1rem;
    color: #7C3AED;
    margin: 0;
    font-style: italic;
    font-family: 'Lora', Georgia, serif;
}

/* ─── Steps Container ────────────────────────────────────────── */
.steps-container {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

/* ─── Step Cards ─────────────────────────────────────────────── */
.step {
    background: #ffffff;
    border: 1px solid #E9D5FF;
    border-radius: 16px;
    padding: 2.25rem 1.75rem 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
    animation: step-rise 0.5s ease both;
}

.step:nth-child(2) { animation-delay: 0.1s; }
.step:nth-child(3) { animation-delay: 0.2s; }

@keyframes step-rise {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Gradient left bar accent */
.step::before {
    content: "";
    position: absolute;
    top: 20%;
    bottom: 20%;
    left: 0;
    width: 3px;
    background: linear-gradient(to bottom, #C084FC, #7E22CE, #581C87);
    border-radius: 0 3px 3px 0;
    transition: top 0.24s ease, bottom 0.24s ease;
}

/* Ghost step numeral — Lora serif, plum tint */
.step::after {
    content: attr(data-step);
    position: absolute;
    bottom: -0.5rem;
    right: 0.9rem;
    font-family: 'Lora', Georgia, serif;
    font-size: 5.5rem;
    font-weight: 700;
    color: rgba(126, 34, 206, 0.07);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    transition: color 0.24s;
}

.step:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(88, 28, 135, 0.14);
    border-color: #DDD6FE;
}

.step:hover::before {
    top: 10%;
    bottom: 10%;
}

.step:hover::after {
    color: rgba(126, 34, 206, 0.12);
}

/* ─── Step Icon ──────────────────────────────────────────────── */
.step-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #F3E8FF 0%, #E9D5FF 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    font-size: 1.25rem;
    color: #7E22CE;
    transition: transform 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.step:hover .step-icon {
    transform: scale(1.1) rotate(-3deg);
    background: linear-gradient(135deg, #9333EA 0%, #581C87 100%);
    color: #ffffff;
}

/* ─── Step Text ──────────────────────────────────────────────── */
.step-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a0533;
    margin: 0 0 0.5rem;
}

.step-description {
    font-size: 0.9rem;
    color: #6D28D9;
    line-height: 1.65;
    margin: 0;
    opacity: 0.75;
}

/* ─── Additional Content ─────────────────────────────────────── */
#additional-content:empty { display: none; }

/* ─── Disclaimer ─────────────────────────────────────────────── */
.disclaimer {
    background: #FAF5FF;
    border-top: 1px solid #E9D5FF;
    padding: 2rem 1.25rem;
}

.disclaimer-content {
    max-width: 960px;
    margin: 0 auto;
}

.disclaimer p {
    font-size: 0.75rem;
    color: #7C3AED;
    line-height: 1.65;
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

.disclaimer p:last-child { margin-bottom: 0; }

/* ─── Footer (stacked) ───────────────────────────────────────── */
.footer-stacked {
  --brand-color:       #7E22CE;
  --brand-color-hover: #581C87;
  --brand-color-ring:  rgba(126, 34, 206, .35);

  --fc2-bg:        #FAFAF7;
  --fc2-ink:       #1A1A1A;
  --fc2-ink-soft:  #333333;
  --fc2-muted:     #666666;
  --fc2-dim:       #888888;
  --fc2-rule:      #ECECE6;

  background: var(--fc2-bg);
  color: var(--fc2-ink);
  font-family: 'Karla', system-ui, sans-serif;
  border-top: 1px solid var(--fc2-rule);
  box-sizing: border-box;
}
.footer-stacked *, .footer-stacked *::before, .footer-stacked *::after { box-sizing: border-box; }

.footer-stacked .footer-inner { padding: 28px 22px 22px; }

.footer-stacked .band { padding-bottom: 36px; }
.footer-stacked .kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fc2-dim);
  font-weight: 600;
  margin-bottom: 8px;
}
.footer-stacked .band-heading {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  line-height: 1.2;
  color: var(--fc2-ink);
}
.footer-stacked .band-sub {
  font-size: 13.5px;
  color: var(--fc2-muted);
  line-height: 1.55;
  margin: 0 0 18px;
}
.footer-stacked .band-actions { display: flex; flex-direction: column; gap: 8px; }

.footer-stacked .ca {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--brand-color);
  color: #ffffff;
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background .15s ease, transform .12s ease;
  text-align: left;
}
.footer-stacked .ca .ca-text { display: block; min-width: 0; }
.footer-stacked .ca .ca-label { display: block; }
.footer-stacked .ca .ca-sub {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.8;
  margin-top: 2px;
}
.footer-stacked .ca::after {
  content: "→";
  font-size: 16px;
  opacity: 0.85;
  margin-left: 16px;
  flex-shrink: 0;
  transition: transform .15s ease;
}
.footer-stacked .ca:hover, .footer-stacked .ca:focus-visible {
  background: var(--brand-color-hover);
  outline: none;
}
.footer-stacked .ca:hover::after, .footer-stacked .ca:focus-visible::after { transform: translateX(2px); }
.footer-stacked .ca:focus-visible { box-shadow: 0 0 0 3px var(--brand-color-ring); }
.footer-stacked .ca:active { transform: translateY(1px); }

.footer-stacked .links { display: flex; flex-direction: column; }
.footer-stacked .links-brand { display: none; }
.footer-stacked .links-col { display: flex; flex-direction: column; }

.footer-stacked .col-title {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fc2-dim);
  font-weight: 500;
  margin: 25px 0 0;
}
.footer-stacked .links-col:first-of-type .col-title { margin-top: 0; }

.footer-stacked .col-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--fc2-rule);
  color: var(--fc2-ink-soft);
  font-size: 14px;
  text-decoration: none;
  transition: color .15s ease;
  cursor: pointer;
}
.footer-stacked .col-link::after {
  content: "›";
  font-size: 14px;
  color: #BBBBBB;
  transition: color .15s ease, transform .15s ease;
}
.footer-stacked .col-link:hover, .footer-stacked .col-link:focus-visible {
  color: var(--brand-color);
  outline: none;
}
.footer-stacked .col-link:hover::after, .footer-stacked .col-link:focus-visible::after {
  color: var(--brand-color);
  transform: translateX(2px);
}

.footer-stacked .legal {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--fc2-rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--fc2-dim);
  text-align: center;
}
.footer-stacked .legal-copy { line-height: 1.5; }
.footer-stacked .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-stacked .legal-links a {
  color: var(--fc2-dim);
  text-decoration: none;
  transition: color .15s ease;
}
.footer-stacked .legal-links a:hover, .footer-stacked .legal-links a:focus-visible {
  color: var(--brand-color);
  outline: none;
}

@media (min-width: 768px) {
  .footer-stacked .footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 56px; }

  .footer-stacked .band {
    display: grid;
    grid-template-columns: 1fr minmax(420px, 520px);
    gap: 48px;
    align-items: center;
    padding: 44px 0 40px;
    border-bottom: 1px solid var(--fc2-rule);
  }
  .footer-stacked .band-heading { font-size: 28px; letter-spacing: -0.02em; margin-bottom: 8px; }
  .footer-stacked .band-sub { font-size: 14px; max-width: 480px; margin-bottom: 0; }
  .footer-stacked .band-actions { gap: 10px; }
  .footer-stacked .ca { padding: 16px 20px; font-size: 15px; }
  .footer-stacked .ca .ca-sub { font-size: 12px; }
  .footer-stacked .ca::after { font-size: 18px; }

  .footer-stacked .links {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 56px;
    padding: 44px 0 36px;
  }
  .footer-stacked .links-brand { display: block; }
  .footer-stacked .brand-name {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--fc2-ink);
    margin-bottom: 10px;
  }
  .footer-stacked .brand-address {
    font-size: 13px;
    color: var(--fc2-muted);
    line-height: 1.55;
    max-width: 260px;
    margin: 0;
  }

  .footer-stacked .col-title { font-size: 11px; letter-spacing: 0.16em; font-weight: 600; margin: 0 0 16px; }
  .footer-stacked .col-link { padding: 6px 0; font-size: 14px; border-bottom: none; }
  .footer-stacked .col-link::after { content: none; }

  .footer-stacked .legal {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 20px 0 28px;
    margin-top: 0;
  }
  .footer-stacked .legal-links { gap: 22px; }
}

/* ─── Popup Overlay ──────────────────────────────────────────── */
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 5, 51, 0.78);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.popup-overlay[aria-hidden="false"] { display: flex; }

.popup-content {
    background: #ffffff;
    border-radius: 14px;
    padding: 2rem;
    max-width: 640px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 32px 80px rgba(26, 5, 51, 0.45);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #7C3AED;
    line-height: 1;
    transition: color 0.15s;
}

.popup-close:hover { color: #1a0533; }

/* ─── Loading Spinner ────────────────────────────────────────── */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #E9D5FF;
    border-top-color: #7E22CE;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text { font-size: 0.875rem; color: #A78BFA; }

/* ─── Utility ────────────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
    .form-section { padding: 1.75rem 1rem; }
    #dummy-form-container { padding: 1.4rem 1.25rem 1.75rem; }
    .form-step-title { font-size: 1.05rem; }
    .amount-grid { gap: 0.4rem; }
    .amount-btn { font-size: 0.8rem; padding: 0.55rem 0.5rem; }
    .steps-section { padding: 2.75rem 1rem; }
    .steps-container { grid-template-columns: 1fr; gap: 1.1rem; }
    .step { padding: 1.75rem 1.4rem 1.5rem; }
    .step::after { font-size: 4.5rem; }
}

@media (min-width: 768px) {
    .hero-split { justify-content: center; }
}
