/* YardVision Quiz -- Portable Layout (no Elementor/theme dependency) */
/* Used alongside quiz-states.css (card interactivity + photo upload styles, also standalone) */

.yv-quiz {
  background: #1a1a1a;
  color: #c9c6c0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 40px 20px 80px;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

.yv-quiz * { box-sizing: border-box; }

.yv-step-inner { max-width: 720px; margin: 0 auto; text-align: center; }

/* ---- Typography ---- */
.yv-h1 { color: #ffffff !important; font-size: 32px !important; font-weight: 700 !important; margin: 0 0 16px !important; line-height: 1.2 !important; }
.yv-sub { color: #c9c6c0 !important; font-size: 16px !important; line-height: 1.6 !important; margin: 0 0 32px !important; }
.yv-question { color: #ffffff !important; font-size: 26px !important; font-weight: 700 !important; margin: 0 0 8px !important; }
.yv-hint { color: #999 !important; font-size: 15px !important; margin: 0 0 28px !important; }
.yv-label { color: #c8a55a; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin: 24px 0 12px; text-align: left; }
.yv-eyebrow { color: #c8a55a; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; text-align: center; margin: 0 0 20px; }

/* ---- How It Works (hero step) ---- */
.yv-how-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 36px;
}
.yv-how-card {
  flex: 1 1 calc(50% - 8px);
  min-width: 220px;
  background: #1f1f1f;
  border: 1px solid #4a7c59;
  border-radius: 10px;
  padding: 24px 18px;
  text-align: center;
}
.yv-how-num { color: #c8a55a; font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.yv-how-icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.yv-how-icon svg { width: 26px; height: 26px; }
.yv-how-title { color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.yv-how-desc { color: #999; font-size: 14px; line-height: 1.5; }

/* ---- Card grids ---- */
.yv-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
}

.yv-card-grid--2 [data-quiz-card],
.yv-card-grid--2 .yv-card { flex: 0 0 calc(48% - 8px); max-width: calc(48% - 8px); }

.yv-card-grid--3 [data-quiz-card],
.yv-card-grid--3 .yv-card { flex: 0 0 calc(30% - 12px); max-width: calc(30% - 12px); }

.yv-card-grid--4 [data-quiz-card],
.yv-card-grid--4 .yv-card { flex: 0 0 calc(25% - 12px); max-width: calc(25% - 12px); }

@media (max-width: 700px) {
  .yv-card-grid--2 .yv-card,
  .yv-card-grid--3 .yv-card,
  .yv-card-grid--4 .yv-card { flex: 0 0 calc(48% - 8px); max-width: calc(48% - 8px); }
}

/* ---- Card (icon style, used in area/projectType/photoConsent steps) ---- */
.yv-card {
  background: #1f1f1f;
  border-radius: 12px;
  padding: 28px 18px;
  text-align: center;
}
.yv-card-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border: 2px solid #c9c6c0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #c9c6c0;
}
.yv-card-icon svg { width: 26px; height: 26px; }
.yv-card-title { color: #fff; font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.yv-card-desc { color: #999; font-size: 13px; line-height: 1.5; }

/* ---- Pill (text-only cards, used in details step) ---- */
.yv-card-grid--auto { justify-content: flex-start; margin-bottom: 12px; }
.yv-pill {
  background: #1f1f1f;
  border-radius: 24px;
  padding: 12px 22px;
  font-size: 14px;
  color: #e0e0e0;
  font-weight: 600;
}

/* ---- Buttons ---- */
.yv-btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: inherit;
}
.yv-btn-primary { background: #4a7c59; color: #fff; }
.yv-btn-primary:hover { background: #5a8c69; }
.yv-btn-outline { background: transparent; color: #c9c6c0; border-color: #444; }
.yv-btn-outline:hover { border-color: #c8a55a; color: #c8a55a; }
.yv-btn-large { font-size: 17px; padding: 16px 40px; }

.yv-nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

/* ---- Forms (contact step) ---- */
.yv-form {
  max-width: 480px;
  margin: 0 auto 20px;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 32px;
}
.yv-form-group { margin-bottom: 16px; }
.yv-form-label {
  display: block;
  color: #c8a55a;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.yv-input, .yv-textarea {
  width: 100%;
  background: #252525;
  color: #e0e0e0;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
}
.yv-input:focus, .yv-textarea:focus {
  border-color: #c8a55a;
  box-shadow: 0 0 0 2px rgba(200, 165, 90, 0.15);
  outline: none;
}
.yv-input::placeholder, .yv-textarea::placeholder { color: #666; }
.yv-textarea { resize: vertical; max-width: 100%; margin-bottom: 12px; }

.yv-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
}
.yv-checkbox-row input[type="checkbox"] { margin-top: 3px; }
.yv-checkbox-row label { color: #c9c6c0; font-size: 13px; line-height: 1.5; }

/* Step visibility is fully controlled by quiz-controller.js via inline styles -- no CSS default here, since JS uses display:"" to mean shown */

/* ---- Thank you step (hardened against host theme layout/color rules) ---- */
.yv-thankyou {
  column-count: 1 !important;
  -webkit-column-count: 1 !important;
  -moz-column-count: 1 !important;
  float: none !important;
  max-width: 640px !important;
  margin: 0 auto !important;
  text-align: center !important;
  padding: 20px 0 !important;
}
.yv-thankyou * {
  float: none !important;
}
.yv-thankyou .yv-question {
  color: #ffffff !important;
}
.yv-thankyou .yv-hint {
  color: #c9c6c0 !important;
}

/* ---- Social share block (thank you step) ---- */
.yv-social-share {
  display: block !important;
  column-count: 1 !important;
  margin-top: 28px !important;
  padding-top: 24px !important;
  border-top: 1px solid #2a2a2a !important;
  text-align: center !important;
}
.yv-social-share .yv-social-eyebrow {
  color: #c9c6c0 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  margin: 0 0 16px !important;
  max-width: 480px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.yv-social-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
  max-width: 420px !important;
  margin: 0 auto !important;
}
@media (max-width: 480px) {
  .yv-social-grid { grid-template-columns: 1fr !important; }
}
.yv-social-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 12px 14px !important;
  background: #252525 !important;
  border: 1px solid #3a3a3a !important;
  border-radius: 8px !important;
  color: #e0e0e0 !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: border-color 0.2s, transform 0.2s !important;
}
.yv-social-link svg { flex-shrink: 0; }
.yv-social-link:hover {
  border-color: #c8a55a !important;
  transform: translateY(-2px) !important;
}
.yv-social-footer {
  color: #666 !important;
  font-size: 12px !important;
  margin-top: 20px !important;
}

