/* VayMeo — MoneyCat-inspired UI (original implementation, VayMeo branding) */
@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@400;500;600;700;800&display=swap');

:root {
  --vm-yellow: #ffdc37;
  --vm-yellow-hover: #ffd000;
  --vm-orange: #ff6622;
  --vm-orange-dark: #dd4200;
  --vm-brown: #421701;
  --vm-text: #2d2e2f;
  --vm-muted: #747983;
  --vm-cream: #fff8f5;
  --vm-peach: #ffece3;
  --vm-bg: #f5f6f7;
  --vm-line: #eaeef2;
  --vm-white: #ffffff;
  --vm-dark: #1c1c1e;
  --vm-footer: #2a2a2c;
  --vm-radius: 16px;
  --vm-radius-lg: 24px;
  --vm-shadow: 0 12px 32px rgba(45, 46, 47, 0.12);
  --vm-font: 'Mulish', 'SVN-Gilroy', system-ui, sans-serif;
}

body.vm-theme,
.vm-theme {
  font-family: var(--vm-font) !important;
  color: var(--vm-text);
  background: var(--vm-white);
}

.vm-theme a {
  color: var(--vm-orange);
}

/* ---------- Flatsome header restyle ---------- */
.vm-theme .header,
.vm-theme .header-wrapper,
.vm-theme .header-main {
  background: #fff !important;
  box-shadow: 0 1px 0 var(--vm-line);
}

.vm-theme .header-main .nav > li > a,
.vm-theme .nav-dropdown > li > a {
  font-family: var(--vm-font);
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--vm-text) !important;
}

.vm-theme .header-button a,
.vm-theme .header-button-1 .header-button a {
  background: var(--vm-yellow) !important;
  background-image: none !important;
  color: var(--vm-brown) !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  text-transform: none !important;
  box-shadow: 0 6px 14px rgba(255, 220, 55, 0.35) !important;
  padding: 8px 22px !important;
}

.vm-theme .header-button a:hover {
  background: var(--vm-yellow-hover) !important;
  color: var(--vm-brown) !important;
}

.vm-theme .btn.button,
.vm-theme .button.primary,
.vm-theme .form-calculator .button {
  background: var(--vm-yellow) !important;
  background-image: none !important;
  color: var(--vm-brown) !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  text-transform: none !important;
  border: none !important;
}

.home.vm-theme .page-title,
.home.vm-theme .page-header,
.page-template-template-reg .page-title,
.page-template-template-reg .page-header {
  display: none !important;
}

.home #main,
.page-template-template-reg #main,
.page-template-template-reg #content {
  padding: 0 !important;
}

/* ---------- Layout helpers ---------- */
.vm-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.vm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--vm-yellow);
  color: var(--vm-brown) !important;
  font-family: var(--vm-font);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(255, 220, 55, 0.38);
  text-decoration: none !important;
  transition: transform .15s ease, background .15s ease;
}

.vm-btn:hover {
  background: var(--vm-yellow-hover);
  transform: translateY(-1px);
  color: var(--vm-brown) !important;
}

.vm-btn-block {
  width: 100%;
}

.vm-section {
  padding: 72px 0;
}

.vm-section h2 {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--vm-dark);
  margin: 0 0 12px;
}

.vm-section-lead {
  color: var(--vm-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 720px;
}

/* ---------- Hero ---------- */
.vm-hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  padding: 48px 0 220px;
  background:
    radial-gradient(ellipse 70% 80% at 80% 40%, rgba(255, 102, 34, 0.55), transparent 60%),
    linear-gradient(160deg, #3a1408 0%, #7a2a0d 38%, #ff7a2e 78%, #ffb347 100%);
  color: #fff;
}

.vm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255, 220, 55, 0.18) 0 80px, transparent 81px),
    radial-gradient(circle at 88% 78%, rgba(255, 255, 255, 0.08) 0 120px, transparent 121px);
  pointer-events: none;
}

.vm-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 460px) 1fr;
  gap: 40px;
  align-items: start;
}

