/* ============================================================
   ESTIMATE WIZARD PAGE — Full dedicated CSS
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ez-green:  #0B3D2E;
  --ez-green2: #062A1F;
  --ez-gold:   #C9A227;
  --ez-gold2:  #A88318;
  --ez-ivory:  #F2EEE5;
  --ez-line:   #E5E5E5;
  --ez-ink:    #1a1a1a;
  --ez-muted:  #666;
  --ez-radius: 6px;
  --ez-shadow: 0 2px 16px rgba(6,42,31,.10);
}

body.npg-estimate-page {
  font-family: 'Poppins', sans-serif !important;
  background: var(--ez-ivory) !important;
  color: var(--ez-ink) !important;
  min-height: 100vh;
}
body.npg-estimate-page img {
  max-width: 100% !important;
  height: auto !important;
}
body.npg-estimate-page .npg-ez-card-img img {
  height: 100% !important;
  max-height: 220px !important;
  object-fit: cover !important;
}

/* ── Wrapper ── */
.npg-ez {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Header ── */
.npg-ez-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: var(--ez-green);
  position: sticky;
  top: 0;
  z-index: 100;
}
.npg-ez-logo {
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.npg-ez-logo strong { color: var(--ez-gold); }
.npg-ez-logo img { height: 36px; width: auto; }
.npg-ez-step-counter {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  font-weight: 500;
}
.npg-ez-close {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  transition: color .2s;
}
.npg-ez-close:hover { color: #fff; }

/* ── Progress bar ── */
.npg-ez-progress {
  height: 3px;
  background: rgba(255,255,255,.15);
  background: #ddd;
}
.npg-ez-progress-fill {
  height: 100%;
  background: var(--ez-gold);
  transition: width .4s ease;
  width: 0%;
}

/* ── Body / Screen container ── */
.npg-ez-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 80px;
}

/* ── Screen ── */
.npg-ez-screen {
  display: none;
  width: 100%;
  max-width: 860px;
  animation: ezFadeIn .3s ease;
}
.npg-ez-screen.active { display: block; }

@keyframes ezFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Screen head ── */
.npg-ez-head {
  text-align: center;
  margin-bottom: 36px;
}
.npg-ez-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ez-gold2);
  margin-bottom: 10px;
}
.npg-ez-head h1 {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 700;
  color: var(--ez-green2);
  margin-bottom: 8px;
  line-height: 1.2;
}
.npg-ez-head h1 em {
  font-style: normal;
  color: var(--ez-gold2);
}
.npg-ez-head p {
  font-size: 15px;
  color: var(--ez-muted);
}

/* ── Cards — large (project type, sizes, commercial) ── */
.npg-ez-cards--large {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
  margin-bottom: 32px !important;
}
@media(max-width: 640px) {
  .npg-ez-cards--large { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media(max-width: 400px) {
  .npg-ez-cards--large { grid-template-columns: 1fr; }
}

.npg-ez-card {
  border: 2px solid var(--ez-line);
  border-radius: var(--ez-radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  background: #fff;
  position: relative;
  user-select: none;
}
.npg-ez-card:hover {
  border-color: var(--ez-green);
  box-shadow: 0 6px 24px rgba(6,42,31,.12);
  transform: translateY(-2px);
}
.npg-ez-card.selected {
  border-color: var(--ez-green);
  box-shadow: 0 0 0 3px rgba(11,61,46,.15);
}
.npg-ez-card-img {
  aspect-ratio: 4/3 !important;
  overflow: hidden !important;
  background: var(--ez-ivory);
  max-height: 220px !important;
}
.npg-ez-card-img img {
  width: 100% !important;
  height: 100% !important;
  max-height: 220px !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform .4s;
}
.npg-ez-card:hover .npg-ez-card-img img { transform: scale(1.05); }
.npg-ez-card-no-img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--ez-ivory), #e0dbd2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.npg-ez-card-name {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ez-ink);
  text-align: center;
}
.npg-ez-card-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ez-green);
  display: none;
  align-items: center;
  justify-content: center;
}
.npg-ez-card-check svg { width: 13px; color: #fff; }
.npg-ez-card.selected .npg-ez-card-check { display: flex; }

/* ── Cards — rooms (3 per row like project type) ── */
.npg-ez-cards--rooms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
@media(max-width: 640px) {
  .npg-ez-cards--rooms { grid-template-columns: repeat(2, 1fr); }
}

/* ── Room config screen (screen 4) ── */
.npg-ez-room-config {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 32px;
}
.npg-ez-room-block {
  background: #fff;
  border: 1px solid var(--ez-line);
  border-radius: var(--ez-radius);
  overflow: hidden;
  box-shadow: var(--ez-shadow);
}
.npg-ez-room-block-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ez-line);
  background: var(--ez-ivory);
}
.npg-ez-room-block-img {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e8e5de;
}
.npg-ez-room-block-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.npg-ez-room-block-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ez-green2);
}
.npg-ez-room-block-body { padding: 20px; }

