/* ── Funding Application ── */
.funding-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #eef5e8 0%, #f7faf5 100%);
}

.funding-main {
  flex: 1;
  padding: 48px 24px 56px;
}

.funding-inner {
  max-width: 520px;
  margin: 0 auto;
}

.funding-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.funding-logo:hover {
  opacity: 0.85;
}

.funding-logo-img {
  height: 140px;
  width: auto;
  max-width: 520px;
  object-fit: contain;
}

.funding-progress-wrap {
  margin-bottom: 4px;
}

.funding-progress-bar {
  height: 6px;
  background: #dce3ed;
  border-radius: 999px;
  overflow: hidden;
}

.funding-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--hero-blue), var(--navy-light));
  border-radius: 999px;
  transition: width 0.4s ease;
}

.funding-step-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: #7a8494;
  text-transform: uppercase;
  margin-top: 12px;
  margin-bottom: 28px;
}

.funding-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 36px 32px 32px;
  box-shadow:
    0 4px 24px rgba(26, 53, 104, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
}

.funding-step {
  display: none;
  animation: funding-fade-in 0.3s ease;
}

.funding-step.is-active {
  display: block;
}

@keyframes funding-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.funding-step h2 {
  font-size: 23px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 22px;
  line-height: 1.35;
  letter-spacing: -0.3px;
}

.funding-field {
  margin-bottom: 4px;
}

.funding-field input,
.funding-field select,
.funding-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #d8dee8;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  background: #fafbfc;
  color: #1a1a2e;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.funding-field input:hover,
.funding-field select:hover {
  border-color: #b8c4d4;
  background: var(--white);
}

.funding-field input::placeholder {
  color: #9aa3b2;
  opacity: 1;
}

.funding-field input:focus,
.funding-field select:focus {
  outline: none;
  border-color: var(--hero-blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.12);
}

.funding-field input.is-invalid,
.funding-field select.is-invalid {
  border-color: var(--red);
  background: #fffafa;
}

.funding-field input.is-invalid:focus,
.funding-field select.is-invalid:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(155, 35, 53, 0.1);
}

.funding-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%237a8494' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.funding-date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.funding-hint {
  font-size: 13px;
  color: #7a8494;
  margin-top: 12px;
  margin-bottom: 4px;
}

.funding-consent {
  font-size: 12px;
  color: #7a8494;
  line-height: 1.6;
  margin-top: 14px;
  margin-bottom: 4px;
  padding: 12px 14px;
  background: var(--quote-bg);
  border-radius: 8px;
  border-left: 3px solid var(--hero-blue);
}

.funding-legal-consent {
  font-size: 13px;
  color: #5a6474;
  line-height: 1.75;
  margin-bottom: 4px;
  padding: 18px 20px;
  background: var(--quote-bg);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.funding-legal-consent a {
  color: var(--hero-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.funding-legal-consent a:hover {
  color: var(--navy);
}

.form-error {
  display: block;
  font-size: 12px;
  color: var(--red);
  line-height: 1.4;
  min-height: 0;
}

.form-error:not(:empty) {
  margin-top: 6px;
  margin-bottom: 8px;
}

.funding-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-funding {
  width: 100%;
  padding: 15px 24px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--hero-blue) 0%, var(--navy) 100%);
  color: var(--white);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(var(--brand-rgb), 0.35);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn-funding:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--brand-rgb), 0.42);
}

.btn-funding:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(var(--brand-rgb), 0.3);
}

.btn-funding:focus-visible {
  outline: 2px solid var(--hero-blue);
  outline-offset: 3px;
}

.funding-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 24px;
  border: 1.5px solid #d8dee8;
  border-radius: 50px;
  background: var(--white);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #5a6474;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.funding-back-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.funding-back:hover {
  background: var(--quote-bg);
  border-color: var(--hero-blue);
  color: var(--hero-blue);
}

.funding-back:hover .funding-back-icon {
  transform: translateX(-3px);
}

.funding-back:focus-visible {
  outline: 2px solid var(--hero-blue);
  outline-offset: 2px;
}

.funding-back:active {
  background: var(--quote-bg);
}

.funding-back.is-hidden {
  display: none;
}

.funding-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #7a8494;
  margin-top: 24px;
}

.funding-trust::before,
.funding-trust::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: #d8dee8;
}

.funding-flow.is-hidden,
.funding-success.is-hidden {
  display: none;
}

.funding-success-card {
  text-align: center;
  padding: 44px 36px 36px;
}

.funding-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
}

.funding-success-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.funding-success-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.funding-success-text {
  font-size: 15px;
  color: #5a6474;
  line-height: 1.6;
  margin-bottom: 28px;
}

.funding-success-next {
  background: var(--quote-bg);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 22px;
  text-align: left;
}

.funding-success-next h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.funding-success-next p {
  font-size: 14px;
  color: #5a6474;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 480px) {
  .funding-main {
    padding: 32px 16px 44px;
  }

  .funding-logo-img {
    height: 100px;
    max-width: 380px;
  }

  .funding-card {
    padding: 28px 22px 24px;
    border-radius: 14px;
  }

  .funding-step h2 {
    font-size: 20px;
  }

  .funding-date-row {
    grid-template-columns: 1fr;
  }

  .funding-success-card {
    padding: 36px 24px 28px;
  }
}
