/* =============================================================
   Cash Venture Solution — Landing Page Optimization Stylesheet
   Loaded AFTER all base styles. Brand: red #ce1b28 + white.
   Goal: improve CRO, trust signals, mobile UX, visual hierarchy.
   Do NOT touch tracking code or form IDs.
   ============================================================= */

:root{
  --cvs-red:#ce1b28;
  --cvs-red-dark:#a4151f;
  --cvs-red-soft:#fff5f6;
  --cvs-navy:#252a37;
  --cvs-text:#3a3f4b;
  --cvs-muted:#6b7280;
  --cvs-line:#e5e7eb;
  --cvs-green:#25D366;
  --cvs-green-dark:#128C7E;
  --cvs-bg-soft:#fafbfc;
  --cvs-shadow:0 8px 22px rgba(206,27,40,.10);
  --cvs-shadow-lg:0 14px 38px rgba(8,46,78,.10);
  --cvs-radius:12px;
}

/* ---------- Global rhythm: consistent section spacing ---------- */
.fw-page-builder-content section.fw-main-row{ padding-top:64px; padding-bottom:64px; }
.fw-page-builder-content section.fw-main-row.section-padding{ padding-top:64px; padding-bottom:64px; }
@media (max-width: 767px){
  .fw-page-builder-content section.fw-main-row,
  .fw-page-builder-content section.fw-main-row.section-padding{ padding-top:42px; padding-bottom:42px; }
}

/* Reduce huge grey gaps */
.xs-sc-0c6bafd3{ padding:64px 0 48px 0 !important; }
@media (max-width: 767px){ .xs-sc-0c6bafd3{ padding:42px 0 32px 0 !important; } }

/* Hero readability on mobile */
@media (max-width: 767px){
  #n2-ss-2 .n2-font-51f781101b1f9b308a4d607ad171a81e-hover,
  #n2-ss-2 .n2-font-a5a8632019c35671184113508c1b17c7-hover{
    font-size:22px !important;
    line-height:1.25 !important;
  }
  #n2-ss-2 p{ font-size:14px !important; line-height:1.45 !important; }
}

/* ============================================================
   CVS CTA bar — sits right below hero slider
   ============================================================ */
