/* Calm, full-width workspace overrides for the WordPress block theme. */
body:has(.kp-shell) .kp-shell {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.kp-top {
  height: 76px;
  padding-inline: clamp(20px, 4vw, 56px);
}

.kp-brand {
  width: 174px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #fff;
}

.kp-brand img { filter: none; }

.kp-main {
  width: 100%;
  max-width: 1200px;
  padding: 38px 28px 72px;
}

.kp-welcome {
  align-items: center;
  margin-bottom: 24px;
}

.kp-welcome h1 {
  margin-top: 6px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.05;
}

.kp-welcome > div > p:last-child {
  font-size: 14px;
}

.kp-progress {
  width: 240px;
  flex: 0 0 auto;
}

.kp-progress > small { display: block; margin-top: 7px; color: var(--kp-muted); font-size: 9px; text-align: right; }

.kp-tabs {
  margin-bottom: 20px;
}

.kp-stage-card {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 34px;
  align-items: center;
  margin-bottom: 24px;
  padding: 22px 24px;
  border: 1px solid var(--kp-line);
  border-radius: 10px;
  background: #fff;
}

.kp-stage-card h2 {
  margin: 5px 0 3px;
  color: var(--kp-navy);
  font: 400 25px/1.2 "Iowan Old Style", Baskerville, Georgia, serif;
}

.kp-stage-card > div > p:last-child {
  margin: 0;
  color: var(--kp-muted);
  font-size: 12px;
}

.kp-stage-card ol {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.kp-stage-card li {
  position: relative;
  text-align: center;
  color: #8a98a9;
}

.kp-stage-card li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #dce3ec;
}

.kp-stage-card li:first-child::before { left: 50%; width: 50%; }
.kp-stage-card li:last-child::before { width: 50%; }
.kp-stage-card li span { position: relative; z-index: 1; display: block; width: 16px; height: 16px; margin: 0 auto 7px; border: 3px solid #dce3ec; border-radius: 50%; background: #fff; }
.kp-stage-card li small { display: block; padding: 0 4px; font-size: 9px; line-height: 1.25; }
.kp-stage-card li small em { display: block; margin-top: 3px; color: #75869d; font-size: 8px; font-style: normal; font-weight: 600; }
.kp-stage-card li.is-complete small em { color: #16803c; }
.kp-stage-card li.is-complete::before { background: var(--kp-coral); }
.kp-stage-card li.is-complete span { border-color: var(--kp-coral); background: var(--kp-coral); }
.kp-stage-card li.is-current::before { background: linear-gradient(to right, var(--kp-coral) 0 50%, #dce3ec 50% 100%); }
.kp-stage-card li:first-child.is-current::before { background: #dce3ec; }
.kp-stage-card li:last-child.is-current::before { background: var(--kp-coral); }
.kp-stage-card li.is-current { color: var(--kp-navy); font-weight: 800; }
.kp-stage-card li.is-current span { border-color: var(--kp-coral); box-shadow: 0 0 0 4px rgba(255,104,72,.16); }

.kp-requirement { margin-left: 5px; color: var(--kp-muted); font: 700 9px/1 Inter, sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.kp-review-note { margin-top: 7px !important; padding: 7px 9px; border-left: 2px solid var(--kp-coral); background: #fff3ef; color: var(--kp-navy) !important; }
.kp-badge.is-approved { background: #dfefe8; color: var(--kp-ok); }
.kp-badge.is-changes_requested { background: #fff0ef; color: #8c2922; }

.kp-tabs button {
  padding: 11px 14px;
}

.kp-layout {
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
}

.kp-card,
.kp-doc,
.kp-adviser {
  border-radius: 10px;
}

.kp-card > header {
  padding: 20px 24px 16px;
}

.kp-card h2 {
  font-size: 24px;
}

.kp-form {
  padding: 22px 24px 24px;
}

.kp-fields {
  gap: 16px 18px;
}

.kp-fields input,
.kp-fields select {
  height: 44px;
}

.kp-form footer {
  padding-top: 20px;
}

.kp-adviser,
.kp-help {
  padding: 22px;
}

.kp-adviser h3 {
  font-size: 22px;
}

.kp-package-card { position:relative; overflow:hidden; padding:23px; border:2px solid #ef3f3f; border-radius:10px; background:linear-gradient(145deg,#fff6f4,#ffe4df); color:var(--kp-navy); box-shadow:0 12px 34px rgba(203,43,43,.09); }
.kp-package-card::after { content:""; position:absolute; right:-34px; bottom:-42px; width:120px; height:120px; border-radius:50%; background:rgba(239,63,63,.08); }
.kp-package-card > * { position:relative; z-index:1; }
.kp-package-card > small { color:#c72f2f; font-size:9px; font-weight:900; letter-spacing:.13em; text-transform:uppercase; }
.kp-package-card h3 { margin:8px 0 4px; font:500 24px/1.05 "Iowan Old Style",Baskerville,Georgia,serif; }
.kp-package-card > strong { display:block; color:#c72f2f; font-size:14px; }
.kp-package-card p { margin:12px 0 14px; color:#4f5e70; font-size:12px; line-height:1.55; }
.kp-package-card > span:last-child { display:block; padding-top:12px; border-top:1px solid rgba(199,47,47,.2); color:#6a4450; font-size:10px; }
.kp-package-card.is-elite { background:linear-gradient(145deg,#fff7e4,#ffe1d9); border-color:#e2a400; }
.kp-package-crown { display:grid!important; place-items:center; width:42px; height:42px; margin-bottom:8px; border-radius:50%; background:#ffd45b; color:#6f4300!important; font-size:25px!important; line-height:1; }

.kp-documents {
  gap: 10px;
}

.kp-document-group {
  overflow: hidden;
  border: 1px solid #cbd9e7;
  border-radius: 9px;
  background: #f4f8fc;
  box-shadow: 0 8px 28px rgba(3, 29, 58, .05);
}

.kp-document-group > header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 19px 20px;
  border-bottom: 1px solid #d8e3ed;
  background: linear-gradient(135deg, #eaf2fb, #f9fbfd);
}

.kp-document-group > header h2 { margin: 0 0 3px; color: var(--kp-navy); font: 500 21px/1.2 "Iowan Old Style",Baskerville,Georgia,serif; }
.kp-document-group > header p { margin: 0; color: var(--kp-muted); font-size: 11px; }
.kp-document-subitems { display: grid; gap: 1px; background: #dce5ed; }
.kp-document-subitems .kp-doc { border: 0; border-radius: 0; box-shadow: none; }
.kp-document-subitems .kp-doc-icon { width: 34px; height: 40px; font-size: 15px; }
.kp-legacy-uploads { padding: 14px 20px; border-bottom: 1px solid #d8e3ed; background: #fff9eb; color: var(--kp-navy); font-size: 11px; }

.kp-doc {
  align-items: start;
  padding: 16px 18px;
  box-shadow: 0 6px 22px rgba(3, 29, 58, .04);
}

.kp-doc-content {
  min-width: 0;
}

.kp-doc-action {
  align-self: start;
  flex-wrap: nowrap;
}

.kp-upload-list {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.kp-upload-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 9px 11px;
  border: 1px solid #dfe6ee;
  border-radius: 6px;
  background: #f8fafc;
}

.kp-upload-number {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dceafa;
  color: var(--kp-navy);
  font-size: 10px;
  font-weight: 800;
}

.kp-upload-details {
  min-width: 0;
}

.kp-upload-list a {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--kp-navy-2);
  font-size: 12px;
  font-weight: 700;
}

.kp-upload-list small {
  display: block;
  margin-top: 3px;
  color: var(--kp-muted);
  font-size: 10px;
}

.kp-upload-status.is-approved { color: var(--kp-ok); }
.kp-upload-status.is-changes_requested { color: #8c2922; }
.kp-review-note { overflow-wrap: anywhere; }

.testimonial-form { padding: 24px; }
.testimonial-form form { display: grid; gap: 16px; margin-top: 18px; }
.testimonial-form form > label { display: grid; gap: 7px; }
.testimonial-form textarea { min-height: 120px; resize: vertical; }
.testimonial-form input,
.testimonial-form textarea { padding: 11px 13px; border: 1px solid #c9d5e2; border-radius: 4px; font: inherit; }
.testimonial-form form > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.testimonial-form form > div label { display: grid; gap: 7px; }
.testimonial-stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 3px; margin: 0; padding: 0; border: 0; }
.testimonial-stars legend { width: 100%; margin-bottom: 5px; color: var(--kp-navy); font-size: 12px; font-weight: 800; }
.testimonial-stars input { position: absolute; opacity: 0; pointer-events: none; }
.testimonial-stars label { color: #cbd3de; font-size: 30px; line-height: 1; cursor: pointer; }
.testimonial-stars label:hover,
.testimonial-stars label:hover ~ label,
.testimonial-stars label:has(input:checked),
.testimonial-stars label:has(input:checked) ~ label { color: #e7a927; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.kp-signin-alert {
  display: grid;
  gap: 3px;
  margin: 0 0 18px;
  padding: 13px 15px;
  border-left: 3px solid var(--kp-coral);
  border-radius: 4px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 12px;
}

.kp-signin-alert span {
  color: #bdc9d8;
}

.kp-purchase-list {
  display: grid;
  gap: 14px;
  align-content: start;
}

.kp-purchase {
  padding: 22px 24px;
}

.kp-purchase > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--kp-line);
}

.kp-purchase > header h2 {
  margin: 0 0 4px;
  font: 400 21px/1.2 "Iowan Old Style", Baskerville, Georgia, serif;
  color: var(--kp-navy);
}

.kp-purchase > header p {
  margin: 0;
  color: var(--kp-muted);
  font-size: 12px;
}

.kp-purchase-amount {
  flex: 0 0 auto;
  color: var(--kp-navy);
  font-size: 18px;
  white-space: nowrap;
}

.kp-purchase-addons {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.kp-purchase-addons li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--kp-ice);
  color: var(--kp-navy);
  font-size: 12px;
}

.kp-invoice-link {
  display: inline-flex;
  margin-top: 6px;
  text-decoration: none;
}

@media (max-width: 960px) {
  .kp-layout {
    grid-template-columns: 1fr;
  }

  .kp-side {
    grid-template-columns: 1fr;
  }

  .kp-stage-card { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 650px) {
  .kp-main {
    padding: 28px 16px 56px;
  }

  .kp-welcome h1 {
    font-size: 36px;
  }

  .kp-progress {
    width: 100%;
  }

  .kp-stage-card { padding: 19px 16px; overflow-x: auto; }
  .kp-stage-card ol { min-width: 560px; }
  .kp-doc { grid-template-columns: 38px minmax(0, 1fr); }
  .kp-doc-action { grid-column: 2; justify-content: flex-start; }
}
