/* Medini Homes — Pricing widget (3-step stepper + lead capture).
   Scoped via .pw- classes. Brand palette : sand / ink / terra / gold-soft. */

.pw-root { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: #1C1A17; }

.pw-card {
  background: #F4EFE3;
  border: 1px solid rgba(28, 26, 23, 0.10);
  padding: 2.6rem 2.4rem;
  text-align: left;
  position: relative;
}
@media (max-width: 540px) { .pw-card { padding: 1.8rem 1.3rem; } }

/* Stepper */
.pw-stepper {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.6rem; flex-wrap: nowrap;
}
.pw-step-dot {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  flex: 0 0 auto;
}
.pw-step-dot span {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 500;
  background: #E8DFCB; color: rgba(28,26,23,0.45);
  transition: all .25s ease;
}
.pw-step-dot em {
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(28,26,23,0.45);
  white-space: nowrap;
}
.pw-step-dot.pw-active span { background: #A85432; color: #F4EFE3; }
.pw-step-dot.pw-active em { color: #A85432; font-weight: 600; }
.pw-step-dot.pw-done span { background: #1C1A17; color: #F4EFE3; }
.pw-step-dot.pw-done span::before { content: "✓"; font-size: 13px; }
.pw-step-dot.pw-done span > * { display: none; }
.pw-step-line {
  flex: 1; height: 1px;
  background: rgba(28,26,23,0.18);
  min-width: 16px;
  margin-bottom: 18px;
  transition: background .25s ease;
}
.pw-step-line.pw-done { background: #A85432; }

/* Panels */
.pw-form { width: 100%; }
.pw-panel { display: none; animation: pw-fade .35s ease; }
.pw-panel.pw-active { display: block; }
@keyframes pw-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.pw-h {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.7rem; font-weight: 400; line-height: 1.1;
  color: #1C1A17; margin-bottom: 0.3rem;
  letter-spacing: -0.005em;
}
.pw-h em { font-style: italic; color: #A85432; }
.pw-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem; color: rgba(28,26,23,0.62);
  margin-bottom: 1.4rem; line-height: 1.5;
}

/* Inputs */
.pw-form label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500; color: rgba(28,26,23,0.62);
  margin-bottom: 1rem;
}
.pw-form label > input,
.pw-form label > select,
.pw-form label > textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(28,26,23,0.18);
  background: #FAF6EB;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem; font-weight: 400;
  color: #1C1A17;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 0;
  transition: border-color .2s ease;
  -webkit-appearance: none; appearance: none;
}
.pw-form label > select {
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='none' stroke='%231C1A17' stroke-width='1.4' d='M1 1l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
}
.pw-form label > textarea { resize: vertical; min-height: 80px; }
.pw-form label > input:focus,
.pw-form label > select:focus,
.pw-form label > textarea:focus { outline: none; border-color: #A85432; }
.pw-form label > input::placeholder,
.pw-form label > textarea::placeholder { color: rgba(28,26,23,0.35); font-weight: 400; }

.pw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 540px) { .pw-row { grid-template-columns: 1fr; gap: 0; } }

/* Buttons */
.pw-nav { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.pw-btn {
  flex: 1; padding: 0.9rem 1.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer; border: none; border-radius: 0;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.pw-btn-primary {
  background: #1C1A17; color: #F4EFE3; flex: 2;
}
.pw-btn-primary:hover { background: #A85432; }
.pw-btn-back {
  background: transparent; color: #1C1A17;
  border: 1px solid rgba(28,26,23,0.25);
}
.pw-btn-back:hover { background: rgba(28,26,23,0.04); border-color: #1C1A17; }
.pw-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Amenities grid */
.pw-amen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 0.7rem; }
@media (max-width: 540px) { .pw-amen-grid { grid-template-columns: 1fr; } }
.pw-amen-toggle {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(28,26,23,0.14);
  background: #FAF6EB;
  cursor: pointer; user-select: none;
  transition: all 0.2s ease;
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem; font-weight: 500;
  letter-spacing: 0; text-transform: none;
  color: #1C1A17;
}
.pw-amen-toggle:hover { border-color: #A85432; }
.pw-amen-toggle input { display: none; }
.pw-amen-toggle .pw-check {
  width: 17px; height: 17px;
  border: 1.4px solid rgba(28,26,23,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: transparent;
  flex-shrink: 0;
  transition: all 0.2s ease;
  border-radius: 2px;
}
.pw-amen-toggle.pw-active { background: #EBE3D0; border-color: #A85432; }
.pw-amen-toggle.pw-active .pw-check {
  background: #A85432; border-color: #A85432; color: #F4EFE3;
}
.pw-amen-label { flex: 1; }

/* Result / lead block */
.pw-result-head {
  text-align: center;
  margin-bottom: 1.4rem;
}
.pw-result-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(168,84,50,0.12);
  color: #A85432;
  margin-bottom: 0.8rem;
}
.pw-result-h {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem; font-weight: 400;
  color: #1C1A17;
  margin-bottom: 0.4rem;
  letter-spacing: -0.005em;
}
.pw-result-h em { font-style: italic; color: #A85432; }
.pw-result-sub {
  font-size: 0.92rem; color: rgba(28,26,23,0.62);
  max-width: 32rem; margin: 0 auto;
  line-height: 1.55;
}

.pw-summary {
  background: #FAF6EB;
  border-left: 2px solid #A85432;
  padding: 1rem 1.1rem;
  margin: 1.2rem 0 1.6rem;
}
.pw-summary-row {
  display: flex; justify-content: space-between; gap: 0.8rem;
  padding: 0.35rem 0;
  font-size: 0.85rem;
}
.pw-summary-row span:first-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(28,26,23,0.55);
}
.pw-summary-row span:last-child {
  color: #1C1A17; font-weight: 500; text-align: right;
}

.pw-tiny {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(28,26,23,0.45);
  text-align: center; margin-top: 0.9rem;
  line-height: 1.6;
}

/* Honeypot */
.pw-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Success state */
.pw-success {
  text-align: center;
  padding: 2rem 0.5rem;
}
.pw-success-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #1C1A17; color: #F4EFE3;
  margin-bottom: 1rem;
}
.pw-success h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.7rem; font-weight: 400; line-height: 1.15;
  color: #1C1A17; margin-bottom: 0.6rem;
}
.pw-success h3 em { font-style: italic; color: #A85432; }
.pw-success p {
  font-size: 0.95rem; color: rgba(28,26,23,0.7);
  line-height: 1.55; max-width: 26rem; margin: 0 auto;
}

/* Error feedback */
.pw-form label.pw-error > input,
.pw-form label.pw-error > select,
.pw-form label.pw-error > textarea { border-color: #A85432; }

.pw-flash {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #FAF6EB;
  border-left: 2px solid #A85432;
  font-size: 0.85rem; color: #1C1A17;
  line-height: 1.5;
}
