/* ====== VARIABLES ====== */
:root {
  --color-primary: #57486d;
  --color-accent: rgb(255, 200, 154);
  --color-bg: #fafbff;
  --color-text: #251e2e;
  --color-error: #e85050;
  --color-error-bg: #fff5f5;
  --color-error-border: #ffd3da;
  --color-header-bg: #fff;
  --color-footer-bg: #57486d;
  --color-footer-bottom: rgb(255, 200, 154);
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f6f6f6;
  color: #333;
}

.stepper {
  max-width: 900px;
  margin: 40px auto;
  background: #fff;
  padding: 32px 20px;
  border-radius: 18px;
  box-shadow: 0 4px 24px #0002;
}

h2 {
  margin-top: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th,
td {
  padding: 7px 9px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

th {
  background: #f2f2f2;
}

tr.selected {
  background: #e7f7fd !important;
}

tr:hover {
  background: #f9f9f9;
}

.search-wrap {
  margin-bottom: 18px;
}

.search-input {
  width: 100%;
  padding: 9px;
  font-size: 1em;
  border-radius: 7px;
  border: 1px solid #bbb;
}

.actions {
  margin: 24px 0 0 0;
  display: flex;
  gap: 10px;
}

button {
  background: #1e9cff;
  color: #fff;
  border: none;
  padding: 11px 32px;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  box-shadow: 0 2px 7px #0001;
  transition: background 0.1s;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.back-btn {
  background: #f5f5f5;
  color: #2d2d2d;
  border: 1px solid #ddd;
}

.sum {
  font-size: 1.2em;
  margin: 16px 0;
  font-weight: 500;
}

.selected-list {
  margin-top: 13px;
}

.selected-list td {
  vertical-align: middle;
}

.field {
  margin: 17px 0;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

input[type="text"],
input[type="tel"] {
  width: 100%;
  padding: 9px;
  font-size: 1em;
  border-radius: 7px;
  border: 1px solid #bbb;
}

input[type="number"] {
  padding: 9px;
  font-size: 1em;
  border-radius: 7px;
  border: 1px solid #bbb;
  width: 65px;
}

.input-small {
  width: 58px !important;
}

@media (max-width: 700px) {
  .stepper {
    padding: 8px 3vw;
  }

  table,
  th,
  td {
    font-size: 0.95em;
  }

  button {
    padding: 10px 15px;
    font-size: 1em;
  }
}

.step-indicator {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.step {
  display: flex;
  align-items: center;
  font-weight: 500;
  white-space: nowrap;
}

.step-number {
  min-width: 28px;
  min-height: 28px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #c5e2fa;
  color: #137be7;
  border-radius: 50%;
  font-size: 1em;
  margin-right: 6px;
  flex-shrink: 0;
}

.step.active .step-number {
  background: #137be7;
  color: #fff;
}

.hidden {
  display: none;
}

.success-msg {
  color: #16a34a;
  font-size: 1.35em;
  font-weight: 600;
  margin: 20px 0;
}

.input-small {
  width: 58px;
}

.no-results {
  color: #888;
  text-align: center;
  margin-top: 10px;
}

.footer-version {
  color: #888;
  text-align: right;
  margin-top: 35px;
  font-size: 0.99em;
  padding-bottom: 6px;
  letter-spacing: 0.03em;
}

.partner-logo {
  text-align: center;
  margin: 88px auto 24px auto;
  /* було 20px, стало 88px зверху */
}

.partner-logo img {
  max-width: 240px;
  height: auto;
}

@media (max-width: 600px) {
  .main-header {
    padding: 0 8px;
  }

  .main-logo {
    height: 29px;
  }

  .container {
    padding: 18px 2vw;
  }

  .form-section,
  #service-data-info {
    padding: 13px 5px;
  }
}

/* ====== HEADER ====== */
.main-header {
  width: 100vw;
  background: var(--color-header-bg);
  box-shadow: 0 2px 8px rgba(87, 72, 109, 0.09);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 42px;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1001;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.main-logo {
  height: 36px;
  width: auto;
  display: block;
}

/* ====== FOOTER ====== */
.site-footer {
  background: var(--color-footer-bg);
  color: #fff;
  padding: 35px 0 25px 0;
  width: 100vw;
  margin: 0;
  flex-shrink: 0;
}

.footer-inner {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  font-size: 1.08em;
}

.footer-block {
  min-width: 230px;
  flex: 1;
}

.footer-block h4 {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.06em;
  margin: 0 0 12px 0;
  letter-spacing: 0.01em;
}

.footer-block strong {
  color: var(--color-accent);
  font-weight: 600;
}

.footer-block a {
  color: #fff;
  text-decoration: underline;
  font-size: 1em;
}

.footer-block a:hover {
  color: var(--color-accent);
}

.footer-contacts {
  color: #fff;
  margin-top: 12px;
  font-size: 1.01em;
}

.footer-bottom {
  margin-top: 28px;
  text-align: center;
  color: var(--color-footer-bottom);
  font-size: 0.97em;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-footer {
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .footer-inner {
    flex-direction: column;
    gap: 13px;
  }

  .footer-block {
    min-width: unset;
  }
}