.bb-problem-page {
  --green: #356f55;
  --forest: #214034;
  --cream: #f5f2eb;
  --paper: #fffaf0;
  --sand: #e8dcc6;
  --coral: #e76f51;
  --ink: #17342a;
  --muted: #5c6d66;
  --line: rgba(33, 64, 52, .2);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Raleway, Avenir, Montserrat, Helvetica, Arial, sans-serif;
  --script: "Snell Roundhand", "Brush Script MT", cursive;
  background: var(--cream);
  color: var(--forest);
  font: 16px/1.55 var(--sans);
}

.bb-problem-page *,
.bb-problem-page *::before,
.bb-problem-page *::after { box-sizing: border-box; }
.bb-problem-inner { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.bb-problem-page h1,
.bb-problem-page h2,
.bb-problem-page h3 { margin: 0; color: var(--forest); font-family: var(--serif); font-weight: 500; line-height: 1.08; }
.bb-problem-page a { color: inherit; text-underline-offset: 3px; }
.bb-problem-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.bb-problem-hero {
  padding: 58px 0 44px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--paper), var(--cream));
}
.bb-problem-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 64px; align-items: center; }
.bb-problem-back { display: inline-flex; gap: 7px; align-items: center; margin-bottom: 18px; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.bb-problem-back:hover { color: var(--forest); text-decoration: underline; }
.bb-problem-back svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bb-problem-page h1 { max-width: 880px; font-size: clamp(54px, 6.5vw, 86px); letter-spacing: -.025em; }
.bb-problem-lead { max-width: 750px; margin: 15px 0 0; font-size: 20px; line-height: 1.5; }
.bb-problem-stamp {
  width: 150px;
  aspect-ratio: .84;
  justify-self: end;
  padding: 20px 12px;
  border: 2px dashed #8d7f68;
  background: #eadfc8;
  box-shadow: 0 10px 24px rgba(33,64,52,.14);
  text-align: center;
  transform: rotate(6deg);
}
.bb-problem-stamp strong { display: block; font: 900 28px/1 var(--sans); letter-spacing: 1px; }
.bb-problem-stamp span { display: block; margin-top: 14px; font: 20px/1 var(--script); }

.bb-problem-main { padding: 42px 0 62px; }
.bb-problem-layout { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(310px, .78fr); gap: 24px; align-items: start; }
.bb-problem-form-panel,
.bb-problem-aside { border: 1px solid var(--line); border-radius: 10px; }
.bb-problem-form-panel { min-width: 0; padding: 34px; background: #fff; box-shadow: 0 5px 0 rgba(33,64,52,.07); }
.bb-problem-aside { padding: 30px; background: rgba(255,250,240,.78); }
.bb-problem-aside > h2 { font-size: 34px; }
.bb-problem-aside > h2::after { content: ""; display: block; width: 84px; height: 3px; margin-top: 10px; background: var(--coral); transform: rotate(-2deg); }
.bb-problem-aside ol { display: grid; gap: 0; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: none; }
.bb-problem-aside li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 13px; padding: 0 0 24px; }
.bb-problem-aside li:not(:last-child)::after { content: ""; position: absolute; top: 42px; bottom: 4px; left: 20px; width: 1px; background: var(--line); }
.bb-problem-aside li > span { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--forest); border-radius: 50%; background: var(--forest); color: #fff; font: 19px/1 var(--serif); }
.bb-problem-aside p,
.bb-problem-aside small { margin: 0; }
.bb-problem-aside strong { display: block; padding-top: 2px; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.bb-problem-aside small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.bb-problem-wait-note { display: grid; grid-template-columns: 42px 1fr; gap: 13px; margin-top: 2px; padding: 16px; border-left: 3px solid var(--coral); background: #fff1eb; }
.bb-problem-wait-note svg { width: 31px; height: 31px; margin-top: 4px; fill: none; stroke: var(--coral); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bb-problem-contact { margin-top: 20px; padding-top: 19px; border-top: 1px solid var(--line); }
.bb-problem-contact h3 { font-size: 21px; }
.bb-problem-contact p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.bb-problem-contact a { color: var(--forest); font-weight: 700; }

.bb-problem-page-form-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
.bb-problem-page .wpcf7,
.bb-problem-page .wpcf7-form { margin: 0; }
.bb-problem-page .bb-issue-form { padding: 0; border: 0; background: transparent; }
.bb-problem-page .bb-issue-header { margin-bottom: 27px; }
.bb-problem-page .bb-issue-header h3 { font-size: clamp(34px, 4vw, 48px); }
.bb-problem-page .bb-issue-header p { margin: 10px 0 0; color: var(--muted); font-size: 17px; }
.bb-problem-page .bb-issue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 19px 22px; }
.bb-problem-page .bb-field-wide { grid-column: 1 / -1; }
.bb-problem-page .bb-issue-form label { display: block; color: var(--forest); font-size: 14px; font-weight: 800; }
.bb-problem-page .wpcf7-form-control-wrap { display: block; margin-top: 7px; }
.bb-problem-page input[type="text"],
.bb-problem-page input[type="email"],
.bb-problem-page select,
.bb-problem-page textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(33,64,52,.26);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: 500 15px/1.45 var(--sans);
}
.bb-problem-page input::placeholder,
.bb-problem-page textarea::placeholder { color: #8a9892; opacity: 1; }
.bb-problem-page input:focus,
.bb-problem-page select:focus,
.bb-problem-page textarea:focus { border-color: var(--forest); outline: 3px solid rgba(226,178,60,.38); outline-offset: 1px; }
.bb-problem-page textarea[name="issue-description"] { height: 140px; min-height: 140px; max-height: 260px; resize: vertical; }
.bb-problem-page .wpcf7-not-valid { border-color: var(--coral); }
.bb-problem-page .wpcf7-not-valid-tip { margin-top: 5px; color: #a83b25; font-size: 12px; font-weight: 700; }

.bb-problem-page .bb-upload {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0,1fr) auto;
  gap: 15px;
  align-items: center;
  margin-top: 25px;
  padding: 19px;
  border: 1px dashed #b68e57;
  border-radius: 8px;
  background: var(--paper);
}
.bb-problem-page .bb-upload-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #e3eee9; color: var(--green); }
.bb-problem-page .bb-upload-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bb-problem-page .bb-upload-copy strong,
.bb-problem-page .bb-upload-copy > span { display: block; }
.bb-problem-page .bb-upload-copy strong { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.bb-problem-page .bb-upload-copy small { margin-left: 7px; color: var(--muted); font: 800 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.bb-problem-page .bb-upload-copy > span { margin-top: 2px; color: var(--muted); font-size: 13px; }
.bb-problem-page .bb-upload-fields {
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  opacity: 0 !important;
}
.bb-problem-page .bb-upload-fields input[type="file"] { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.bb-problem-page .bb-upload-action {
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--green);
  border-radius: 7px;
  background: transparent;
  color: var(--forest);
  font: 800 13px/1.2 var(--sans);
  cursor: pointer;
}
.bb-problem-page .bb-upload-action:hover,
.bb-problem-page .bb-upload-action:focus-visible { background: var(--forest); color: #fff; }
.bb-problem-page .bb-upload-action:focus-visible { outline: 3px solid rgba(226,178,60,.5); outline-offset: 2px; }
.bb-problem-page .bb-upload-action:disabled { border-color: #aab5b0; background: #f0f2f1; color: #7d8984; cursor: default; }
.bb-problem-page .bb-upload.is-complete { border-color: var(--green); background: #f3f8f4; }
.bb-problem-page .bb-upload-list { grid-column: 2 / -1; display: grid; gap: 7px; margin: 5px 0 0; padding: 0; list-style: none; }
.bb-problem-page .bb-upload-list:empty { display: none; }
.bb-problem-page .bb-upload-list li { display: flex; gap: 10px; align-items: center; min-width: 0; padding-top: 8px; border-top: 1px solid rgba(33,64,52,.12); }
.bb-problem-page .bb-upload-file-name { min-width: 0; overflow: hidden; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.bb-problem-page .bb-upload-file-size { flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.bb-problem-page .bb-upload-remove { flex: 0 0 auto; margin-left: auto; padding: 3px 0; border: 0; background: transparent; color: #a83b25; font: 800 11px/1.2 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.bb-problem-page .bb-issue-description { margin-top: 23px; }
.bb-problem-page .bb-issue-footer { margin-top: 25px; }
.bb-problem-page .bb-issue-footer .wpcf7-submit {
  display: block;
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--coral);
  color: #fff;
  font: 800 13px/1.3 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.bb-problem-page .bb-issue-footer .wpcf7-submit:hover,
.bb-problem-page .bb-issue-footer .wpcf7-submit:focus-visible { background: #cf5e43; }
.bb-problem-page .bb-issue-footer .wpcf7-submit:focus-visible { outline: 3px solid rgba(226,178,60,.5); outline-offset: 2px; }
.bb-problem-page .bb-issue-footer > p { margin: 9px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.bb-problem-page .wpcf7-spinner { display: block; margin: 10px auto 0; }
.bb-problem-page .wpcf7-response-output { margin: 16px 0 0 !important; padding: 13px 15px !important; border: 1px solid var(--coral) !important; border-radius: 8px !important; color: var(--forest); font-size: 13px; }
.bb-problem-page form.sent .wpcf7-response-output {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 58px;
  padding: 16px 24px !important;
  border: 0 !important;
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 0 rgba(33,64,52,.12);
  text-align: center;
  font-weight: 700;
}

@media (max-width: 900px) {
  .bb-problem-inner { width: min(100% - 32px, 760px); }
  .bb-problem-hero-grid,
  .bb-problem-layout { grid-template-columns: 1fr; }
  .bb-problem-stamp { display: none; }
}

@media (max-width: 600px) {
  .bb-problem-page { font-size: 15px; }
  .bb-problem-inner { width: calc(100% - 28px); }
  .bb-problem-hero { padding: 42px 0 34px; }
  .bb-problem-page h1 { font-size: 48px; }
  .bb-problem-lead { font-size: 17px; }
  .bb-problem-main { padding: 28px 0 44px; }
  .bb-problem-form-panel,
  .bb-problem-aside { padding: 23px 17px; }
  .bb-problem-page .bb-issue-header h3 { font-size: 34px; }
  .bb-problem-page .bb-issue-header p { font-size: 15px; }
  .bb-problem-page .bb-issue-grid { grid-template-columns: 1fr; gap: 16px; }
  .bb-problem-page .bb-field-wide { grid-column: auto; }
  .bb-problem-page .bb-upload { grid-template-columns: 46px minmax(0,1fr); padding: 16px; }
  .bb-problem-page .bb-upload-icon { width: 42px; height: 42px; }
  .bb-problem-page .bb-upload-action { grid-column: 1 / -1; width: 100%; margin-top: 4px; }
  .bb-problem-page .bb-upload-list { grid-column: 1 / -1; }
  .bb-problem-page textarea[name="issue-description"] { height: 120px; min-height: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .bb-problem-page * { scroll-behavior: auto !important; }
}
