.bb-project-review-form form { display: grid; gap: 1rem; margin-top: 1rem; }
.bb-project-review-form form + form { margin-top: 1.4rem; }
.bb-project-review-form label { display: grid; gap: .4rem; font-weight: 700; }
.bb-project-review-form select,
.bb-project-review-form textarea { box-sizing: border-box; width: 100%; max-width: 100%; border: 1px solid #aebdc1; border-radius: 5px; padding: .7rem; background: #fff; color: #173538; font: inherit; }
.bb-project-review-form textarea { min-height: 8rem; resize: vertical; }
.bb-project-review-form select { min-height: 48px; }
.bb-project-review-form fieldset { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; border: 1px solid #d4dedf; border-radius: 5px; padding: .8rem; }
.bb-project-review-form fieldset label,
.bb-project-review-form .bb-review-consent { display: flex; align-items: flex-start; gap: .55rem; min-height: 44px; font-weight: 400; cursor: pointer; }
.bb-project-review-form input[type="radio"],
.bb-project-review-form input[type="checkbox"] { flex: 0 0 auto; width: 1.2rem; height: 1.2rem; margin-top: .15rem; }
.bb-project-review-form .button { justify-self: start; min-height: 2.7rem; }
.bb-review-status { padding: .7rem .9rem; border-left: 3px solid #367c82; background: #edf5f4; }
.project-customer-reviews { margin: 3rem 0; }
.project-customer-reviews h2 { margin-bottom: 1.2rem; }
.project-review-list { display: grid; gap: 1rem; }
.project-review-card { margin: 0; padding: 1.3rem 1.5rem; border-left: 4px solid #bb843f; border-radius: 4px; background: #f8f7f3; }
.project-review-card p { margin: 0 0 .8rem; overflow-wrap: anywhere; }
.project-review-card .project-review-stars { color: #9b6727; letter-spacing: .1em; }
.project-review-card footer { font-weight: 700; }
.project-review-card footer small { display: block; margin-top: .35rem; color: #506a72; font-size: .78rem; font-weight: 400; letter-spacing: 0; }
.bb-project-review-form { min-width: 0; }
.bb-project-review-form > div { min-width: 0; width: 100%; }
.bb-project-review-form fieldset { min-width: 0; margin: 0; }
.bb-project-review-form legend { padding-inline: .3rem; }
.bb-project-review-form form > p { margin: 0; color: #506a72; font-size: .9rem; }
.bb-project-review-form .button { height: auto; padding: .8rem 1.2rem; white-space: normal; text-align: center; line-height: 1.5; }
.bb-project-review-form :is(select,textarea,button,a,input):focus-visible,
.bb-review-entry a:focus-visible,
.bb-review-help a:focus-visible,
.project-review-card a:focus-visible { outline: 3px solid #00899c; outline-offset: 4px; }

/* Public entry: verified customers submit in their private project, never here. */
.bb-review-entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 6vw, 86px); padding-block: 64px; }
.bb-review-entry-copy { min-width: 0; }
.bb-review-entry-copy h2 { margin: 12px 0 20px; font: 500 clamp(2.15rem, 3.9vw, 3.55rem)/1.1 Georgia, serif; letter-spacing: -.03em; color: #082e3c; }
.bb-review-entry-copy > p { max-width: 540px; color: #506570; }
.bb-review-entry-copy .button { min-height: 50px; height: auto; gap: 18px; margin-top: 14px; padding: 16px 22px; text-transform: none; letter-spacing: 0; line-height: 1.35; white-space: normal; }
.bb-review-entry-copy .bb-review-entry-note { margin-top: 18px; max-width: 420px; font-size: .85rem; }
.bb-review-guide { min-width: 0; padding: clamp(22px, 3vw, 38px); border: 1px solid #dce8e8; border-radius: 12px; background: linear-gradient(135deg,#f6fbfb,#edf5f5); }
.bb-review-guide ol { display: grid; gap: 24px; margin: 25px 0 0; padding: 0; list-style: none; }
.bb-review-guide li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 16px; }
.bb-review-guide li > span { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #bee0e3; border-radius: 50%; background: #fff; color: #007b8d; font-size: .75rem; font-weight: 800; }
.bb-review-guide h3 { margin: 0 0 5px; color: #163a45; font: 700 1rem/1.4 Arial, sans-serif; }
.bb-review-guide p { margin: 0; color: #506570; font-size: .9rem; line-height: 1.65; }
.bb-review-directory { padding-block: 12px 50px; }
.bb-review-directory > header { max-width: 760px; margin-bottom: 26px; }
.bb-review-directory h2 { margin: 10px 0 12px; color: #082e3c; font: 500 clamp(1.9rem, 3vw, 2.7rem)/1.15 Georgia, serif; letter-spacing: -.02em; }
.bb-review-directory > header p { color: #506570; }
.bb-review-directory .project-review-list { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 20px; }
.bb-review-directory .project-review-card { padding: 28px; border: 1px solid #dce8e8; border-top: 3px solid #00899c; background: #fff; border-radius: 8px; box-shadow: 0 8px 24px #07374408; min-width: 0; }
.bb-review-directory .project-review-card a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: #006d7e; text-decoration: underline; text-underline-offset: 3px; }
.bb-review-empty { margin: 0; padding: 32px; border: 1px solid #dce8e8; border-radius: 10px; background: #f7fafb; color: #506570; }
.bb-review-empty :is(h3,strong) { color: #143843; }
.bb-review-empty p { max-width: 720px; margin: 8px 0 0; }
.bb-review-help { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 60px; padding: 26px 30px; border: 1px solid #dce8e8; border-radius: 8px; background: #f2f8f8; }
.bb-review-help h3 { margin: 0 0 5px; color: #153945; font: 700 1.1rem/1.4 Arial,sans-serif; }
.bb-review-help p { margin: 0; color: #506570; font-size: .9rem; }
.bb-review-help a { display: inline-flex; align-items: center; gap: 15px; flex: 0 0 auto; min-height: 44px; color: #006d7e; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .bb-review-entry { grid-template-columns: minmax(0,1fr); gap: 26px; padding-block: 36px; }
  .bb-review-entry-copy .button { width: 100%; justify-content: center; }
  .bb-review-directory { padding-block: 12px 28px; }
  .bb-review-directory .project-review-list { grid-template-columns: minmax(0,1fr); }
  .bb-review-directory .project-review-card, .bb-review-empty { padding: 22px; }
  .bb-review-help { flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px; margin-bottom: 36px; }
  .bb-project-review-form select, .bb-project-review-form textarea { font-size: 16px; }
  .bb-project-review-form .button { justify-self: stretch; width: 100%; font-size: 14px; }
}

/* Guest review: one clear, private-until-approved action on a published project. */
.bb-guest-review { min-width: 0; margin: clamp(34px, 5vw, 64px) 0 16px; padding: clamp(22px, 3.4vw, 42px); border: 1px solid #d6e7e9; border-radius: 12px; background: linear-gradient(150deg, #f0f8f8 0, #fff 55%); box-shadow: 0 18px 45px #0738450d; scroll-margin-top: 28px; }
.bb-guest-review-intro h2 { margin: 8px 0 10px; color: #082e3c; font: 500 clamp(1.85rem, 3vw, 2.7rem)/1.12 Georgia, serif; letter-spacing: -.03em; }
.bb-guest-review-intro p { max-width: 680px; margin: 0; color: #506570; }
.bb-guest-review-form { display: grid; gap: 22px; margin-top: 28px; }
.bb-guest-review-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bb-guest-review-field { display: grid; min-width: 0; gap: 7px; }
.bb-guest-review-field > label, .bb-guest-review-rating legend { color: #183843; font-size: .88rem; font-weight: 800; }
.bb-guest-review-field > label span, .bb-guest-review-rating legend span { color: #a13c30; }
.bb-guest-review-field :is(input, textarea) { width: 100%; min-width: 0; max-width: 100%; padding: 12px 14px; border: 1px solid #b8cdd0; border-radius: 6px; background: #fff; color: #173538; font: inherit; font-size: 1rem; }
.bb-guest-review-field input { min-height: 48px; }
.bb-guest-review-field textarea { min-height: 140px; resize: vertical; }
.bb-guest-review-field > small, .bb-guest-review-submit > small { color: #506570; font-size: .79rem; line-height: 1.5; }
.bb-guest-review-rating { min-width: 0; margin: 0; padding: 0; border: 0; }
.bb-guest-review-rating legend { margin-bottom: 9px; }
.bb-guest-review-rating-options { display: flex; flex-wrap: wrap; gap: 8px; }
.bb-guest-review-rating-options label { position: relative; cursor: pointer; }
.bb-guest-review-rating-options input { position: absolute; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.bb-guest-review-rating-options label > span { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 62px; min-height: 46px; padding: 6px 12px; border: 1px solid #c4d9db; border-radius: 6px; background: #fff; color: #294750; font-weight: 800; transition: border-color .15s, background-color .15s; }
.bb-guest-review-rating-options label > span > span[aria-hidden] { color: #b1833d; font-size: 1.15rem; }
.bb-guest-review-rating-options input:checked + span { border-color: #007d90; background: #e3f5f6; color: #064556; box-shadow: inset 0 0 0 1px #007d90; }
.bb-guest-review-rating-options input:focus-visible + span { outline: 3px solid #00899c; outline-offset: 3px; }
.bb-guest-review-consents { display: grid; gap: 12px; padding: 17px 19px; border: 1px solid #dce8e8; border-radius: 7px; background: #fff; }
.bb-guest-review-consents label { display: flex; align-items: flex-start; gap: 10px; color: #3d5962; font-size: .86rem; line-height: 1.55; cursor: pointer; }
.bb-guest-review-consents input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #007c8e; }
.bb-guest-review-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.bb-guest-review-submit .button { min-height: 50px; border: 0; cursor: pointer; font: 800 .82rem/1.35 Arial, sans-serif; white-space: normal; text-align: center; }
.bb-guest-review-submit a { color: #006b7c; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.bb-guest-review-notice { margin: 20px 0 0; padding: 14px 17px; border: 1px solid #badbd2; border-left: 4px solid #168263; border-radius: 5px; background: #ebf7f1; color: #154a39; font-weight: 700; }
.bb-guest-review-notice.is-error { border-color: #e7c9aa; border-left-color: #b87832; background: #fff8ec; color: #6a3a1c; }
.bb-guest-review-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bb-guest-review :is(input,textarea,button,a):focus-visible { outline: 3px solid #00899c; outline-offset: 3px; }
@media (max-width: 680px) {
  .bb-guest-review { margin-top: 34px; padding: 22px; }
  .bb-guest-review-fields { grid-template-columns: minmax(0, 1fr); }
  .bb-guest-review-submit { align-items: stretch; flex-direction: column; }
  .bb-guest-review-submit .button { width: 100%; }
  .bb-guest-review-rating-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .bb-guest-review-rating-options label > span { min-width: 0; padding-inline: 3px; }
}
