/* ============================================================
   Cash4OEM — Component Styles
   Reusable classes layered on top of Tailwind utility classes.
   ============================================================ */

:root {
  --brand-yellow: #F4B720;
  --brand-yellow-dark: #E0A800;
  --brand-black: #0B0B0B;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { -webkit-font-smoothing: antialiased; }

/* Saira Condensed weight aliases (Tailwind font-800 etc. aren't built-in) */
.font-800 { font-weight: 800; }
.font-700 { font-weight: 700; }

/* ---------- Logo (CSS background, swappable light/dark) ---------- */
.logo-light,
.logo-dark {
  height: 30px;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}
.logo-light { background-image: url('../img/logo-light.svg'); }
.logo-dark  { background-image: url('../img/logo-dark.svg'); }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--brand-yellow);
  color: #111;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  border-radius: .5rem;
  line-height: 1.1;
  transition: background .18s ease, transform .18s ease;
}
.btn-primary:hover { background: var(--brand-yellow-dark); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: .5rem;
  line-height: 1.1;
  transition: border-color .18s ease, background .18s ease;
}
.btn-outline:hover { border-color: var(--brand-yellow); background: rgba(255,255,255,.05); }
.btn-outline-dark { color: var(--brand-ink); border-color: rgba(17,17,17,.35); }
.btn-outline-dark:hover { border-color: var(--brand-yellow); background: rgba(244,183,32,.08); }

/* Outline button on light backgrounds (final CTA reuse keeps dark sections);
   used inside dark sections only, so default white is correct. */

/* ---------- Nav links ---------- */
.nav-link { position: relative; transition: color .15s ease; }
.nav-link:hover { color: var(--brand-yellow); }
.mobile-link { border-bottom: 1px solid rgba(255,255,255,.06); }

/* ---------- Section title ---------- */
.section-title {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -.01em;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1;
  color: var(--brand-black);
}