.vm-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.vm-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.vm-pill-yellow {
  background: var(--vm-yellow);
  color: var(--vm-brown);
}

.vm-pill-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.vm-hero-copy h1 {
  font-size: 42px;
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 10px;
  color: #fff;
}

.vm-hero-copy p {
  margin: 0 0 22px;
  color: rgb(35 26 26 / 88%);
  font-size: 16px;
}

.vm-tab {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 12px 12px 0 0;
  padding: 10px 18px;
  font-weight: 800;
  color: #fff;
}

.vm-card {
  background: #fff;
  border-radius: var(--vm-radius-lg);
  box-shadow: var(--vm-shadow);
  padding: 24px;
  color: var(--vm-text);
}

.vm-form .vm-field {
  position: relative;
  margin-bottom: 12px;
}

.vm-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--vm-muted);
  margin-bottom: 4px;
}

.vm-form input[type="text"],
.vm-form input[type="tel"],
.vm-form input[type="email"],
.vm-form input[type="number"],
.vm-reg input {
  width: 100%;
  height: 52px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 14px 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--vm-text);
  background: #fff;
  box-shadow: none;
}

.vm-form input:focus,
.vm-reg input:focus {
  outline: 2px solid #ffdc37;
  border-color: #ffdc37;
}

.vm-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--vm-muted);
}

.vm-check input {
  margin-top: 3px;
}

.vm-check a {
  color: var(--vm-orange);
  font-weight: 700;
  text-decoration: underline;
}

.vm-error {
  color: #dc2626;
  font-size: 13px;
  min-height: 18px;
  margin: 4px 0 8px;
}

.vm-hero-art {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.vm-hero-art svg {
  width: min(520px, 100%);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.25));
}

/* ---------- Process overlap ---------- */
.vm-process {
  position: relative;
  z-index: 3;
  margin-top: -180px;
  padding-bottom: 40px;
}

.vm-process-head {
  text-align: center;
  margin-bottom: 28px;
}

.vm-process-head h2 {
  color: var(--vm-dark);
  background: #fff;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 14px;
  box-shadow: var(--vm-shadow);
}

.vm-process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.vm-step {
  background: #fff;
  border-radius: var(--vm-radius);
  padding: 24px 22px;
  box-shadow: var(--vm-shadow);
  text-align: center;
}

.vm-step-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 20px;
  background: var(--vm-peach);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.vm-step h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
}

.vm-step p {
  margin: 0;
  color: var(--vm-muted);
  font-size: 14px;
  line-height: 1.5;
}

.vm-center {
  text-align: center;
  margin-top: 28px;
}

/* ---------- Eligibility ---------- */
.vm-elig {
  background: var(--vm-cream);
}

.vm-elig-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.vm-elig-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.vm-elig-item {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 6px 18px rgba(45, 46, 47, 0.06);
}

.vm-elig-item span {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--vm-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

/* ---------- Testimonials ---------- */
.vm-quotes {
  overflow: hidden;
}

.vm-quote-meta {
  font-weight: 800;
  margin-bottom: 18px;
}

.vm-quote-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.vm-quote {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--vm-shadow);
  min-height: 220px;
}

.vm-quote strong {
  display: block;
  font-size: 16px;
}

.vm-quote .job {
  color: var(--vm-muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.vm-stars {
  color: var(--vm-yellow);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.vm-quote p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  color: var(--vm-text);
}

/* ---------- Advantages ---------- */
.vm-adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.vm-adv {
  background: var(--vm-cream);
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
}

.vm-adv h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 10px 0 6px;
}

.vm-adv p {
  margin: 0;
  color: var(--vm-muted);
  font-size: 14px;
}

/* ---------- Terms ---------- */
.vm-terms-box {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--vm-line);
  border-radius: 20px;
  padding: 28px;
}

.vm-kv {
  display: grid;
  gap: 12px;
}

.vm-kv div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px dashed #e5e7eb;
  padding-bottom: 10px;
  font-size: 15px;
}

.vm-kv b {
  color: var(--vm-orange);
}

