/* Company registration — aligned with Flutter CompanyRegistrationScreen (top section) */

@font-face {
  font-family: 'Rubik';
  src: url('/static/register/fonts/Rubik-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

.page-company {
  font-family: Rubik, Arial, sans-serif;
}

.page-company .hero-blue {
  padding: 56px 24px;
  background: var(--system-secondary);
  text-align: center;
}

.page-company .hero-title {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  color: var(--main);
  line-height: 1.2;
}

.page-company .hero-subtitle {
  margin: 16px auto 0;
  font-size: 20px;
  font-weight: 400;
  color: #000;
  line-height: 1.4;
  max-width: 900px;
}

.page-company .hero-benefits {
  padding: 48px 24px;
  background: #fff;
}

.page-company .benefits-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 24px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-company .benefit-tile {
  width: 200px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
}

.page-company .benefit-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--system);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.page-company .benefit-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-company .benefit-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--main);
  line-height: 1.4;
  margin-bottom: 4px;
}

.page-company .benefit-desc {
  font-size: 20px;
  font-weight: 400;
  color: #000;
  line-height: 1.4;
}

.page-company .brix-navbar {
  justify-content: center;
  position: relative;
}

.page-company .nav-back {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  height: 100%;
  margin: 0;
  transform: none;
}

.page-company .brix-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.page-company .brix-logo {
  height: 32px;
  width: auto;
  display: block;
}

/* ── Form area (step 1) ── */
.page-company .form-wrap--company {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 24px 48px;
}

.page-company .company-step-indicator {
  margin-bottom: 0;
}

.page-company .step-indicator {
  margin-bottom: 32px;
}

@media (max-width: 767px) {
  .page-company .company-step-indicator {
    margin-bottom: 24px;
  }

  .page-company .step-indicator {
    margin-bottom: 24px;
  }

  .page-company .step-bars {
    gap: 8px;
  }

  .page-company .step-bar {
    height: 4.75px;
    border-radius: 20px;
  }
}

.page-company .step-text {
  font-family: Rubik, Arial, sans-serif;
}

@media (min-width: 768px) and (max-width: 899px) {
  .page-company .step-labels {
    gap: 24px;
  }

  .page-company .step-text {
    font-size: 18px;
  }
}

.page-company .section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--main);
  margin: 0 0 20px;
  text-align: right;
}

.page-company .field-group {
  margin-bottom: 14px;
}

.page-company .field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--main);
  margin-bottom: 6px;
  text-align: right;
}

.page-company .field-label.field-label--error {
  color: var(--error);
}

.page-company .field-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 16px;
  font-family: inherit;
  color: var(--main);
  text-align: right;
  direction: rtl;
  background: #fff;
}

.page-company .field-input::placeholder {
  color: var(--field);
  opacity: 1;
}

.page-company .area-search-wrap .field-input.area-search {
  padding: 12px 44px 12px 16px;
  border-radius: 8px;
}

.page-company .phone-row {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: flex-start;
  direction: ltr;
}

.page-company .phone-prefix {
  width: 88px;
  flex-shrink: 0;
  padding: 12px 8px;
}

.page-company .phone-suffix {
  flex: 1;
  direction: ltr;
  text-align: left;
}

.page-company .consent-block {
  margin-top: 16px;
}

.page-company .consent-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
}

.page-company .consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--btn);
  flex-shrink: 0;
}

.page-company .consent-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--main);
  line-height: 1.45;
  cursor: pointer;
}

.page-company .consent-label.consent-label--error {
  color: var(--error);
}

.page-company .consent-error {
  margin-top: 2px;
  padding-right: 26px;
}

.page-company .consent-error.hidden {
  display: none;
}

.page-company .terms-link {
  display: inline-block;
  margin-top: 4px;
  padding: 0;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 400;
  color: var(--btn);
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
}

.page-company .step-nav {
  margin-top: 28px;
}

.page-company .step-nav--solo .btn.primary {
  width: 100%;
  min-height: 56px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
}

/* ── Step 3 — trucks ── */
.page-company .truck-adder-label {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--main);
  text-align: right;
}

.page-company .truck-adder-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  text-align: right;
}

.page-company .truck-type-picker {
  margin-top: 8px;
}

.page-company .truck-existing {
  margin-top: 20px;
}

.page-company .truck-existing.hidden {
  display: none;
}

.page-company .truck-existing .truck-adder-label {
  margin-bottom: 10px;
}

.page-company #trucks-error {
  margin-top: 6px;
  font-size: 12px;
}

/* Validation errors — match Flutter FormTextField / ConsentCheckbox */
.page-company .field-group.has-error .field-input:not(.phone-prefix),
.page-company .field-group.has-error .phone-suffix {
  border-color: var(--error);
}

.page-company .field-group.has-error .field-input:not(.phone-prefix):focus,
.page-company .field-group.has-error .phone-suffix:focus {
  border-color: var(--error);
  box-shadow: none;
  outline: none;
  border-width: 2px;
  padding: 11px 13px;
}

.page-company .field-group.has-error .phone-prefix {
  border-color: var(--border);
}

.page-company .field-group.has-error .field-label:not(.field-label--error) {
  color: var(--main);
}

.page-company .field-error {
  color: var(--error);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 4px;
  text-align: right;
}

.page-company .consent-block.has-error .consent-label {
  color: var(--error);
}

@media (max-width: 767px) {
  .page-company .hero-blue {
    padding: 28px 24px;
  }

  .page-company .hero-title {
    font-size: 26px;
  }

  .page-company .hero-subtitle {
    font-size: 18px;
  }

  .page-company .hero-benefits {
    padding: 32px 24px;
  }

  .page-company .benefits-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .page-company .benefit-tile {
    width: 100%;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }

  .page-company .benefit-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    padding: 8px;
    margin-bottom: 0;
  }

  .page-company .benefit-title {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 0;
  }

  .page-company .benefit-desc {
    font-size: 16px;
    line-height: 1.5;
  }

  .page-company .nav-back {
    left: 16px;
  }
}

@media (min-width: 768px) and (max-width: 899px) {
  .page-company .benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
  }

  .page-company .benefit-tile {
    width: min(200px, 100%);
  }
}