.cvs-cta-bar{
  background:linear-gradient(135deg, var(--cvs-red) 0%, var(--cvs-red-dark) 100%);
  color:#fff;
  padding:22px 16px;
  text-align:center;
}
.cvs-cta-bar__inner{
  max-width:1140px; margin:0 auto;
  display:flex; flex-wrap:wrap; gap:14px;
  align-items:center; justify-content:center;
}
.cvs-cta-bar__lead{
  font-size:18px; font-weight:700; margin:0 14px 0 0;
  letter-spacing:.2px;
}
.cvs-cta-bar__lead small{
  display:block; font-size:13px; font-weight:500; opacity:.92;
}
.cvs-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:48px; padding:0 26px;
  font-size:16px; font-weight:700; line-height:1;
  border-radius:8px; text-decoration:none;
  transition:transform .12s ease, box-shadow .15s ease, background .15s ease;
  cursor:pointer; border:0;
}
.cvs-btn:hover{ transform:translateY(-1px); text-decoration:none; }
.cvs-btn--apply{
  background:#fff; color:var(--cvs-red);
  box-shadow:0 6px 14px rgba(0,0,0,.18);
}
.cvs-btn--apply:hover{ background:#fff5f6; color:var(--cvs-red-dark); }
.cvs-btn--wa{
  background:var(--cvs-green); color:#fff;
  box-shadow:0 6px 14px rgba(37,211,102,.32);
}
.cvs-btn--wa:hover{ background:var(--cvs-green-dark); color:#fff; }
.cvs-btn--wa svg{ width:20px; height:20px; }
@media (max-width: 580px){
  .cvs-cta-bar{ padding:18px 14px; }
  .cvs-cta-bar__lead{ width:100%; margin:0 0 4px 0; font-size:16px; }
  .cvs-btn{ flex:1 1 45%; padding:0 12px; font-size:15px; }
}

/* ============================================================
   Trust strip — 4 badges right under hero
   ============================================================ */
.cvs-trust-strip{
  background:#fff;
  border-bottom:1px solid var(--cvs-line);
  padding:18px 16px;
}
.cvs-trust-strip__inner{
  max-width:1140px; margin:0 auto;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.cvs-trust-strip__item{
  display:flex; align-items:center; gap:10px;
  font-size:14px; font-weight:600; color:var(--cvs-navy);
  line-height:1.3;
}
.cvs-trust-strip__check{
  flex:0 0 24px; width:24px; height:24px;
  border-radius:50%;
  background:var(--cvs-red); color:#fff;
  display:grid; place-items:center;
  font-size:13px; font-weight:900;
}
@media (max-width: 767px){
  .cvs-trust-strip__inner{ grid-template-columns:repeat(2,1fr); gap:10px; }
  .cvs-trust-strip__item{ font-size:13px; }
}
@media (max-width: 380px){
  .cvs-trust-strip__inner{ grid-template-columns:1fr; }
}

/* ============================================================
   Trust signals section (longer trust block, mid page)
   ============================================================ */
.cvs-trust-section{
  background:var(--cvs-bg-soft);
  padding:56px 16px;
}
.cvs-trust-section__head{
  text-align:center; max-width:780px; margin:0 auto 36px;
}
.cvs-trust-section__head h2{
  font-size:30px; font-weight:700; color:var(--cvs-navy);
  margin:0 0 10px;
}
.cvs-trust-section__head h2 span{ color:var(--cvs-red); }
.cvs-trust-section__head p{
  color:var(--cvs-muted); margin:0; font-size:15px; line-height:1.55;
}
.cvs-trust-grid{
  max-width:1140px; margin:0 auto;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:18px;
}
.cvs-trust-card{
  background:#fff;
  border:1px solid var(--cvs-line);
  border-radius:var(--cvs-radius);
  padding:22px 18px;
  text-align:center;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.cvs-trust-card:hover{
  transform:translateY(-3px);
  border-color:var(--cvs-red);
  box-shadow:var(--cvs-shadow);
}
.cvs-trust-card__icon{
  width:54px; height:54px; border-radius:50%;
  background:var(--cvs-red-soft); color:var(--cvs-red);
  display:grid; place-items:center; margin:0 auto 12px;
  font-size:24px;
}
.cvs-trust-card__title{
  font-size:15px; font-weight:700; color:var(--cvs-navy);
  margin:0; line-height:1.35;
}
@media (max-width: 991px){
  .cvs-trust-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 480px){
  .cvs-trust-grid{ grid-template-columns:1fr; gap:12px; }
  .cvs-trust-section{ padding:42px 14px; }
  .cvs-trust-section__head h2{ font-size:24px; }
}

/* ============================================================
   FAQ section
   ============================================================ */
.cvs-faq-section{
  background:#fff;
  padding:64px 16px;
}
.cvs-faq-section__head{
  text-align:center; max-width:780px; margin:0 auto 28px;
}
.cvs-faq-section__head h2{
  font-size:30px; font-weight:700; color:var(--cvs-navy); margin:0 0 8px;
}
.cvs-faq-section__head h2 span{ color:var(--cvs-red); }
.cvs-faq-section__head p{ color:var(--cvs-muted); margin:0; font-size:15px; }
.cvs-faq-list{ max-width:820px; margin:0 auto; }
.cvs-faq-item{
  border:1px solid var(--cvs-line);
  border-radius:var(--cvs-radius);
  margin-bottom:12px;
  background:#fff;
  overflow:hidden;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.cvs-faq-item[open]{
  border-color:var(--cvs-red);
  box-shadow:0 6px 16px rgba(206,27,40,.08);
}
.cvs-faq-item summary{
  list-style:none;
  cursor:pointer;
  padding:18px 52px 18px 22px;
  font-size:16px; font-weight:700; color:var(--cvs-navy);
  position:relative;
  line-height:1.4;
}
.cvs-faq-item summary::-webkit-details-marker{ display:none; }
.cvs-faq-item summary::after{
  content:"+";
  position:absolute; right:22px; top:50%; transform:translateY(-50%);
  font-size:22px; font-weight:700; color:var(--cvs-red);
  transition:transform .2s ease;
}
.cvs-faq-item[open] summary::after{ content:"−"; }
.cvs-faq-item__body{
  padding:0 22px 18px;
  color:var(--cvs-text); font-size:15px; line-height:1.6;
}
@media (max-width: 767px){
  .cvs-faq-section{ padding:42px 14px; }
  .cvs-faq-section__head h2{ font-size:24px; }
  .cvs-faq-item summary{ font-size:15px; padding:16px 46px 16px 18px; }
  .cvs-faq-item summary::after{ right:18px; }
  .cvs-faq-item__body{ padding:0 18px 16px; font-size:14px; }
}

/* ============================================================
   Form intro band (above #permohonanForm)
   ============================================================ */
.cvs-form-intro{
  max-width:760px; margin:0 auto 8px;
  background:linear-gradient(135deg,var(--cvs-red) 0%, var(--cvs-red-dark) 100%);
  color:#fff;
  border-radius:14px 14px 0 0;
  padding:18px 22px;
  text-align:center;
  font-size:15px; font-weight:600; line-height:1.45;
  box-shadow:0 6px 14px rgba(206,27,40,.18);
}
.cvs-form-intro strong{ display:block; font-size:17px; margin-bottom:2px; }

/* Smooth the existing card so intro band attaches nicely */
.cvs-form-intro + .card{
  border-top-left-radius:0 !important;
  border-top-right-radius:0 !important;
  margin-top:0 !important;
}

/* Stronger submit button */
#permohonanForm button[type=submit]{
  background:var(--cvs-red) !important;
  border:2px solid var(--cvs-red) !important;
  color:#fff !important;
  font-size:17px !important;
  letter-spacing:.3px;
  width:320px !important; max-width:100% !important;
  padding:16px 28px !important;
  box-shadow:0 10px 22px rgba(206,27,40,.28) !important;
  transition:transform .12s ease, box-shadow .15s ease, background .15s ease;
}
#permohonanForm button[type=submit]:hover{
  background:var(--cvs-red-dark) !important;
  border-color:var(--cvs-red-dark) !important;
  transform:translateY(-1px);
  box-shadow:0 14px 28px rgba(206,27,40,.34) !important;
}
@media (max-width: 580px){
  #permohonanForm button[type=submit]{ width:100% !important; }
}

/* Form helper hint under submit */
.cvs-form-hint{
  text-align:center; color:var(--cvs-muted);
  font-size:13px; margin-top:14px;
  display:flex; gap:18px; justify-content:center; flex-wrap:wrap;
}
.cvs-form-hint span{ display:inline-flex; align-items:center; gap:6px; }
.cvs-form-hint svg{ width:14px; height:14px; color:var(--cvs-red); }

/* ============================================================
   Mobile UX polish
   ============================================================ */
@media (max-width: 767px){
  /* Ensure all buttons are tap-friendly */
  .btn, .btn-primary, .btn-dark, .btn-white, .btn-border{
    min-height:48px; line-height:1.2; padding:13px 22px;
    display:inline-flex; align-items:center; justify-content:center;
  }
  /* Banner titles smaller on phone */
  .banner-title, h1.banner-title{ font-size:32px !important; line-height:1.2 !important; }
  .slide-title{ font-size:20px !important; }
  .slide-sub-title{ font-size:28px !important; line-height:1.2 !important; }
  /* Section title size */
  .xs-title{ font-size:26px !important; line-height:1.2 !important; }
  /* Tighter info section padding */
  .top-info-content{ padding:8px 0; }
}

/* ============================================================
   Visual hierarchy nudges (apply across pages)
   ============================================================ */
h2.xs-title{ letter-spacing:.2px; }
.section-title-dash{ margin-bottom:8px; }
.feature-content h3{ color:var(--cvs-red); font-weight:700; }
.section-padding p{ color:var(--cvs-text); }

/* Avoid CLS for inserted images */
img[loading="lazy"]{ background:#f5f5f5; }

/* Skip-link for keyboard / a11y (helps quality signals) */
.cvs-skip{
  position:absolute; left:-9999px; top:0;
  background:var(--cvs-red); color:#fff; padding:10px 16px;
  z-index:100000;
}
.cvs-skip:focus{ left:8px; top:8px; }

/* WhatsApp widget vertical offset so it doesn't cover form on mobile */
@media (max-width: 580px){
  .cv-wa{ bottom:calc(14px + env(safe-area-inset-bottom)); }
}
