.studioflow-shell {
  --sf-ink: #17191c;
  --sf-muted: #5b6470;
  --sf-line: #d7dce2;
  --sf-paper: #ffffff;
  --sf-soft: #f3f5f7;
  --sf-blue: #0d57c7;
  --sf-blue-dark: #0a3f91;
  --sf-yellow: #f3c623;
  --sf-coral: #dd654f;
  color: var(--sf-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 1180px;
  padding: 36px 20px 64px;
  width: 100%;
}

.studioflow-shell *,
.studioflow-shell *::before,
.studioflow-shell *::after {
  box-sizing: border-box;
}

.sf-app-heading {
  align-items: end;
  border-bottom: 2px solid var(--sf-ink);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 20px;
}

.sf-app-heading h2,
.sf-success h2 {
  font-size: 2.55rem;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 4px 0 10px;
}

.sf-app-heading p:not(.sf-kicker) {
  color: var(--sf-muted);
  margin: 0;
  max-width: 690px;
}

.sf-kicker {
  color: var(--sf-blue);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0;
}

.sf-security-note {
  border-left: 5px solid var(--sf-yellow);
  color: var(--sf-muted);
  flex: 0 0 auto;
  font-size: 0.82rem;
  padding: 6px 0 6px 10px;
}

.sf-layout {
  align-items: start;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
}

.sf-app fieldset {
  border: 0;
  border-bottom: 1px solid var(--sf-line);
  margin: 0 0 30px;
  padding: 0 0 30px;
  min-width: 0;
}

.sf-app legend {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding: 0;
}

.sf-service-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sf-service-option {
  background: var(--sf-paper);
  border: 1px solid var(--sf-line);
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  gap: 4px;
  min-height: 106px;
  padding: 16px 16px 14px 44px;
  position: relative;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.sf-service-option:hover {
  border-color: #8c98a6;
}

.sf-service-option.is-selected {
  border-color: var(--sf-blue);
  box-shadow: inset 4px 0 0 var(--sf-blue);
}

.sf-service-option input {
  accent-color: var(--sf-blue);
  height: 18px;
  left: 16px;
  margin: 0;
  position: absolute;
  top: 18px;
  width: 18px;
}

.sf-service-title {
  font-size: 0.93rem;
  font-weight: 700;
}

.sf-service-description {
  color: var(--sf-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.sf-fields {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.sf-field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.sf-fields .sf-field {
  margin-bottom: 0;
}

.sf-label {
  color: #30353b;
  font-size: 0.8rem;
  font-weight: 700;
}

.studioflow-shell input,
.studioflow-shell select,
.studioflow-shell textarea {
  background: var(--sf-paper);
  border: 1px solid #afb7c0;
  border-radius: 4px;
  color: var(--sf-ink);
  font: inherit;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 12px;
  width: 100%;
}

.studioflow-shell textarea {
  min-height: 104px;
  resize: vertical;
}

.studioflow-shell .sf-service-option input {
  height: 18px;
  min-height: 18px;
  padding: 0;
  width: 18px;
}

.studioflow-shell input:focus,
.studioflow-shell select:focus,
.studioflow-shell textarea:focus {
  border-color: var(--sf-blue);
  box-shadow: 0 0 0 3px rgba(13, 87, 199, 0.16);
  outline: 0;
}

.sf-checkbox {
  align-items: center;
  display: flex;
  font-size: 0.88rem;
  gap: 9px;
  margin-top: 16px;
}

.sf-checkbox input {
  accent-color: var(--sf-blue);
  flex: 0 0 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  width: 18px;
}

.sf-consent {
  align-items: flex-start;
  color: var(--sf-muted);
  line-height: 1.45;
  margin-top: 18px;
}

.sf-consent input {
  margin-top: 2px;
}

.sf-inline-option {
  align-self: end;
  min-height: 44px;
}

.sf-honeypot {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.sf-summary {
  background: var(--sf-ink);
  border-radius: 6px;
  color: var(--sf-paper);
  padding: 26px;
  position: sticky;
  top: 24px;
}

.sf-summary .sf-kicker {
  color: var(--sf-yellow);
}

.sf-summary h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 7px 0 24px;
}

.sf-summary dl {
  border-bottom: 1px solid #4b4f55;
  border-top: 1px solid #4b4f55;
  margin: 0;
  padding: 12px 0;
}

.sf-summary dl div {
  display: flex;
  font-size: 0.84rem;
  gap: 16px;
  justify-content: space-between;
  padding: 6px 0;
}

.sf-summary dt {
  color: #bfc5cc;
}

.sf-summary dd {
  font-weight: 700;
  margin: 0;
  text-align: right;
}

.sf-total {
  color: var(--sf-paper);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin: 24px 0 14px;
}

.sf-note {
  color: #bfc5cc;
  font-size: 0.76rem;
  line-height: 1.45;
}

.sf-error {
  background: #fff0ed;
  border-left: 4px solid var(--sf-coral);
  color: #651d14;
  font-size: 0.82rem;
  margin: 18px 0;
  padding: 10px 12px;
}

.sf-button {
  background: var(--sf-yellow);
  border: 0;
  border-radius: 4px;
  color: #17191c;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  margin-top: 18px;
  min-height: 46px;
  padding: 11px 18px;
  width: 100%;
}

.sf-button:hover:not(:disabled) {
  background: #ffda36;
}

.sf-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.sf-button-secondary {
  background: var(--sf-blue);
  color: var(--sf-paper);
  max-width: 240px;
}

.sf-success {
  border-left: 8px solid var(--sf-blue);
  max-width: 700px;
  padding: 40px;
}

.sf-success-total {
  font-size: 2rem;
  font-weight: 700;
}

.sf-success .sf-note {
  color: var(--sf-muted);
}

@media (max-width: 860px) {
  .sf-layout {
    gap: 30px;
    grid-template-columns: 1fr;
  }

  .sf-summary {
    position: static;
  }
}

@media (max-width: 620px) {
  .studioflow-shell {
    padding: 24px 14px 48px;
  }

  .sf-app-heading {
    align-items: start;
    flex-direction: column;
  }

  .sf-app-heading h2,
  .sf-success h2 {
    font-size: 1.9rem;
  }

  .sf-service-grid,
  .sf-fields {
    grid-template-columns: 1fr;
  }

  .sf-service-option {
    min-height: 96px;
  }

  .sf-summary,
  .sf-success {
    padding: 22px;
  }
}
