@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --radius-form: 16px;
  --radius-button: 9999px;

  --bg-white: rgba(255, 255, 255, 1);
  --bg-primary: rgba(255, 255, 255, 1);
  --bg-secondary: rgba(243, 244, 246, 1);
  --bg-quaternary: rgba(209, 213, 220, 1);
  --bg-black: rgba(0, 0, 0, 1);
  --bg-brand-default: rgba(0, 66, 153, 1);
  --bg-brand-default-b: rgba(237, 25, 68, 1);
  --bg-brand-hover: rgba(0, 55, 127, 1);
  --bg-brand-light: rgba(212, 231, 255, 1);
  --bg-brand-light-hover: rgba(195, 220, 252, 1);
  --bg-brand-ghost-hover: rgba(212, 231, 255, 0.55);
  --bg-danger: rgba(231, 0, 11, 1);

  --text-primary: rgba(23, 23, 23, 1);
  --text-secondary: rgba(64, 64, 64, 1);
  --text-tertiary: rgba(115, 115, 115, 1);
  --text-accent: rgba(0, 86, 218, 1);
  --text-brand-default: rgba(0, 93, 251, 1);
  --text-inverted: rgba(255, 255, 255, 1);
  --text-muted: rgba(153, 161, 175, 1);
  --text-disabled: rgba(163, 163, 163, 1);
  --text-danger: rgba(217, 45, 32, 1);

  --fg-base-tertiary: rgba(115, 115, 115, 1);
  --fg-base-primary: rgba(23, 23, 23, 1);
  --fg-brand-a-default: rgba(0, 93, 251, 1);
  --fg-base-green: rgba(23, 178, 106, 1);

  --border-base-secondary: rgba(209, 213, 220, 1);
  --border-base-primary: rgba(153, 161, 175, 1);
  --border-base-tertiary: rgba(229, 231, 235, 1);
  --border-base-accent: rgba(62, 126, 255, 1);
  --border-base-danger: rgba(231, 0, 11, 1);

  --surface-overlay: rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-black);
  font-family: "Inter", sans-serif;
  color: var(--text-primary);
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../media/bg.webp);
  background-size: cover;
  background-position: center;
  z-index: -1;
  opacity: 0.6;
  pointer-events: none;
}
.main {
  width: 100%;
  max-width: 536px;
  margin: 0 auto;
  padding: 0 0 48px;
}

#form_header {
  width: 100%;
  height: 140px;
  padding: 0 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

#form_logo_wrap {
  width: auto;
  height: auto;
  background: transparent;
  font-size: 36px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: 0;
  text-align: center;
  color: rgba(30, 123, 235, 1);
}

.ui-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0;
  text-align: center;
  color: var(--text-inverted);
}

.ui-form {
  width: 100%;
  min-height: 708px;
  background: var(--bg-primary);
  box-shadow: 0 16px 32px 0 rgba(0, 0, 0, 0.04);
  padding-top: 28px;
  border-radius: 24px;
}

#flow_steps {
  width: 464px;
  height: 20px;
  margin: 0 auto;
  padding: 0;
}

#flow_content {
  padding: 16px 40px 0;
}

#step_applicant,
#step_products {
  padding-bottom: 24px;
}
#step_delivery {
  padding-bottom: 32px;
}

.applicant-customer-group,
.applicant-fields-group {
  width: 100%;
}

.applicant-contact-group {
  width: 100%;
  min-width: 0;
}

#confirmation_summary {
  margin-top: 8px;
}

.ui-footer {
  width: 100%;
  height: 96px;
  margin-top: auto;
  padding: 24px 40px;
}

#flow_back_button,
#flow_edit_button {
  margin-right: auto;
}

.flow-tabs {
  padding: 0 40px;
}
.ui-title-section {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--text-primary);
}

.ui-footer {
  border-top-color: var(--border-base-tertiary);
}

.flow-step-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.flow-step-dot-wrap {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.flow-step-dot {
  display: block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 2px;
  background: var(--bg-quaternary);
  box-shadow: none;
}

.flow-step-label {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0;
  text-align: center;
  vertical-align: middle;
  color: var(--text-secondary);
  white-space: nowrap;
}

.flow-step-line {
  width: 24px;
  height: 1px;
  flex: 0 0 24px;
  margin-left: 4px;
  background: repeating-linear-gradient(
    to right,
    var(--border-base-secondary) 0 2px,
    transparent 2px 4px
  );
}

.flow-step-item:last-child .flow-step-line {
  display: none;
}

.flow-step-item[aria-current="step"] .flow-step-dot,
.flow-step-item[data-flow-state="current"] .flow-step-dot {
  background: var(--fg-brand-a-default);
  box-shadow: 0 0 0 4px rgba(0, 93, 251, 0.12);
}

.flow-step-item[aria-current="step"] .flow-step-label,
.flow-step-item[data-flow-state="current"] .flow-step-label {
  color: var(--text-primary);
}

.flow-step-item[data-flow-state="completed"] .flow-step-dot {
  background: #000000;
  box-shadow: none;
}

.flow-step-item[data-flow-state="completed"] .flow-step-label {
  color: var(--text-secondary);
}

.flow-step-item[data-flow-state="future"] .flow-step-dot {
  background: var(--bg-quaternary);
  box-shadow: none;
}

.flow-step-item[data-flow-state="future"] .flow-step-label {
  color: var(--text-secondary);
}

.flow-step-item[data-flow-state="error"] .flow-step-dot {
  background: var(--bg-quaternary);
  box-shadow: none;
}

.flow-step-item[data-flow-state="error"] .flow-step-label {
  color: var(--text-secondary);
}

/* ---- RESPONSIVE ---- */

@media screen and (max-width: 650px) {
  .main {
    max-width: 100%;
  }
  #form_header {
    height: 132px;
    padding: 0 20px;
    gap: 4px;
  }
  .ui-title {
    text-align: center;
  }
  .ui-form {
    padding-top: 16px;
    border-radius: 0;
  }
  .flow-tabs {
    padding: 0 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .flow-tabs::-webkit-scrollbar {
    display: none;
  }
  #flow_steps {
    width: max-content;
    margin: 0;
    flex-shrink: 0;
  }
  #flow_content {
    padding: 16px 20px 0;
  }
  .ui-footer {
    padding: 24px 20px;
  }
}

@media screen and (max-width: 375px) {
  #form_header {
    height: 124px;
    padding: 0 16px;
  }

  #form_logo_wrap {
    font-size: 32px;
    line-height: 32px;
  }
}