/* Sub-type cards inside room block — 3 per row */
.npg-ez-subtype-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ez-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px;
}
.npg-ez-subtype-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
@media(max-width: 500px) {
  .npg-ez-subtype-grid { grid-template-columns: repeat(2, 1fr); }
}
.npg-ez-sub-card {
  border: 2px solid var(--ez-line);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, box-shadow .15s;
  background: #fff;
  position: relative;
}
.npg-ez-sub-card:hover { border-color: var(--ez-green); }
.npg-ez-sub-card.selected {
  border-color: var(--ez-green);
  box-shadow: 0 0 0 2px rgba(11,61,46,.12);
}
.npg-ez-sub-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--ez-ivory);
}
.npg-ez-sub-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.npg-ez-sub-card-no-img {
  aspect-ratio: 4/3;
  background: var(--ez-ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.npg-ez-sub-card-name {
  padding: 8px 8px 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ez-ink);
  text-align: center;
}
.npg-ez-sub-card .npg-ez-card-check {
  top: 6px; right: 6px;
  width: 20px; height: 20px;
}
.npg-ez-sub-card .npg-ez-card-check svg { width: 10px; }
.npg-ez-sub-card.selected .npg-ez-card-check { display: flex; }

/* Area field inside room block */
.npg-ez-area-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--ez-line);
  margin-top: 4px;
}
.npg-ez-area-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ez-ink);
  white-space: nowrap;
}
.npg-ez-area-input {
  width: 110px;
  padding: 8px 12px;
  border: 1.5px solid var(--ez-line);
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ez-ink);
  background: #fff;
}
.npg-ez-area-input:focus {
  outline: none;
  border-color: var(--ez-green);
}
.npg-ez-unit-toggle {
  display: flex;
  border: 1.5px solid var(--ez-line);
  border-radius: 4px;
  overflow: hidden;
}
.npg-ez-unit {
  padding: 8px 12px;
  border: none;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #aaa;
  cursor: pointer;
  transition: .2s;
  font-family: inherit;
}
.npg-ez-unit.active {
  background: var(--ez-green);
  color: #fff;
}
.npg-ez-area-hint {
  font-size: 11px;
  color: #aaa;
  margin-left: auto;
}

/* ── Pill groups ── */
.npg-ez-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.npg-ez-pill {
  padding: 10px 20px;
  border: 1.5px solid var(--ez-line);
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--ez-ink);
  cursor: pointer;
  transition: .2s;
  font-family: inherit;
}
.npg-ez-pill:hover {
  border-color: var(--ez-green);
  color: var(--ez-green);
}
.npg-ez-pill.selected {
  border-color: var(--ez-green);
  background: #e8f0eb;
  color: var(--ez-green);
  font-weight: 700;
}

/* ── Questions (step 5,6) ── */
.npg-ez-qs {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 32px;
}
.npg-ez-q { display: flex; flex-direction: column; gap: 12px; }
.npg-ez-q-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--ez-ink);
}

/* ── Upload ── */
.npg-ez-upload { display: flex; flex-direction: column; gap: 10px; }
.npg-ez-upload-zone {
  border: 1.5px dashed var(--ez-line);
  border-radius: var(--ez-radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: .2s;
  background: #fafafa;
  color: var(--ez-muted);
}
.npg-ez-upload-zone:hover {
  border-color: var(--ez-green);
  background: #f0f5f2;
  color: var(--ez-green);
}
.npg-ez-upload-zone span { font-size: 14px; font-weight: 500; }
.npg-ez-upload-zone small { font-size: 12px; color: #aaa; margin-left: auto; }
.npg-ez-upload-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.npg-ez-thumb {
  width: 56px; height: 56px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--ez-line);
}
.npg-ez-thumb-file {
  width: 56px; height: 56px;
  border-radius: 4px;
  background: #e8f0eb;
  border: 1px solid var(--ez-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--ez-green);
  text-transform: uppercase;
}

/* ── Textarea ── */
.npg-ez-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--ez-line);
  border-radius: var(--ez-radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--ez-ink);
  background: #fff;
  resize: vertical;
  min-height: 96px;
  transition: border-color .2s;
}
.npg-ez-textarea:focus {
  outline: none;
  border-color: var(--ez-green);
}

/* ── Currency label ── */
.npg-ez-currency {
  font-weight: 400;
  color: var(--ez-gold2);
  font-size: 14px;
}

