/* styles/project-builder.css */
.project-builder-shell {
  width: min(var(--container-wide), 100%);
}

.direct-contact-section {
  margin-top: -62px;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.project-builder {
  margin-top: 100px;
}

.project-builder__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.project-builder__heading > div > span,
.wizard-step__heading > span,
.scope-module > header > span {
  color: #c4c9ff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-builder__heading h2 {
  margin: 8px 0 0;
  color: var(--color-text);
  font-size: clamp(36px, 6vw, 67px);
  letter-spacing: -0.05em;
  line-height: 1;
}

.project-builder__heading > p {
  max-width: 400px;
  color: var(--color-muted);
  font-size: 16px;
}

.project-wizard {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 95% 0, rgba(97, 218, 251, 0.09), transparent 25%),
    var(--color-panel);
  color: #fff;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
}

.wizard-progress {
  scroll-margin-top: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 20px 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #131425;
}

.wizard-progress span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #82839a;
  font-size: 12px;
  font-weight: 800;
}

.wizard-progress span b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #474861;
  border-radius: 50%;
  font-size: 11px;
}

.wizard-progress span.is-active {
  color: #fff;
}

.wizard-progress span.is-active b {
  border-color: #9ea2ff;
  background: #6064b5;
}

.wizard-progress i {
  height: 1px;
  background: #35364d;
}

.wizard-step {
  padding: clamp(28px, 5vw, 64px);
  animation: wizardIn 0.32s ease;
}

.wizard-step__heading {
  max-width: 760px;
  margin-bottom: 35px;
}

