/* ═══════════════════════════════════════════════════════════════
   RJG RENOVATION CALCULATOR — STYLES (v1.1 — brand colours)
═══════════════════════════════════════════════════════════════ */

.rjg-calc * { box-sizing: border-box; }
.rjg-calc {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 20px;
  color: #1C1C1E;
}

/* ── Progress bar ── */
.rjg-progress-wrap { margin-bottom: 36px; }
.rjg-progress-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 500; color: #6B6560;
  margin-bottom: 10px; letter-spacing: 0.02em;
}
.rjg-progress-meta .rjg-step-count { color: #1C1C1E; font-weight: 600; }
.rjg-progress-bar { height: 6px; background: #EEEEEE; border-radius: 10px; overflow: hidden; }
.rjg-progress-fill {
  height: 100%; background: linear-gradient(90deg, #FFC000 0%, #E5AC00 100%);
  border-radius: 10px; width: 0%; transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Steps ── */
.rjg-step { display: none; animation: rjgFade 0.35s ease; }
.rjg-step.active { display: block; }
@keyframes rjgFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rjg-step-header { margin-bottom: 24px; }
.rjg-step-title {
  font-size: 26px; font-weight: 600; color: #1C1C1E;
  margin: 0 0 8px; line-height: 1.25;
  display: flex; align-items: center; gap: 10px;
}
.rjg-step-desc { font-size: 15px; color: #6B6560; margin: 0; line-height: 1.55; }

/* ── Sub questions ── */
.rjg-sub-question {
  font-size: 15px; font-weight: 600; color: #1C1C1E;
  margin: 28px 0 12px; display: flex; align-items: center; gap: 8px;
}
.rjg-sub-question:first-child { margin-top: 0; }
.rjg-price-tag {
  display: inline-block; background: #FFF4D0; color: #8C6900;
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px;
}

/* ── Info tooltip button ── */
.rjg-info-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #F5F3EF;
  color: #6B6560;
  border: 1px solid #E0DCD4;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
  padding: 0;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  position: relative;
  flex-shrink: 0;
}
.rjg-info-btn:hover {
  background: #FFC000;
  color: #1C1C1E;
  border-color: #FFC000;
}
.rjg-info-btn::before { content: "i"; font-style: italic; font-family: Georgia, serif; }

/* Tooltip popup */
.rjg-info-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #1C1C1E;
  color: #ffffff;
  font-size: 12px;
  font-weight: 400;
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 8px;
  width: 240px;
  text-align: left;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s, visibility 0.18s, transform 0.18s;
  white-space: normal;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.rjg-info-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1C1C1E;
}
.rjg-info-btn:hover .rjg-info-tip,
.rjg-info-btn:focus .rjg-info-tip,
.rjg-info-btn.active .rjg-info-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-2px);
  pointer-events: auto;
}

/* Mobile: anchor tooltip to right edge so it doesn't overflow */
@media (max-width: 600px) {
  .rjg-info-tip {
    width: 220px;
    left: auto;
    right: 0;
    transform: translateX(0);
  }
  .rjg-info-tip::after { left: auto; right: 8px; transform: none; }
  .rjg-info-btn:hover .rjg-info-tip,
  .rjg-info-btn:focus .rjg-info-tip,
  .rjg-info-btn.active .rjg-info-tip {
    transform: translateY(-2px);
  }
}

/* ── Tile grid ── */
.rjg-tile-grid { display: grid; gap: 12px; margin-bottom: 8px; }
.rjg-tile-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.rjg-tile-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.rjg-tile-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 600px) {
  .rjg-tile-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .rjg-tile-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Tile ── */
.rjg-tile {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 22px 14px; border: 2px solid #EAE7E0; border-radius: 14px;
  background: #ffffff; cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 500; color: #3C3C3E; line-height: 1.35;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.15s;
  min-height: 90px; user-select: none;
}
.rjg-tile:hover { border-color: #FFC000; background: #FFFCF3; transform: translateY(-1px); }
.rjg-tile.selected {
  border-color: #FFC000; background: #FFF9E5;
  box-shadow: 0 0 0 3px rgba(255,192,0,0.22); color: #1C1C1E;
}
.rjg-tile .rjg-tile-emoji { font-size: 36px; line-height: 1; margin-bottom: 10px; }
.rjg-tile .rjg-tile-label { font-size: 15px; font-weight: 600; }
.rjg-tile .rjg-tile-sub {
  display: block; margin-top: 6px; font-size: 12px;
  color: #9B9490; font-weight: 400;
}
.rjg-tile.selected .rjg-tile-sub { color: #8C6900; }

/* ── Wide tile (Step 2) ── */
.rjg-tile.wide {
  flex-direction: column; align-items: flex-start; text-align: left;
  padding: 24px 22px; min-height: auto;
}
.rjg-tile.wide .rjg-tile-label { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.rjg-tile.wide .rjg-tile-sub { margin: 0 0 14px; font-size: 13px; line-height: 1.5; }
.rjg-tile-badges { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.rjg-tile-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 500;
  background: #F5F3EF; color: #6B6560; border: 1px solid #E8E4DC;
}
.rjg-tile.selected .rjg-tile-badge { background: #FFF4D0; color: #8C6900; border-color: #FFE08A; }

/* ── Fixture grid ── */
.rjg-fixture-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 500px) { .rjg-fixture-grid { grid-template-columns: 1fr; } }
.rjg-fixture-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 2px solid #EAE7E0; border-radius: 12px;
  background: #ffffff; cursor: pointer; font-size: 14px; font-weight: 500;
  color: #3C3C3E; transition: border-color 0.18s, background 0.18s; user-select: none;
}
.rjg-fixture-item:hover { border-color: #FFC000; background: #FFFCF3; }
.rjg-fixture-item.selected { border-color: #FFC000; background: #FFF9E5; color: #1C1C1E; }
.rjg-fixture-icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.rjg-fixture-label { flex: 1; }
.rjg-fixture-check {
  width: 20px; height: 20px; border: 2px solid #D0C8BA; border-radius: 5px;
  flex-shrink: 0; position: relative; transition: background 0.15s, border-color 0.15s;
}
.rjg-fixture-item.selected .rjg-fixture-check { background: #FFC000; border-color: #FFC000; }
.rjg-fixture-item.selected .rjg-fixture-check::after {
  content: ''; position: absolute; left: 5px; top: 1px;
  width: 5px; height: 10px; border: 2px solid #1C1C1E;
  border-top: none; border-left: none; transform: rotate(45deg);
}

/* ── Supply descriptions ── */
.rjg-supply-desc {
  margin-top: 10px; padding: 12px 14px; background: #FFFBEC;
  border-left: 3px solid #FFC000; border-radius: 6px;
  font-size: 13px; color: #6B6560; line-height: 1.5; display: none;
}
.rjg-supply-desc.active { display: block; }
.rjg-supply-desc em { color: #8C6900; font-style: normal; font-weight: 600; }

/* ── Info box ── */
.rjg-info-box {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 20px; padding: 12px 16px; background: #FFFBEC;
  border-radius: 10px; font-size: 13px; color: #6B6560; line-height: 1.5;
}
.rjg-info-box svg { width: 18px; height: 18px; flex-shrink: 0; stroke: #FFC000; margin-top: 1px; }
.rjg-info-box p { margin: 0; }

/* ── Navigation ── */
.rjg-nav {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid #EAE7E0;
}
.rjg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border: none; border-radius: 10px;
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s; min-width: 120px;
}
.rjg-btn-primary { background: #FFC000; color: #1C1C1E; }
.rjg-btn-primary:hover {
  background: #E5AC00; transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255,192,0,0.35);
}
.rjg-btn-secondary { background: transparent; color: #6B6560; border: 1px solid #D0C8BA; }
.rjg-btn-secondary:hover { background: #F5F3EF; color: #1C1C1E; }
.rjg-btn svg { width: 16px; height: 16px; }

/* ── Error states ── */
.rjg-error {
  margin-top: 14px; padding: 10px 14px; background: #FEF2F2;
  border-left: 3px solid #DC2626; border-radius: 6px;
  font-size: 13px; color: #991B1B; display: none;
}
.rjg-error.show { display: block; }

/* ── Measurements layout ── */
.rjg-measure-group { margin-bottom: 24px; }
.rjg-measure-group:last-child { margin-bottom: 0; }
.rjg-measure-label {
  display: block; font-size: 12px; font-weight: 600; color: #6B6560;
  margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   STEP 7 — COMPACT, BEAUTIFUL PERSONAL DETAILS
═══════════════════════════════════════════════════════════════ */

.rjg-step[data-step="7"] .rjg-step-header {
  text-align: center;
  margin-bottom: 28px;
}

.rjg-step[data-step="7"] .rjg-step-title {
  justify-content: center;
  font-size: 24px;
}

.rjg-cf7-wrap {
  background: #ffffff;
  border: 1px solid #EAE7E0;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.rjg-cf7-wrap .wpcf7 { margin: 0; }

/* Compact input styling */
.rjg-cf7-wrap input[type="text"],
.rjg-cf7-wrap input[type="email"],
.rjg-cf7-wrap input[type="tel"],
.rjg-cf7-wrap textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #EAE7E0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: #1C1C1E;
  background: #FAFAF8;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  margin-bottom: 10px;
}
.rjg-cf7-wrap input::placeholder,
.rjg-cf7-wrap textarea::placeholder { color: #9B9490; }

.rjg-cf7-wrap input:focus,
.rjg-cf7-wrap textarea:focus {
  outline: none;
  border-color: #FFC000;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255,192,0,0.18);
}

.rjg-cf7-wrap textarea {
  min-height: 80px;
  resize: vertical;
}

/* Inline form rows */
.rjg-cf7-wrap .nectar-wpcf7-inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 0;
}
.rjg-cf7-wrap .nectar-wpcf7-inline-field { margin: 0; }
@media (max-width: 500px) {
  .rjg-cf7-wrap .nectar-wpcf7-inline-form { grid-template-columns: 1fr; gap: 0; }
}

/* Section labels (h6) */
.rjg-cf7-wrap h6 {
    font-size: 11px;
    font-weight: 700;
    color: #9B9490;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0px !important;
    padding-top: 0px !important;
}
.rjg-cf7-wrap h6:first-child { margin-top: 0; }

/* Submit button — full width, prominent, brand colour */
.rjg-cf7-wrap .wpcf7-submit {
  width: 100%;
  padding: 16px 28px;
  background: #FFC000;
  color: #1C1C1E;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 18px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.02em;
}
.rjg-cf7-wrap .wpcf7-submit:hover {
  background: #E5AC00;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,192,0,0.35);
}

/* CF7 spinner + validation tweaks */
.rjg-cf7-wrap .wpcf7-spinner { display: none; }
.rjg-cf7-wrap .wpcf7-not-valid-tip {
  font-size: 12px;
  color: #DC2626;
  margin-top: -6px;
  margin-bottom: 8px;
}
.rjg-cf7-wrap .wpcf7-not-valid {
  border-color: #DC2626 !important;
  background: #FEF2F2 !important;
}
.rjg-cf7-wrap .wpcf7 form .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
}

/* Hide hidden CF7 fields */
.rjg-cf7-wrap input[type="hidden"] { display: none; }

/* Compact step 7 reassurance footer */
.rjg-cf7-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #EAE7E0;
  font-size: 12px;
  color: #6B6560;
  flex-wrap: wrap;
}
.rjg-cf7-footer-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.rjg-cf7-footer-item svg {
  width: 14px;
  height: 14px;
  stroke: #FFC000;
}
.material .wpcf7-form .nectar-wpcf7-inline-form {
    padding: 5px 0 !important;
}
.rjg-cf7-wrap p {
    padding-bottom: 0px !important;
}
input.wpcf7-form-control.wpcf7-submit.has-spinner {
    margin-top: 0px !important;
}