/* ============================================================
   Vehicle HP Calculator v2 – Elementor Widget Styles
   Mobile-first responsive design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=DM+Serif+Display&display=swap');

/* ── Base / Reset ── */
.vhp-wrapper *,
.vhp-wrapper *::before,
.vhp-wrapper *::after { box-sizing: border-box; }

.vhp-wrapper {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  max-width: 860px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(26,26,46,0.12);
  background: #f7f7fb;
  width: 100%;
}

/* ── Header ── */
.vhp-header {
  background: #006633;
  padding: 24px 20px 22px;          /* mobile-first: smaller padding */
  position: relative;
  overflow: hidden;
}
.vhp-header::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(200,150,12,0.18); pointer-events: none;
}
.vhp-header::after {
  content: '';
  position: absolute; bottom: -60px; left: 60px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,0.06); pointer-events: none;
}
.vhp-eyebrow {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.65); margin-bottom: 6px;
  position: relative; z-index: 1;
}
.vhp-header-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(20px, 5vw, 32px);
  font-weight: 400; color: #fff; line-height: 1.2;
  position: relative; z-index: 1;
}
.vhp-header-title span { color: #c8960c; }
.vhp-header-sub {
  font-size: 13px; color: rgba(255,255,255,0.7);
  margin-top: 8px; position: relative; z-index: 1;
}

/* ── Form body ── */
.vhp-body {
  background: #ffffff;
  padding: 24px 16px;               /* mobile-first */
}

/* ── Grid – mobile: 1 col, tablet+: 2 col ── */
.vhp-grid {
  display: grid;
  grid-template-columns: 1fr;       /* default: single column */
  gap: 16px;
}
.vhp-full { grid-column: 1 / -1; }

/* ── Field ── */
.vhp-field { display: flex; flex-direction: column; gap: 6px; }

.vhp-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: #4a4a6a;
}
.vhp-req { color: #c8960c; margin-left: 2px; }

.vhp-input,
.vhp-select {
  height: 46px; padding: 0 14px;
  border: 1.5px solid #e2e2ee; border-radius: 10px;
  font-family: inherit; font-size: 15px; color: #1a1a2e;
  background: #f7f7fb;
  transition: border-color 0.18s, box-shadow 0.18s;
  appearance: none; -webkit-appearance: none;
  width: 100%;
}
.vhp-input:focus,
.vhp-select:focus {
  outline: none; border-color: #006633;
  box-shadow: 0 0 0 3px rgba(0,102,51,0.12);
  background: #fff;
}

/* Input with addon */
.vhp-input-addon-wrap { position: relative; display: flex; align-items: center; }
.vhp-input-addon-wrap .vhp-input { padding-right: 42px; }
.vhp-input-addon {
  position: absolute; right: 14px;
  font-size: 13px; font-weight: 600; color: #8888a8;
  pointer-events: none; white-space: nowrap;
}
.vhp-input-addon-left {
  left: 14px; right: auto;
  font-size: 12px; font-weight: 700; color: #4a4a6a;
}
.vhp-input-has-left-addon { padding-left: 48px !important; }

.vhp-select-wrap { position: relative; }
.vhp-select-wrap::after {
  content: '▾'; position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%); color: #8888a8;
  pointer-events: none; font-size: 13px;
}

.vhp-hint {
  font-size: 12px; color: #8888a8;
  min-height: 18px; line-height: 1.4;
}
.vhp-hint.vhp-auto {
  background: #e8f5ee; color: #006633;
  border-radius: 4px; padding: 2px 8px;
  display: inline-block; font-weight: 500;
}
.vhp-hint.vhp-woo-price {
  background: #e8f0fe; color: #1a56db;
  border-radius: 4px; padding: 2px 8px;
  display: inline-block; font-weight: 500;
}

/* Hidden utility */
.vhp-hidden { display: none !important; }

