/* Client Portal — onboarding, login & dashboard (prototype) */

.dbj-page {
  /* .container sets font-size: 14rem (site-wide, meant to be overridden by
     every text element's own explicit size) — reset it here so anything
     inside this subtree that forgets to set its own font-size, or any
     default UA em-based margin (e.g. <dl>), doesn't inherit 14rem. */
  font-size: 1rem;
  /* no padding-top here: the surrounding .scroll-trigger.white-bg already
     adds the clearance needed under the floating nav, site-wide. */
  padding-bottom: 120px;
  /* .container is a column flex box with align-items: flex-start, which
     shrink-wraps every direct child to its own content width instead of
     the container's. Form panels/inputs have little intrinsic content, so
     on wide desktop viewports they stayed narrow instead of using the
     available width. Stretch fixes that; .dbj-wizard-steps keeps its own
     max-width as an intentional cap. */
  align-items: stretch;
}

.dbj-brief {
  margin: 0;
}

/* Keep the intake/account forms at a comfortable reading width on wide
   desktop screens instead of stretching single-line inputs edge to edge. */
#dbj-step2-form,
#dbj-step3-form {
  max-width: 640px;
}

.dbj-eyebrow {
  display: inline-block;
  color: var(--blue);
  font-family: var(--font--second-font);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.dbj-lead {
  max-width: 640px;
  font-size: 1.2rem;
  color: var(--grey);
  margin-top: 16px;
  margin-bottom: 50px;
}

.dbj-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.dbj-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.dbj-card {
  background-color: var(--second-color);
  border-radius: 20px;
  padding: 40px;
}

.dbj-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.dbj-card-text {
  color: var(--grey);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 28px;
}

/* forms */
.dbj-field { margin-bottom: 20px; }

.dbj-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 8px;
}

.dbj-input, .dbj-textarea, .dbj-select {
  width: 100%;
  border: 1px solid #00000022;
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: var(--font--primary-font);
  color: var(--first-color);
  box-sizing: border-box;
}

.dbj-textarea { min-height: 110px; resize: vertical; }

.dbj-input:focus, .dbj-textarea:focus, .dbj-select:focus {
  outline: none;
  border-color: var(--blue);
}

.dbj-hint { font-size: .85rem; color: var(--grey); }

.dbj-error {
  color: #c0392b;
  font-size: .9rem;
  margin-top: 6px;
  margin-bottom: 10px;
  display: none;
}
.dbj-error.show { display: block; }

button.button_main {
  border: none;
  cursor: pointer;
  font-family: inherit;
  /* <a> gets this for free from the site's global `a { color }` rule; a
     <button> (needed here for a click handler instead of a navigation)
     doesn't match that rule, so without this its text is invisible
     against the button's dark background. */
  color: var(--second-color);
}

.dbj-btn-ghost {
  background: none;
  border: 1px solid #00000022;
  border-radius: 40px;
  padding: 12px 20px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--first-color);
  cursor: pointer;
  white-space: nowrap;
}

/* onboarding wizard */
.dbj-wizard-steps {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  max-width: 420px;
}
.dbj-wstep {
  flex: 1;
  height: 4px;
  background: #00000014;
  border-radius: 4px;
  overflow: hidden;
}
.dbj-wstep i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--blue);
}
.dbj-wstep.done i, .dbj-wstep.current i { width: 100%; }

.dbj-page-onboarding {
  padding-top: 50px;
}

/* Onboarding nav: the step progress replaces the page-link slot, sitting
   centered between the logo and the "Contact me" button. */
.dbj-nav-progress-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.dbj-nav-progress-slot .dbj-wizard-steps.dbj-wizard-steps-centered {
  width: 100%;
  max-width: 220px;
  margin-bottom: 0;
}

.dbj-panel { display: none; }
.dbj-panel.active { display: block; }