.vm-note {
  font-size: 12px;
  color: var(--vm-muted);
  line-height: 1.55;
  margin-top: 14px;
}

.vm-app {
  background: linear-gradient(180deg, #fff8f5, #ffece3);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.vm-qr {
  width: 140px;
  height: 140px;
  margin: 10px auto;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--vm-muted);
  border: 1px dashed #ffbd77;
}

/* ---------- FAQ ---------- */
.vm-faq {
  background: var(--vm-bg);
}

.vm-acc {
  display: grid;
  gap: 10px;
  max-width: 860px;
  margin: 24px auto 0;
}

.vm-acc details {
  background: #fff;
  border-radius: 12px;
  padding: 4px 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.vm-acc summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
}

.vm-acc summary::-webkit-details-marker {
  display: none;
}

.vm-acc details p {
  margin: 0 0 14px;
  color: var(--vm-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Registration page ---------- */
.vm-reg-page {
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(255, 102, 34, 0.18), transparent 55%),
    var(--vm-cream);
  min-height: 80vh;
  padding: 40px 0 80px;
}

.vm-reg-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.vm-reg-intro h1 {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--vm-dark);
}

.vm-reg-intro p {
  color: var(--vm-muted);
  font-size: 16px;
}

.vm-reg .col-wrap-reg,
.vm-reg-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--vm-shadow);
  padding: 32px 28px;
}

.vm-amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--vm-orange);
  border: 0;
  width: 100%;
  background: transparent;
  padding: 0;
  margin-bottom: 6px;
}

#range-calculator {
  width: 100%;
  margin: 16px auto 6px;
  position: relative;
}

#custom-range {
  width: 100%;
  height: 8px;
  background: #ffe0d2;
  border-radius: 99px;
  position: relative;
  cursor: pointer;
}

#progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, #ff6622, #ffdc37);
  border-radius: 99px;
}

#custom-thumb {
  width: 22px;
  height: 22px;
  background: #fff;
  border: 3px solid #ff6622;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  box-shadow: 0 4px 12px rgba(255, 102, 34, 0.35);
}

.form_calculator-bottom {
  display: flex;
  justify-content: space-between;
  color: var(--vm-muted);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.vm-reg .form-gruop {
  margin-bottom: 16px;
}

.vm-reg .form-gruop label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.vm-reg .require {
  color: var(--vm-orange);
}

.loan-condition {
  color: #008c46;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
}

.form-loader {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(28, 28, 30, 0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  z-index: 10000;
}

.form-loader.active {
  display: flex;
}

.form-loader h2 {
  color: #fff;
  margin-top: 16px;
}

.loading-spin {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--vm-yellow);
  border-radius: 50%;
  animation: vmspin 0.8s linear infinite;
  margin: 0 auto;
}

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

.vm-mobile-cta {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
}

/* ---------- Footer tint ---------- */
.vm-theme footer {
  background: var(--vm-dark) !important;
  color: #fff !important;
}

.vm-theme footer *,
.vm-theme footer a,
.vm-theme footer ul li a {
  color: #fff !important;
}

.vm-theme footer .footer-title * {
  color: var(--vm-yellow) !important;
}

@media (max-width: 960px) {
  .vm-hero-grid,
  .vm-process-grid,
  .vm-elig-grid,
  .vm-quote-track,
  .vm-adv-grid,
  .vm-terms-box,
  .vm-reg-grid {
    grid-template-columns: 1fr;
  }

  .vm-hero {
    min-height: auto;
    padding: 28px 0 200px;
  }

  .vm-hero-copy h1 {
    font-size: 30px;
  }

  .vm-hero-art {
    min-height: 220px;
    order: -1;
  }

  .vm-process {
    margin-top: -160px;
  }

  .vm-quote-track {
    grid-template-columns: 1fr 1fr;
  }

  .vm-mobile-cta {
    display: block;
  }

  .vm-section h2 {
    font-size: 26px;
  }
}

@media (max-width: 640px) {
  .vm-quote-track {
    grid-template-columns: 1fr;
  }

  .vm-card,
  .vm-reg-card {
    padding: 18px;
  }
}