/* ── Contact fields ── */
.npg-ez-contact {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 480px;
  margin-bottom: 32px;
}
.npg-ez-field { display: flex; flex-direction: column; gap: 6px; }
.npg-ez-field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ez-ink);
}
.npg-ez-field input {
  padding: 13px 16px;
  border: 1.5px solid var(--ez-line);
  border-radius: var(--ez-radius);
  font-size: 16px;
  font-family: inherit;
  color: var(--ez-ink);
  background: #fff;
  transition: border-color .2s;
}
.npg-ez-field input:focus {
  outline: none;
  border-color: var(--ez-green);
}
.npg-ez-field input.has-error { border-color: #c0392b; }

/* ── Review card ── */
.npg-ez-review {
  background: #fff;
  border: 1px solid var(--ez-line);
  border-radius: var(--ez-radius);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--ez-shadow);
}
.npg-ez-review-section {
  padding: 16px 24px;
  border-bottom: 1px solid var(--ez-line);
}
.npg-ez-review-section:last-child { border-bottom: none; }
.npg-ez-review-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ez-gold2);
  margin-bottom: 10px;
}
.npg-ez-review-row {
  display: flex;
  gap: 12px;
  padding: 5px 0;
  font-size: 14px;
}
.npg-ez-review-label {
  width: 130px;
  flex-shrink: 0;
  color: var(--ez-muted);
  font-weight: 500;
}
.npg-ez-review-val {
  color: var(--ez-ink);
  font-weight: 600;
  flex: 1;
}

/* ── Error ── */
.npg-ez-err {
  display: none;
  color: #c0392b;
  font-size: 13px;
  font-weight: 500;
  background: #fdecea;
  border: 1px solid #f5c6c2;
  border-radius: 4px;
  padding: 10px 14px;
  margin-top: 12px;
}
.npg-ez-submit-err {
  color: #c0392b;
  font-size: 13px;
  background: #fdecea;
  border: 1px solid #f5c6c2;
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

/* ── Actions (Back / Next) ── */
.npg-ez-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--ez-line);
  margin-top: 8px;
  gap: 12px;
}
.npg-ez-back-btn {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ez-muted);
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color .2s;
}
.npg-ez-back-btn:hover { color: var(--ez-ink); }

/* Next button — large, bold, gold */
.npg-ez-next-btn {
  padding: 14px 40px;
  background: var(--ez-green);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(6,42,31,.20);
}
.npg-ez-next-btn:hover {
  background: var(--ez-green2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6,42,31,.25);
}
.npg-ez-next-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* Submit button — gold */
.npg-ez-submit-btn {
  padding: 14px 40px;
  background: var(--ez-gold);
  color: var(--ez-green2);
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(201,162,39,.30);
}
.npg-ez-submit-btn:hover {
  background: var(--ez-gold2);
  transform: translateY(-1px);
}
.npg-ez-submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── Thank You ── */
.npg-ez-thankyou {
  text-align: center;
  padding: 60px 24px 40px;
  max-width: 520px;
  margin: 0 auto;
}
.npg-ez-ty-check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--ez-green);
  color: #fff;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.npg-ez-thankyou h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--ez-green2);
  margin-bottom: 10px;
}
.npg-ez-ty-name {
  font-size: 16px;
  color: var(--ez-ink);
  margin-bottom: 6px;
}
.npg-ez-ty-ref {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ez-gold2);
  margin-bottom: 10px;
}
.npg-ez-ty-msg {
  font-size: 15px;
  color: var(--ez-muted);
  margin-bottom: 36px;
}
.npg-ez-ty-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.npg-ez-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: #25d366;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 16px rgba(37,211,102,.30);
}
.npg-ez-wa-btn:hover {
  background: #20b858;
  transform: translateY(-1px);
}
.npg-ez-home-btn {
  font-size: 14px;
  color: var(--ez-muted);
  text-decoration: none;
  transition: color .2s;
}
.npg-ez-home-btn:hover { color: var(--ez-ink); }

/* ── Helpers ── */
.npg-ez-req { color: #c0392b; }
.npg-ez-opt { font-weight: 400; color: #aaa; font-size: 13px; }
.npg-ez-loader { color: #aaa; font-size: 13px; padding: 20px 0; }
.npg-ez-no-items { color: #aaa; font-size: 14px; padding: 16px 0; }

/* ── Topbar (replaces old custom header) ── */
.npg-ez-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 32px;
	background: var(--ez-green);
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.npg-ez-step-counter {
	font-size: 13px;
	color: rgba(255,255,255,.6);
	font-weight: 500;
}
.npg-ez-close {
	color: rgba(255,255,255,.5);
	text-decoration: none;
	font-size: 18px;
	transition: color .2s;
}
.npg-ez-close:hover { color: #fff; }

/* ── Topbar (step counter below site header) ── */
.npg-ez-topbar {
  background: var(--ez-green);
  padding: 8px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Site CSS override for estimate page ── */
body.npg-estimate-page .npg-ez img {
  max-width: 100% !important;
  height: auto !important;
}
body.npg-estimate-page .npg-ez-cards--large {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
}
body.npg-estimate-page .npg-ez-card-img {
  aspect-ratio: 4/3 !important;
  overflow: hidden !important;
}
body.npg-estimate-page .npg-ez-card-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-height: 220px !important;
}
body.npg-estimate-page .npg-ez-body {
  max-width: 860px !important;
  margin: 0 auto !important;
  padding: 40px 20px !important;
}