/* ---------- Hero feature strip / CTA features ---------- */
.feature-item { display: flex; align-items: flex-start; gap: .75rem; }
.feat-icon {
  width: 30px; height: 30px; flex-shrink: 0;
  fill: none; stroke: var(--brand-yellow); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.feat-title { color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .03em; }
.feat-sub { color: rgba(255,255,255,.6); font-size: 12.5px; line-height: 1.35; margin-top: 2px; }

/* ---------- Partner logos ---------- */
.partner-logo {
  font-weight: 700; font-size: 12px; letter-spacing: .08em;
  color: #9ca3af; display: inline-flex; align-items: center; gap: .4rem;
}
.partner-logo::before {
  content: ""; width: 26px; height: 26px; border-radius: 5px;
  background: #e5e7eb;
}

/* ---------- Icon badge (square yellow) ---------- */
.icon-badge {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--brand-yellow); border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-badge svg {
  width: 24px; height: 24px; fill: none; stroke: #111; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Check list items ---------- */
.check-item {
  position: relative; padding-left: 1.9rem;
  font-size: 15px; font-weight: 500; color: #1f2937;
}
.check-item::before {
  content: ""; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-yellow)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 6'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}
.check-item.text-white { color: #fff; }

/* ---------- How It Works steps ---------- */
.step { flex: 1; text-align: center; max-width: 200px; margin: 0 auto; }
.step-circle {
  position: relative; width: 74px; height: 74px; margin: 0 auto 26px;
  border-radius: 50%; border: 2px solid var(--brand-yellow);
  background: #fff; display: flex; align-items: center; justify-content: center;
}
.step-circle.dark { background: var(--brand-black); border-color: var(--brand-black); }
.step-circle svg {
  width: 30px; height: 30px; fill: none; stroke: #111; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.step-circle.dark svg { stroke: #fff; }
.step-num {
  position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-black); color: #fff;
  font-family: 'Saira Condensed', sans-serif; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.step-title { font-family: 'Saira Condensed', sans-serif; font-weight: 800; text-transform: uppercase; font-size: 16px; color: var(--brand-black); }
.step-sub { font-size: 13px; color: #6b7280; line-height: 1.4; margin-top: 4px; }
.step-arrow {
  display: none; align-self: flex-start; margin-top: 24px;
  color: var(--brand-yellow); font-size: 26px; font-weight: 700;
}
@media (min-width: 1024px) {
  .step-arrow { display: inline-block; }
}

/* ---------- Value for partners ---------- */
.value-item { display: flex; align-items: flex-start; gap: .9rem; }
.value-icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 9px;
  border: 1px solid rgba(244,183,32,.5);
  display: inline-flex; align-items: center; justify-content: center;
}
.value-icon svg {
  width: 22px; height: 22px; fill: none; stroke: var(--brand-yellow);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.value-title { font-weight: 700; font-size: 15.5px; color: #fff; }
.value-sub { font-size: 13.5px; color: rgba(255,255,255,.65); line-height: 1.4; margin-top: 2px; }

/* ---------- Phone mockup ---------- */
.phone-frame {
  width: 268px; padding: 12px; border-radius: 38px;
  background: #111; box-shadow: 0 25px 50px -12px rgba(0,0,0,.35);
}
.phone-screen {
  background: #fff; border-radius: 28px; padding: 18px 16px;
  max-height: 560px; overflow: hidden;
}
.phone-input {
  width: 100%; font-size: 11.5px; padding: 7px 10px;
  border: 1px solid #d1d5db; border-radius: 6px; color: #374151;
}
.phone-input::placeholder { color: #9ca3af; }
.phone-label { display: block; font-size: 10.5px; color: #6b7280; margin-bottom: 3px; }
.phone-file { width: 100%; font-size: 10px; }
.phone-file::file-selector-button {
  font-size: 10px; padding: 4px 8px; margin-right: 6px;
  border: 1px solid #d1d5db; border-radius: 5px; background: #f3f4f6; cursor: pointer;
}

/* ---------- Side info card ---------- */
.info-row { display: flex; align-items: flex-start; gap: .85rem; }
.info-icon {
  width: 34px; height: 34px; flex-shrink: 0; fill: none; stroke: #111;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.info-title { font-weight: 700; font-size: 15px; color: #111; }
.info-sub { font-size: 13px; color: #6b7280; line-height: 1.4; margin-top: 1px; }

/* ---------- Testimonials ---------- */
.testimonial-card { background: #f4f4f4; border-radius: 14px; padding: 24px 22px; }
.stars { color: var(--brand-yellow); letter-spacing: 2px; font-size: 15px; }
.testimonial-heading { font-family: 'Saira Condensed', sans-serif; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 18px; color: var(--brand-black); line-height: 1.1; margin-top: 10px; }
.testimonial-quote { font-style: italic; color: #374151; font-size: 14.5px; line-height: 1.5; margin-top: 8px; }
.testimonial-author { font-weight: 700; font-size: 14px; color: #111; margin-top: 16px; }

/* ---------- FAQ accordion ---------- */
.faq-item { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; background: #fff; height: fit-content; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; text-align: left; padding: 16px 18px;
  font-weight: 600; font-size: 15px; color: #111; cursor: pointer;
  transition: background .15s ease;
}
.faq-q:hover { background: #fafafa; }
.faq-icon { font-size: 22px; font-weight: 400; color: #111; line-height: 1; transition: transform .2s ease; flex-shrink: 0; }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); color: var(--brand-yellow-dark); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 18px 16px; color: #6b7280; font-size: 14px; line-height: 1.55; }

/* ---------- Social ---------- */
.social {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: inline-flex; align-items: center; justify-content: center; transition: background .15s ease;
}
.social:hover { background: var(--brand-yellow); }
.social svg { width: 16px; height: 16px; color: #fff; }
.social:hover svg { color: #111; }

/* ---------- Header scrolled state ---------- */
#site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.25); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Rebate form page (/submit-rebate.html)
   ============================================================ */

/* ---------- Estimator widget ---------- */
.estimator-card {
  background: var(--brand-black); color: #fff;
  border-radius: 16px; padding: 26px 24px;
}
.est-grid { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: end; }
@media (min-width: 640px) { .est-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .est-grid { grid-template-columns: repeat(5, 1fr); } }
.est-field { display: flex; flex-direction: column; }
.est-field-label { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 6px; }
.est-select {
  width: 100%; padding: 11px 12px; font-size: 14px;
  background: rgba(255,255,255,.08); color: #fff;
  border: 1px solid rgba(255,255,255,.18); border-radius: 8px;
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23F4B720' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 34px;
}
.est-select:focus { outline: none; border-color: var(--brand-yellow); }
.est-select option { color: #111; }
.est-amount-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1.5px dashed rgba(244,183,32,.5); border-radius: 12px; padding: 12px 16px;
}
.est-amount { font-family: 'Saira Condensed', sans-serif; font-weight: 800; font-style: italic; font-size: 38px; line-height: 1; color: var(--brand-yellow); }
.est-amount-label { font-size: 10.5px; letter-spacing: .08em; color: rgba(255,255,255,.6); margin-top: 5px; text-transform: uppercase; }

/* ---------- Form layout ---------- */
.form-card { background: #fff; border-radius: 16px; box-shadow: 0 10px 40px -12px rgba(0,0,0,.12); border: 1px solid #eef0f2; }
.form-section { padding: 26px 28px; border-bottom: 1px solid #eef0f2; }
.form-section:last-of-type { border-bottom: none; }
.form-section-head { display: flex; align-items: center; gap: .6rem; margin-bottom: 18px; }
.form-section-num {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px;
  background: var(--brand-yellow); color: #111;
  font-family: 'Saira Condensed', sans-serif; font-weight: 800; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
}
.form-section-title { font-family: 'Saira Condensed', sans-serif; font-weight: 800; text-transform: uppercase; font-size: 20px; color: var(--brand-black); line-height: 1; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.field { display: flex; flex-direction: column; }
.field.col-span-2 { grid-column: 1 / -1; }
.field-label { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.field-label .req { color: #dc2626; margin-left: 2px; }
.field-input, .field-select {
  width: 100%; padding: 11px 13px; font-size: 14.5px; color: #111;
  background: #fff; border: 1px solid #d1d5db; border-radius: 8px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field-input::placeholder { color: #9ca3af; }
.field-input:focus, .field-select:focus {
  outline: none; border-color: var(--brand-yellow);
  box-shadow: 0 0 0 3px rgba(244,183,32,.18);
}
.field-select {
  appearance: none; cursor: pointer; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.field-input.input-error, .field-select.input-error { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.14); }
.field-error { font-size: 12px; color: #dc2626; margin-top: 5px; display: none; }
.field-error.show { display: block; }

/* ---------- Certification checkboxes ---------- */
.cert-item {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 10px;
  background: #fafafa; transition: border-color .15s ease, background .15s ease;
}
.cert-item:hover { border-color: var(--brand-yellow); }
.cert-item input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; accent-color: var(--brand-yellow); cursor: pointer; }
.cert-item label { font-size: 13.5px; line-height: 1.45; color: #374151; cursor: pointer; }
.cert-item.cert-error { border-color: #dc2626; background: #fef2f2; }

/* ---------- Success overlay ---------- */
#success-overlay,
#home-success-overlay,
#contact-success-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(11,11,11,.7); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
#success-overlay.show,
#home-success-overlay.show,
#contact-success-overlay.show { display: flex; }
.success-modal {
  background: #fff; border-radius: 18px; max-width: 440px; width: 100%;
  padding: 40px 32px; text-align: center;
  box-shadow: 0 30px 60px -15px rgba(0,0,0,.4);
  animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-check {
  width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--brand-yellow); display: flex; align-items: center; justify-content: center;
}
.success-check svg { width: 38px; height: 38px; stroke: #111; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.success-title { font-family: 'Saira Condensed', sans-serif; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 30px; color: var(--brand-black); line-height: 1; }
.success-body { font-size: 14.5px; color: #4b5563; line-height: 1.6; margin-top: 14px; }

/* estimator disabled state */
.est-select:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Partner brand logos (full-color strip) ---------- */
.partner-brand {
  height: 46px; width: auto; max-width: 200px; object-fit: contain;
  opacity: .92; transition: opacity .2s ease, transform .2s ease;
}
.partner-brand:hover { opacity: 1; transform: translateY(-2px); }
/* single full-width row on desktop */
@media (min-width: 1024px) { .partner-brand { height: 48px; max-width: 190px; } }
@media (min-width: 1200px) { .partner-brand { height: 52px; max-width: 220px; } }
@media (max-width: 480px)  { .partner-brand { height: 38px; max-width: 150px; } }

/* ---------- How It Works on black background ---------- */
.how-dark .section-title { color: #fff; }
/* circles: dark fill with yellow ring so they pop on black */
.how-dark .step-circle {
  background: rgba(255,255,255,.04);
  border-color: var(--brand-yellow);
}
.how-dark .step-circle svg { stroke: var(--brand-yellow); }
.how-dark .step-circle.dark {
  background: var(--brand-yellow);
  border-color: var(--brand-yellow);
}
.how-dark .step-circle.dark svg { stroke: #0B0B0B; }
.how-dark .step-num { background: #fff; color: #0B0B0B; }
.how-dark .step-title { color: #fff; }
.how-dark .step-sub { color: rgba(255,255,255,.65); }
.how-dark .step-arrow { color: var(--brand-yellow); }

/* ---------- Legal pages (Privacy / Terms) ---------- */
.legal-content { color: #374151; font-size: 15px; line-height: 1.7; }
.legal-content p { margin-top: 14px; }
.legal-content h2 {
  font-family: 'Saira Condensed', sans-serif; font-weight: 800; font-style: italic;
  text-transform: uppercase; font-size: 22px; color: var(--brand-black);
  line-height: 1.1; margin-top: 34px;
}
.legal-content h3 {
  font-family: 'Saira Condensed', sans-serif; font-weight: 800; font-style: italic;
  text-transform: uppercase; font-size: 19px; color: var(--brand-black);
  line-height: 1.15; margin-bottom: 4px;
}
.legal-content ul { margin-top: 12px; padding-left: 22px; list-style: disc; }
.legal-content ul li { margin-top: 7px; }
.legal-content a { color: var(--brand-black); font-weight: 600; text-decoration: underline; }
.legal-content a:hover { color: var(--brand-yellow-dark); }
.legal-content strong { color: #1f2937; }
.legal-callout {
  margin-top: 34px; padding: 22px 24px; border-radius: 14px;
  background: #FFF9EC; border: 1px solid var(--brand-yellow);
  border-left: 5px solid var(--brand-yellow);
}
.legal-callout p { margin-top: 8px; }

/* ===== Partner Program (B2B redesign) ===== */
.track-badge { display:inline-flex; align-items:center; justify-content:center; width:56px; height:56px; border-radius:14px; background:var(--brand-yellow); }
.track-badge svg { width:28px; height:28px; stroke:#0B0B0B; stroke-width:2; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.track-badge.dark { background:rgba(244,183,32,.15); }
.track-badge.dark svg { stroke:var(--brand-yellow); }
.step-pill { width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-family:'Saira Condensed',sans-serif; font-weight:800; font-style:italic; font-size:20px; background:var(--brand-yellow); color:#0B0B0B; }
.benefit-tile { background:#fff; border-radius:14px; padding:20px 18px; text-align:left; }
.benefit-ico { width:40px; height:40px; border-radius:10px; background:var(--brand-yellow); display:flex; align-items:center; justify-content:center; margin-bottom:12px; }
.benefit-ico svg { width:20px; height:20px; stroke:#0B0B0B; stroke-width:2; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.benefit-title { font-family:'Saira Condensed',sans-serif; font-weight:800; font-style:italic; text-transform:uppercase; font-size:18px; line-height:1; color:#111; }