.wizard-step__heading h3 {
  margin: 9px 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.wizard-step__heading p,
.scope-module > header p {
  color: #aeb0c2;
  font-size: 16px;
}

.service-choice-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.service-choice {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 235px;
  margin: 0;
  padding: 21px;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: var(--surface-glass);
  cursor: pointer;
  transition: 0.2s ease;
}

.service-choice:hover {
  border-color: rgba(97, 218, 251, 0.55);
  background: var(--surface-glass-hover);
}

.service-choice.is-selected {
  border-color: var(--color-cyan);
  background: linear-gradient(145deg, #333665, #252642);
  box-shadow:
    inset 3px 0 var(--color-cyan),
    0 12px 30px rgba(0, 0, 0, 0.2);
}

.service-choice input,
.option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-choice:has(input:focus-visible),
.option-card:has(input:focus-visible) {
  outline: 3px solid var(--color-cyan);
  outline-offset: 3px;
}

.service-choice__visual {
  display: grid;
  place-items: center;
  align-self: center;
  width: 68px;
  height: 68px;
  margin-inline: auto;
  background: transparent;
}

.choice-logo {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}

.choice-logo svg {
  max-width: 100%;
  max-height: 100%;
}

.choice-badge {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  color: #fff;
  font-size: 25px;
  font-weight: 900;
}

.service-choice__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.service-choice__copy strong {
  font-size: 18px;
  line-height: 1.2;
}

.service-choice__copy small {
  color: #aeb0c2;
  line-height: 1.45;
}

.service-choice__check {
  display: none;
}

.wizard-error {
  min-height: 24px;
  margin-top: 15px;
  color: #ffb8b8;
  font-weight: 700;
}

.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 36px;
}

.wizard-actions--end {
  justify-content: flex-end;
}

.wizard-next,
.wizard-submit,
.wizard-back {
  padding: 13px 18px;
  border-radius: 10px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.wizard-next span,
.wizard-submit span {
  margin-left: 18px;
}

.wizard-back {
  border: 1px solid var(--color-line);
  background: transparent;
  color: var(--color-muted);
}

.conditional-questions {
  display: grid;
  gap: 18px;
}

.scope-module {
  position: relative;
  overflow: hidden;
  padding: 31px;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: linear-gradient(145deg, #1a1d34, #202442);
}

.scope-module::before {
  content: 'module.active';
  position: absolute;
  top: 15px;
  right: 18px;
  color: #6f7498;
  font:
    9px/1 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}

.scope-module > header {
  max-width: 820px;
  margin-bottom: 26px;
}

.scope-module > header h4 {
  margin: 8px 0;
  color: #fff;
  font-size: 28px;
}

.field-group {
  margin-top: 21px;
}

.field-group > label {
  display: block;
  margin-bottom: 9px;
  color: #f0f0f5;
  font-size: 13px;
  font-weight: 800;
}

.field-group > label span {
  color: #9697aa;
  font-weight: 500;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #484a67;
  border-radius: 10px;
  background: #17182a;
  color: #fff;
  font: inherit;
}

.field-group textarea {
  min-height: 125px;
  resize: vertical;
}

.field-group small {
  display: block;
  margin-top: 7px;
  color: #9294a9;
  font-size: 12px;
  line-height: 1.5;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
  margin: 0;
  padding: 12px;
  border: 1px solid #484a65;
  border-radius: 11px;
  background: #191a2d;
  color: #dfe0e9;
  cursor: pointer;
}

.option-card:has(input:checked) {
  border-color: #a4a7ff;
  background: #343662;
  color: #fff;
  box-shadow:
    inset 3px 0 var(--color-cyan),
    0 12px 30px rgba(0, 0, 0, 0.14);
}

.option-card .choice-logo {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 3px;
  border-radius: 7px;
  background: var(--surface-glass);
}

.option-card i {
  margin-left: auto;
  color: transparent;
  font-style: normal;
}

.option-card:has(input:checked) i {
  color: #c9cbff;
}

.field-callout,
.linked-service-note,
.data-format-example,
.email-estimate {
  padding: 18px;
  border: 1px solid #51547b;
  border-radius: 13px;
  background: #292b4d;
}

.field-callout > p,
.linked-service-note p,
.data-format-example p {
  margin-bottom: 12px;
  color: #c1c2d3;
  font-size: 13px;
  line-height: 1.55;
}

.email-count-grid,
.project-common-questions,
.project-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

.email-estimate {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5px 18px;
  margin-top: 18px;
}

.email-estimate span,
.data-format-example span,
.linked-service-note span {
  color: #b9bbff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.email-estimate strong {
  grid-row: 1/3;
  grid-column: 2;
  font-size: 30px;
}

.email-estimate small {
  color: #a7a9bb;
}

.linked-service-note {
  margin-top: 18px;
}

.linked-service-note a {
  color: #fff;
  font-weight: 800;
}

.data-format-example {
  margin-top: 13px;
}

.data-format-example code {
  display: block;
  margin: 9px 0;
  color: #fff;
  font-size: 15px;
}

.field-group--full {
  grid-column: 1/-1;
}

.field-group--budget small {
  color: #c5c7ff;
}

.project-summary {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 32px;
  padding: 24px;
  border: 1px solid #444661;
  border-radius: 16px;
  background: #202137;
}

.project-summary > div:first-child > span {
  color: #aeb1ff;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.project-summary h4 {
  margin: 5px 0;
  font-size: 24px;
}

.summary-services {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 12px;
}

.summary-services span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #393b63;
  color: #e7e8ff;
  font-size: 11px;
  font-weight: 750;
}

.project-summary p {
  color: #c4c5d3;
  font-size: 13px;
  text-align: right;
}

.project-form__privacy {
  margin-top: 20px;
  color: #a8aabc;
  font-size: 12px;
}

.project-form__privacy a {
  color: #fff;
}

.project-form-status {
  margin-top: 14px;
  color: #cacbda;
  font-size: 14px;
  line-height: 1.4;
}

.wizard-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

@keyframes wizardIn {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
}

@media (max-width: 1000px) {
  .service-choice-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-builder__heading {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 30px !important;
    padding-block: 20px !important;
  }

  .project-builder__heading > p {
    max-width: 650px;
  }
}

@media (max-width: 680px) {
  .project-builder-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .direct-contact-section {
    margin-top: -42px;
  }

  .project-builder {
    margin-top: 70px;
  }

  .wizard-progress {
    padding: 15px;
  }

  .wizard-progress span {
    font-size: 0;
  }

  .wizard-progress span b {
    font-size: 11px;
  }

  .wizard-step {
    padding: 28px 16px;
  }

  .service-choice-grid {
    grid-template-columns: 1fr;
  }

  .service-choice {
    min-height: 155px;
  }

  .service-choice__copy {
    margin-top: 24px;
  }

  .email-count-grid,
  .project-common-questions,
  .project-contact-grid {
    grid-template-columns: 1fr;
  }

  .field-group--full {
    grid-column: auto;
  }

  .scope-module {
    padding: 22px 15px;
  }

  .option-grid {
    grid-template-columns: 1fr;
  }

  .project-summary {
    flex-direction: column;
  }

  .summary-services {
    justify-content: flex-start;
  }

  .project-summary p {
    text-align: left;
  }

  .wizard-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .wizard-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wizard-step {
    animation: none;
  }

  .service-choice {
    transition: none;
  }
}

.translation-volume {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.translation-estimate {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid #777bd0;
  border-radius: 15px;
  background: linear-gradient(135deg, #303365, #242641);
}

.translation-estimate > div {
  display: flex;
  flex-direction: column;
}

.translation-estimate > div > span {
  color: #c6c8ff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.translation-estimate > div > strong {
  margin: 10px 0 3px;
  font-size: clamp(35px, 5vw, 56px);
  line-height: 1;
}

.translation-estimate > div > small {
  color: #b9bbcd;
  line-height: 1.45;
}

.translation-estimate details {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  background: rgba(12, 13, 29, 0.25);
}

.translation-estimate summary {
  color: #eef0ff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.translation-estimate dl {
  display: grid;
  gap: 7px;
  margin: 15px 0 0;
}

.translation-estimate dl > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.translation-estimate dt {
  color: #aaaec9;
  font-size: 11px;
}

.translation-estimate dd {
  margin: 0;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.translation-estimate dd small {
  display: block;
  color: #9396b0;
  font-weight: 500;
}

@media (max-width: 680px) {
  .translation-volume,
  .translation-estimate {
    grid-template-columns: 1fr;
  }
}

.translation-estimate__price {
  justify-content: center;
  padding: 8px 12px 8px 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.translation-estimate__explanation {
  justify-content: center;
  padding: 5px 0;
}

.translation-estimate__explanation p {
  margin: 9px 0 0;
  color: #d6d7e7;
  font-size: 13px;
  line-height: 1.6;
}

.translation-estimate__explanation [data-translation-rule] {
  color: #fff;
  font-size: 15px;
  font-weight: 750;
}

.translation-estimate__price > strong {
  color: #fff;
}

@media (max-width: 680px) {
  .translation-estimate__price {
    padding: 0 0 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }
}

.quick-contact {
  position: relative;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 5vw, 68px);
  align-items: stretch;
  padding: clamp(25px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--surface-card);
  color: var(--color-text);
}

.quick-contact::before {
  content: 'QUICK_MESSAGE';
  position: absolute;
  right: 22px;
  top: 16px;
  color: rgba(48, 50, 93, 0.08);
  font:
    900 11px/1 ui-monospace,
    Consolas,
    monospace;
  letter-spacing: 0.13em;
}

.quick-contact__intro {
  display: flex;
  flex-direction: column;
}

.quick-contact .section-heading {
  display: block;
}

.quick-contact .section-heading h2 {
  margin: 10px 0 13px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.045em;
  text-align: left;
}

.quick-contact .section-heading p {
  max-width: 520px;
  color: var(--color-muted);
  font-size: 16px;
}

.quick-contact__email {
  margin-top: auto;
  padding: 20px;
  border: 1px solid var(--color-line);
  border-radius: 15px;
  background: var(--surface-glass);
}

.quick-contact__email > span {
  display: block;
  color: var(--color-muted);
  font:
    850 10px/1 ui-monospace,
    Consolas,
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quick-contact__email > a {
  display: block;
  margin: 9px 0 14px;
  color: var(--color-text);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 850;
  text-decoration: none;
  word-break: break-word;
}

.quick-contact__email button {
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.quick-contact__email small {
  margin-left: 9px;
  color: var(--color-green);
  font-size: 11px;
  font-weight: 750;
}

.quick-contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding: 25px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 0, rgba(97, 218, 251, 0.1), transparent 30%),
    linear-gradient(145deg, #111426, #252953);
  box-shadow: 0 18px 45px rgba(18, 20, 48, 0.18);
}

.quick-contact__form label {
  display: block;
  margin-bottom: 7px;
  color: #e6e7f0;
  font-size: 12px;
  font-weight: 800;
}

.quick-contact__form input,
.quick-contact__form textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #484c6d;
  border-radius: 9px;
  background: #171a30;
  color: #fff;
  font: inherit;
}

.quick-contact__form input:focus,
.quick-contact__form textarea:focus {
  outline: 2px solid #7379ca;
  outline-offset: 2px;
}

.quick-contact__message {
  grid-column: 1/-1;
}

.quick-contact__form textarea {
  resize: vertical;
}

.quick-contact__form > button {
  grid-column: 1/-1;
  padding: 12px 16px;
  border-radius: 9px;
  font-weight: 900;
  cursor: pointer;
}

.quick-contact__form > button span {
  float: right;
}

.quick-contact__form > button:disabled {
  opacity: 0.6;
  cursor: wait;
}

#quickContactStatus {
  grid-column: 1/-1;
  margin: 0;
  color: #c8cadc;
  font-size: 14px;
  line-height: 1.4;
}

#quickContactStatus a {
  color: #fff;
  font-weight: 800;
}

@media (max-width: 850px) {
  .quick-contact {
    grid-template-columns: 1fr;
  }

  .quick-contact__email {
    margin-top: 24px;
  }
}

@media (max-width: 560px) {
  .quick-contact {
    padding: 22px 15px;
  }

  .quick-contact__form {
    grid-template-columns: 1fr;
    padding: 20px 14px;
  }

  .quick-contact__message,
  .quick-contact__form > button,
  #quickContactStatus {
    grid-column: auto;
  }

  .quick-contact__email small {
    display: block;
    margin: 8px 0 0;
  }
}

.budget-range {
  padding: 18px;
  border: 1px solid #484a67;
  border-radius: 13px;
  background: #17182a;
}

.budget-range__values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}

.budget-range__values output {
  min-width: 105px;
  padding: 8px 10px;
  border: 1px solid #4e5277;
  border-radius: 9px;
  background: #252849;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.budget-range__values span {
  color: #8f92ab;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.budget-range__track {
  position: relative;
  height: 24px;
}

.budget-range__track::before,
.budget-range__track > span {
  content: '';
  position: absolute;
  top: 10px;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: 99px;
}

.budget-range__track::before {
  background: #3a3c55;
}

.budget-range__track > span {
  right: 0;
  background: linear-gradient(90deg, #61dafb, #9b8cff);
  box-shadow: 0 0 13px rgba(97, 218, 251, 0.22);
}

.budget-range input[type='range'] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
}

.budget-range input[type='range']::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}

.budget-range input[type='range']::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border: 3px solid #17182a;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px #7479cf;
  cursor: grab;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
}

.budget-range input[type='range']::-moz-range-track {
  height: 4px;
  background: transparent;
}

.budget-range input[type='range']::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid #17182a;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px #7479cf;
  cursor: grab;
  pointer-events: auto;
}

.budget-range input[type='range']:focus-visible::-webkit-slider-thumb {
  outline: 3px solid #61dafb;
  outline-offset: 3px;
}

.budget-range input[type='range']:focus-visible::-moz-range-thumb {
  outline: 3px solid #61dafb;
  outline-offset: 3px;
}

.budget-range__limits {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: #83869d;
  font-size: 10px;
  font-weight: 750;
}