/* package cards */
.dbj-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.dbj-package {
  position: relative;
  display: block;
  border: 2px solid #00000014;
  border-radius: 20px;
  padding: 28px 24px;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s ease, transform .15s ease;
}
.dbj-package:hover { transform: translateY(-2px); }
.dbj-package.selected { border-color: var(--blue); }
.dbj-package input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.dbj-package-badge {
  display: inline-block;
  background: var(--first-color);
  color: #fff;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-radius: 20px;
  padding: 4px 10px;
  margin-bottom: 14px;
}
.dbj-package-title { font-size: 1.3rem; font-weight: 600; margin-bottom: 6px; }
.dbj-package-price { color: var(--blue); font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
.dbj-package-desc { color: var(--grey); font-size: .9rem; line-height: 1.5; margin-bottom: 16px; }
.dbj-package-list { list-style: none; padding: 0; margin: 0; font-size: .85rem; color: var(--first-color); }
.dbj-package-list li { padding-left: 18px; position: relative; margin-bottom: 6px; }
.dbj-package-list li:before { content: "\2713"; position: absolute; left: 0; color: var(--blue); }

.dbj-addon {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 2px dashed #00000022;
  border-radius: 20px;
  padding: 20px 24px;
  cursor: pointer;
  margin-bottom: 36px;
}
.dbj-addon.selected { border-color: var(--blue2); border-style: solid; }
.dbj-addon input { width: 18px; height: 18px; accent-color: var(--blue); flex-shrink: 0; }
.dbj-addon-title { font-size: 1rem; font-weight: 600; margin-bottom: 2px; }
.dbj-addon-desc { color: var(--grey); font-size: .85rem; }

/* stepper */
.dbj-stepper {
  display: flex;
  align-items: flex-start;
  margin: 10px 0 60px;
  overflow-x: auto;
}
.dbj-stepper-item {
  flex: 1;
  min-width: 130px;
  text-align: center;
  position: relative;
  padding: 0 8px;
}
.dbj-stepper-line {
  position: absolute;
  top: 17px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: #00000022;
  z-index: 1;
}
.dbj-stepper-item:first-child .dbj-stepper-line { display: none; }
.dbj-stepper-item.done .dbj-stepper-line { background: var(--first-color); }
.dbj-stepper-dot {
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 2px solid #00000022;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: .85rem; font-weight: 600;
  position: relative; z-index: 2;
}
.dbj-stepper-item.done .dbj-stepper-dot { background: var(--first-color); border-color: var(--first-color); color: #fff; }
.dbj-stepper-item.current .dbj-stepper-dot { border-color: var(--blue); color: var(--blue); }
.dbj-stepper-label { font-size: .8rem; font-weight: 600; }
.dbj-stepper-item.current .dbj-stepper-label { color: var(--blue); }
.dbj-stepper-item.pending .dbj-stepper-label { color: var(--grey); }

/* timeline / checkpoints */
.dbj-timeline { display: flex; flex-direction: column; }
.dbj-timeline-item {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid #00000014;
}
.dbj-timeline-item:last-child { border-bottom: none; padding-bottom: 0; }
.dbj-timeline-marker {
  width: 14px; height: 14px; border-radius: 50%;
  margin-top: 6px; flex-shrink: 0;
  background: #00000022;
}
.dbj-timeline-item.done .dbj-timeline-marker { background: var(--first-color); }
.dbj-timeline-item.current .dbj-timeline-marker { background: var(--blue); box-shadow: 0 0 0 4px #002ae61a; }
.dbj-timeline-date { color: var(--blue); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.dbj-timeline-title { font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; }
.dbj-timeline-desc { color: var(--grey); font-size: .9rem; line-height: 1.5; }
.dbj-timeline-row { display: flex; gap: 14px; align-items: flex-start; }
.dbj-status-pill {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-left: auto;
  white-space: nowrap;
  height: fit-content;
}
.dbj-status-pill.done { background: #00000010; color: var(--first-color); }
.dbj-status-pill.current { background: #002ae61a; color: var(--blue); }
.dbj-status-pill.pending { background: #f5f5f5; color: var(--grey); }

/* brief */
.dbj-brief dt { color: var(--grey); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; margin-top: 18px; }
.dbj-brief dt:first-child { margin-top: 0; }
.dbj-brief dd { margin: 6px 0 0; font-size: 1rem; line-height: 1.4; }

/* deliverables & files */
.dbj-files-list { display: flex; flex-direction: column; }
.dbj-file-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #00000014;
}
.dbj-file-row:last-child { border-bottom: none; padding-bottom: 0; }
.dbj-file-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--second-color);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 600; color: var(--first-color);
  flex-shrink: 0;
}
.dbj-file-label { font-weight: 600; font-size: .98rem; flex: 1; }
.dbj-file-link {
  color: var(--blue);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.dbj-file-link:hover { text-decoration: underline; }
.dbj-file-edit {
  display: flex;
  gap: 8px;
  align-items: center;
}
.dbj-file-edit input {
  width: 220px;
  max-width: 40vw;
  border: 1px solid #00000022;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: .85rem;
  font-family: var(--font--primary-font);
}
.dbj-file-save {
  border: none;
  background: var(--first-color);
  color: #fff;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: .8rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.dbj-designer-bar {
  margin-top: 60px;
  border: 1px dashed var(--blue2);
  border-radius: 20px;
  padding: 24px 28px;
  background: #03baf70d;
}
.dbj-designer-bar .dbj-card-title { font-size: 1.1rem; margin-bottom: 4px; }

@media screen and (max-width: 991px) {
  .dbj-packages { grid-template-columns: 1fr; }
  .dbj-grid-2 { grid-template-columns: 1fr !important; }
}

@media screen and (max-width: 479px) {
  .dbj-card { padding: 26px; }
  .dbj-top-row { flex-direction: column; }
}