/* ── Deposit toggle ── */
.vhp-deposit-label-row {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
}
.vhp-deposit-toggle {
  display: inline-flex; border: 1.5px solid #e2e2ee;
  border-radius: 8px; overflow: hidden;
  flex-shrink: 0;
}
.vhp-toggle-btn {
  background: #f7f7fb; border: none;
  font-family: inherit; font-size: 12px; font-weight: 600;
  color: #8888a8; cursor: pointer;
  padding: 4px 10px; line-height: 1.2;
  transition: background 0.15s, color 0.15s;
}
.vhp-toggle-btn:hover { background: #eee; color: #4a4a6a; }
.vhp-toggle-btn.active {
  background: #c8960c; color: #fff;
  border-color: #c8960c;
}

/* ── Section divider ── */
.vhp-divider {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 12px; margin: 4px 0;
}
.vhp-divider span {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #8888a8; white-space: nowrap;
}
.vhp-divider::before,
.vhp-divider::after { content: ''; flex: 1; height: 1px; background: #e2e2ee; }

/* ── Buttons ── */
.vhp-btn-calculate {
  width: 100%; height: 52px;
  background: #006633; color: #fff;
  border: none; border-radius: 10px;
  font-family: inherit; font-size: 16px;
  font-weight: 600; letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s, transform 0.1s;
  display: flex; align-items: center;
  justify-content: center; gap: 10px;
  -webkit-tap-highlight-color: transparent;
}
.vhp-btn-calculate:hover { background: #005228; }
.vhp-btn-calculate:active { transform: scale(0.99); }

.vhp-reset-row { text-align: right; }
.vhp-btn-reset {
  background: none; border: none;
  font-family: inherit; font-size: 13px;
  color: #8888a8; cursor: pointer;
  text-decoration: underline; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.vhp-btn-reset:hover { color: #c0392b; }

/* ── Results ── */
.vhp-results {
  background: #fff;
  border-top: 1px solid #e2e2ee;
  padding: 24px 16px;               /* mobile-first */
  animation: vhpFadeUp 0.35s ease;
}
@keyframes vhpFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.vhp-results-headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 18px; color: #4a4a6a;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.vhp-results-headline::after {
  content: ''; flex: 1; height: 1px; background: #e2e2ee;
}

/* Monthly hero */
.vhp-monthly-hero {
  background: linear-gradient(135deg, #006633 0%, #004d26 100%);
  border-radius: 14px; padding: 24px 20px;
  text-align: center; margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.vhp-monthly-hero::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 130px; height: 130px; border-radius: 50%;
  background: rgba(200,150,12,0.2); pointer-events: none;
}
.vhp-hero-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.65); margin-bottom: 8px;
}
.vhp-hero-amount {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(28px, 7vw, 44px);
  color: #fff; line-height: 1;
  position: relative; z-index: 1;
}
.vhp-hero-amount span:first-child {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px; font-weight: 300;
  color: rgba(255,255,255,0.75);
}
.vhp-hero-meta {
  font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 8px;
}

/* Results table: 1 col mobile, 2 col on wider */
.vhp-results-table {
  display: grid;
  grid-template-columns: 1fr;       /* mobile: stacked */
  gap: 1px;
  background: #e2e2ee;
  border-radius: 10px; overflow: hidden;
  border: 1px solid #e2e2ee;
}
.vhp-rc { background: #fff; padding: 12px 16px; }
.vhp-rc:nth-child(odd) { background: #f7f7fb; }
.vhp-rc-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #8888a8; margin-bottom: 3px;
}
.vhp-rc-value { font-size: 15px; font-weight: 500; color: #1a1a2e; }
.vhp-green  { color: #006633 !important; font-weight: 600 !important; }
.vhp-danger { color: #c0392b !important; }

/* ── Footer / disclaimer ── */
.vhp-footer {
  background: #f7f7fb;
  border-top: 1px solid #e2e2ee;
  padding: 18px 16px 22px;          /* mobile-first */
}
.vhp-disclaimer-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #c8960c; margin-bottom: 6px;
}
.vhp-disclaimer-text {
  font-size: 11px; color: #8888a8; line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════ */

/* Tablet / small desktop: 540px+ → 2-column grid */
@media (min-width: 540px) {
  .vhp-header { padding: 28px 32px 24px; }
  .vhp-body   { padding: 28px 32px; }
  .vhp-results { padding: 28px 32px; }
  .vhp-footer  { padding: 20px 32px 26px; }

  .vhp-grid { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
  .vhp-results-table { grid-template-columns: 1fr 1fr; }

  .vhp-monthly-hero { padding: 26px 28px; }
  .vhp-label { font-size: 12px; }
  .vhp-rc-label { font-size: 11px; }
  .vhp-eyebrow { font-size: 11px; }
}

/* Desktop: 860px+ → full padding */
@media (min-width: 860px) {
  .vhp-header  { padding: 32px 40px 28px; }
  .vhp-body    { padding: 36px 40px; }
  .vhp-results { padding: 36px 40px; }
  .vhp-footer  { padding: 20px 40px 24px; }

  .vhp-grid { gap: 20px 28px; }
  .vhp-monthly-hero { padding: 28px 32px; }
  .vhp-disclaimer-text { font-size: 11.5px; }
}
