/* ============================================================
   REAL Cut Mowing — Quote Form Styles
   ============================================================ */

/* ── page shell ── */
.qf-page { background: var(--cream); min-height: 100vh; }

.qf-hero {
  background: var(--forest);
  padding: 52px 0 44px;
  text-align: center;
  color: var(--cream);
}
.qf-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--cream);
  margin: 0 0 10px;
}
.qf-hero p {
  font-size: .98rem;
  color: rgba(244,239,226,.7);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}
.qf-hero .eyebrow { color: var(--grass); margin-bottom: 14px; }

/* ── progress bar ── */
.qf-progress-wrap {
  background: var(--forest);
  padding: 0 0 24px;
}
.qf-progress-track {
  width: min(760px, 100% - 40px);
  margin: 0 auto;
}
.qf-step-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.qf-step-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(244,239,226,.35);
  text-align: center;
  flex: 1;
  transition: color .3s;
}
.qf-step-label.done { color: var(--grass); }
.qf-step-label.active { color: var(--cream); }
.qf-bar {
  height: 4px;
  background: rgba(255,255,255,.12);
  border-radius: 99px;
  overflow: hidden;
}
.qf-bar-fill {
  height: 100%;
  background: var(--grass);
  border-radius: 99px;
  transition: width .5s cubic-bezier(.22,1,.36,1);
}
.qf-step-dots {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  position: relative;
}
.qf-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  transition: background .3s, transform .3s;
}
.qf-dot.done { background: var(--grass); }
.qf-dot.active { background: #fff; transform: scale(1.4); }

/* ── form body ── */
.qf-body {
  padding: 44px 0 80px;
}
.qf-container {
  width: min(720px, 100% - 40px);
  margin: 0 auto;
}

/* ── step panel ── */
.qf-panel {
  display: none;
  animation: qf-in .35s cubic-bezier(.22,1,.36,1) both;
}
.qf-panel.active { display: block; }
@keyframes qf-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.qf-step-head {
  margin-bottom: 32px;
}
.qf-step-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--forest);
  margin: 0 0 8px;
}
.qf-step-head p {
  color: var(--ink-soft);
  font-size: .96rem;
  margin: 0;
}

/* ── field styles ── */
.qf-field {
  margin-bottom: 20px;
}
.qf-label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  color: var(--forest);
  margin-bottom: 7px;
  letter-spacing: .01em;
}
.qf-label span { color: var(--grass); }

.qf-input,
.qf-select,
.qf-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--sand);
  border-radius: 12px;
  background: #fff;
  font-family: var(--font-body);
  font-size: .96rem;
  color: var(--ink);
  transition: border-color .25s, box-shadow .25s;
  -webkit-appearance: none;
  appearance: none;
}
.qf-input::placeholder,
.qf-textarea::placeholder { color: #b0ad9f; }
.qf-input:focus,
.qf-select:focus,
.qf-textarea:focus {
  outline: none;
  border-color: var(--grass);
  box-shadow: 0 0 0 3px rgba(107,166,68,.15);
}
.qf-input.error,
.qf-select.error,
.qf-textarea.error { border-color: #c0392b; }

.qf-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2321401b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
  cursor: pointer;
}

.qf-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.qf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.qf-hint {
  font-size: .8rem;
  color: #8a9a7a;
  margin-top: 6px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.5;
}
.qf-hint svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; color: var(--moss); }

.qf-error-msg {
  font-size: .8rem;
  color: #c0392b;
  margin-top: 5px;
  display: none;
}
.qf-error-msg.show { display: block; }

/* ── service cards ── */
.qf-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.qf-service-card {
  border: 1.5px solid var(--sand);
  border-radius: 14px;
  padding: 20px 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color .25s, background .25s, transform .2s;
  user-select: none;
  text-align: left;
  position: relative;
}
.qf-service-card:hover {
  border-color: var(--grass);
  transform: translateY(-2px);
}
.qf-service-card.selected {
  border-color: var(--grass);
  background: #f0f8e8;
}
.qf-service-card__icon {
  width: 38px; height: 38px;
  background: var(--cream);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  color: var(--moss);
  transition: background .25s, color .25s;
}
.qf-service-card.selected .qf-service-card__icon {
  background: var(--grass);
  color: #123006;
}
.qf-service-card__icon svg { width: 20px; height: 20px; }
.qf-service-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .88rem;
  color: var(--forest);
  margin: 0 0 4px;
  line-height: 1.3;
  letter-spacing: 0;
}
.qf-service-card p {
  font-size: .78rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}
.qf-service-card__check {
  position: absolute;
  top: 12px; right: 12px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--sand);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, border-color .25s;
}
.qf-service-card__check svg {
  width: 11px; height: 11px;
  color: #fff;
  opacity: 0;
  transition: opacity .2s;
}
.qf-service-card.selected .qf-service-card__check {
  background: var(--grass);
  border-color: var(--grass);
}
.qf-service-card.selected .qf-service-card__check svg { opacity: 1; }

/* ── photo upload ── */
.qf-upload-zone {
  border: 2px dashed var(--sand);
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  background: #fff;
  cursor: pointer;
  transition: border-color .25s, background .25s;
  position: relative;
}
.qf-upload-zone:hover,
.qf-upload-zone.drag-over {
  border-color: var(--grass);
  background: #f5fbee;
}
.qf-upload-zone input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
  width: 100%; height: 100%;
}
.qf-upload-icon {
  width: 52px; height: 52px;
  background: var(--cream);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  color: var(--moss);
}
.qf-upload-icon svg { width: 26px; height: 26px; }
.qf-upload-zone h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest);
  margin: 0 0 6px;
  letter-spacing: -.01em;
}
.qf-upload-zone p {
  font-size: .84rem;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.qf-upload-zone .btn { pointer-events: none; }
.qf-upload-note {
  font-size: .78rem;
  color: #9aaa8f;
  margin-top: 12px;
}

.qf-photo-previews {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.qf-photo-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--sand);
}
.qf-photo-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.qf-photo-remove {
  position: absolute;
  top: 6px; right: 6px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(30,36,25,.75);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background .2s;
}
.qf-photo-remove:hover { background: #c0392b; }
.qf-photo-remove svg { width: 13px; height: 13px; }

.qf-photo-prompt {
  background: var(--cream);
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 18px;
}
.qf-photo-prompt h4 {
  font-size: .84rem;
  font-weight: 700;
  color: var(--forest);
  margin: 0 0 8px;
  letter-spacing: 0;
}
.qf-photo-prompt ul {
  margin: 0; padding: 0 0 0 16px;
  font-size: .8rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ── frequency cards ── */
.qf-freq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.qf-freq-card {
  border: 1.5px solid var(--sand);
  border-radius: 14px;
  padding: 22px 20px;
  background: #fff;
  cursor: pointer;
  transition: border-color .25s, background .25s;
  position: relative;
}
.qf-freq-card:hover { border-color: var(--grass); }
.qf-freq-card.selected {
  border-color: var(--grass);
  background: #f0f8e8;
}
.qf-freq-card__label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--forest);
  margin-bottom: 4px;
}
.qf-freq-card__desc {
  font-size: .82rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.qf-freq-badge {
  position: absolute;
  top: -1px; right: 16px;
  background: var(--grass);
  color: #123006;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 0 0 8px 8px;
}
.qf-freq-card__check {
  position: absolute;
  top: 14px; right: 14px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--sand);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, border-color .25s;
}
.qf-freq-card__check svg {
  width: 11px; height: 11px; color: #fff;
  opacity: 0; transition: opacity .2s;
}
.qf-freq-card.selected .qf-freq-card__check {
  background: var(--grass); border-color: var(--grass);
}
.qf-freq-card.selected .qf-freq-card__check svg { opacity: 1; }

.qf-recurring-note {
  background: #edf8e0;
  border: 1px solid #c0dfa0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 16px;
  font-size: .84rem;
  color: var(--forest);
  line-height: 1.55;
  display: none;
}
.qf-recurring-note.show { display: block; }

/* ── additional questions ── */
.qf-question {
  background: #fff;
  border: 1.5px solid var(--sand);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 12px;
}
.qf-question__text {
  font-weight: 600;
  font-size: .92rem;
  color: var(--forest);
  margin-bottom: 12px;
}
.qf-yn {
  display: flex;
  gap: 10px;
}
.qf-yn label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1.5px solid var(--sand);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: .88rem;
  color: var(--ink-soft);
  transition: border-color .2s, background .2s, color .2s;
  user-select: none;
}
.qf-yn input[type="radio"] { display: none; }
.qf-yn input[type="radio"]:checked + span {
  /* handled via JS class on label */
}
.qf-yn label.selected-yes {
  border-color: var(--grass);
  background: #f0f8e8;
  color: var(--forest);
}
.qf-yn label.selected-no {
  border-color: var(--sand);
  background: var(--cream);
  color: var(--ink-soft);
}
.qf-text-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--sand);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .25s, box-shadow .25s;
}
.qf-text-input:focus {
  outline: none;
  border-color: var(--grass);
  box-shadow: 0 0 0 3px rgba(107,166,68,.15);
}
.qf-text-input::placeholder { color: #b0ad9f; }

/* ── review ── */
.qf-review-section {
  background: #fff;
  border: 1.5px solid var(--sand);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 16px;
}
.qf-review-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sand);
}
.qf-review-section__head h3 {
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 700;
  color: var(--forest);
  margin: 0;
  letter-spacing: 0;
}
.qf-review-edit {
  font-size: .8rem;
  font-weight: 600;
  color: var(--grass);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
}
.qf-review-row {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  font-size: .88rem;
}
.qf-review-row__label {
  width: 120px;
  flex-shrink: 0;
  color: var(--ink-soft);
  font-weight: 500;
}
.qf-review-row__val { color: var(--ink); }
.qf-service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.qf-chip {
  background: #edf8e0;
  color: var(--forest);
  border: 1px solid #c0dfa0;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: .8rem;
  font-weight: 600;
}
.qf-review-photos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.qf-review-photo {
  width: 60px; height: 60px;
  border-radius: 8px;
  object-fit: cover;
}
.qf-review-desc {
  font-size: .88rem;
  color: var(--ink-soft);
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ── step divider ── */
.qf-step-divider {
  height: 1px;
  background: var(--sand);
  margin: 28px 0 24px;
}

/* ── promo code ── */
.qf-promo-wrap {
  background: var(--cream);
  border: 1.5px solid var(--sand);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 20px;
}
.qf-promo-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.qf-promo-row .qf-input {
  flex: 1;
  font-weight: 600;
  font-size: .92rem;
}
.qf-promo-row .btn {
  flex-shrink: 0;
  white-space: nowrap;
}
.qf-promo-msg {
  font-size: .84rem;
  font-weight: 600;
  margin-top: 9px;
  min-height: 1.2em;
}
.qf-promo-msg.success { color: #2e7d1f; }
.qf-promo-msg.error   { color: #c0392b; }

/* ── privacy ── */
.qf-privacy {
  background: var(--cream);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 24px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.qf-privacy input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--grass);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.qf-privacy label {
  font-size: .84rem;
  color: var(--ink-soft);
  line-height: 1.6;
  cursor: pointer;
}

/* ── nav buttons ── */
.qf-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--sand);
}
.qf-nav .btn { min-width: 130px; justify-content: center; }
#qf-prev { visibility: hidden; }
#qf-prev.visible { visibility: visible; }

.qf-submit-wrap {
  text-align: center;
}
.qf-submit-wrap .btn {
  min-width: 220px;
  font-size: 1.05rem;
  padding: 1em 2em;
}

/* ── success state ── */
.qf-success {
  display: none;
  text-align: center;
  padding: 60px 20px;
}
.qf-success.show { display: block; }
.qf-success__icon {
  width: 72px; height: 72px;
  background: #edf8e0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  color: var(--grass);
}
.qf-success__icon svg { width: 36px; height: 36px; }
.qf-success h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--forest);
  margin-bottom: 12px;
}
.qf-success p {
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

/* ── responsive ── */
@media (max-width: 640px) {
  .qf-hero { padding: 36px 0 28px; }
  .qf-services-grid { grid-template-columns: repeat(2, 1fr); }
  .qf-freq-grid { grid-template-columns: 1fr; }
  .qf-photo-previews { grid-template-columns: repeat(3, 1fr); }
  .qf-row { grid-template-columns: 1fr; }
  .qf-review-row { flex-direction: column; gap: 2px; }
  .qf-review-row__label { width: auto; }
  .qf-step-label { display: none; }
}
@media (max-width: 420px) {
  .qf-services-grid { grid-template-columns: 1fr 1fr; }
}
