/* Driver page */

.driver-page-body {
  background: #ffffff;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
}

#driver-page {
  box-sizing: border-box;
  flex: 1 0 auto;
  margin: 0 auto;
  max-width: var(--restaurant-shell-wide-max);
  padding: 24px var(--restaurant-shell-page-gutter) 48px;
  width: 100%;
}

.driver-page-body #driver-page {
  margin: 0;
  max-width: none;
  padding: 0;
}

.driver-page-body #driver-page *,
.driver-page-body #driver-page *::before,
.driver-page-body #driver-page *::after {
  box-sizing: border-box;
}

.driver-hero {
  background: #050505;
  min-height: clamp(620px, 100svh, 760px);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.driver-hero::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.04) 42%, rgba(0, 0, 0, 0.22));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.driver-hero-image {
  background: #050505;
  display: block;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center 20%;
  position: absolute;
  width: 100%;
}

.driver-hero-inner {
  align-items: center;
  display: flex;
  gap: clamp(28px, 5vw, 64px);
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--restaurant-shell-wide-max);
  min-height: inherit;
  padding: clamp(24px, 4vw, 64px);
  position: relative;
  width: 100%;
  z-index: 2;
}

.driver-hero-copy {
  color: #ffffff;
  max-width: 760px;
  min-width: 0;
  padding-top: 0;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.72);
}

.driver-hero-title {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
}

.driver-hero-subtitle {
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(16px, 1.55vw, 20px);
  font-weight: 400;
  line-height: 1.45;
  margin: 14px 0 0;
  max-width: 660px;
}

.driver-hero-badges {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.driver-hero-badge {
  align-items: center;
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  font-size: 15px;
  font-weight: 400;
  gap: 12px;
  line-height: 1.2;
  min-height: 54px;
  padding: 12px 16px;
  white-space: nowrap;
}

.driver-hero-badge-icon {
  color: #ef3b24;
  display: flex;
  flex: 0 0 auto;
}

.driver-hero-badge-icon svg {
  display: block;
  height: 34px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 34px;
}

.driver-registration-card {
  background: #ffffff;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  flex: 0 0 auto;
  color: #1a1a1a;
  margin: 0;
  padding: 32px 28px 28px;
  width: min(100%, 368px);
}

.driver-registration-title {
  color: #1a1a1a;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.18;
  margin: 0;
}

.driver-registration-subtitle {
  color: #555555;
  font-size: 14px;
  line-height: 1.45;
  margin: 8px 0 0;
}

.driver-registration-feedback {
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.45;
  margin: 16px 0 0;
  outline: 0;
  padding: 10px 12px;
}

.driver-registration-success {
  background: #edf8f0;
  color: #216b35;
}

.driver-registration-error {
  background: #fff0ee;
  color: #a72920;
}

.driver-registration-field {
  margin-top: 16px;
}

.driver-registration-label {
  color: #1a1a1a;
  display: block;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 7px;
}

.driver-registration-input-wrap {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  height: 44px;
  padding: 0 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.driver-registration-input-wrap:focus-within {
  border-color: #ef3b24;
  box-shadow: 0 0 0 3px rgba(239, 59, 36, 0.14);
}

.driver-registration-field.has-error .driver-registration-input-wrap {
  border-color: #d0342c;
}

.driver-registration-icon {
  color: #9a9a9a;
  display: flex;
  flex: 0 0 auto;
}

.driver-registration-icon svg {
  display: block;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 16px;
}

.driver-registration-input {
  background: transparent;
  border: 0;
  color: #1a1a1a;
  flex: 1 1 auto;
  font-size: 14px;
  min-width: 0;
  outline: 0;
  padding: 0;
}

.driver-registration-input::placeholder {
  color: #b3b3b3;
}

.driver-registration-field-error {
  color: #c62f26;
  font-size: 12.5px;
  line-height: 1.35;
  margin: 6px 0 0;
}

.driver-registration-button {
  align-items: center;
  background: #ef3b24;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 500;
  gap: 9px;
  height: 46px;
  justify-content: center;
  margin-top: 24px;
  transition: background 0.15s ease, transform 0.15s ease;
  width: 100%;
}

.driver-registration-button:hover,
.driver-registration-button:focus-visible {
  background: #d9301d;
}

.driver-registration-button:focus-visible {
  outline: 3px solid rgba(239, 59, 36, 0.26);
  outline-offset: 3px;
}

.driver-registration-button:active {
  transform: translateY(1px);
}

.driver-registration-button[disabled] {
  cursor: default;
  opacity: 0.82;
}

.driver-registration-button-spinner {
  animation: driver-registration-spin 750ms linear infinite;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  border-top-color: #ffffff;
  display: none;
  height: 16px;
  width: 16px;
}

.driver-registration-button.is-loading .driver-registration-button-spinner {
  display: block;
}

@keyframes driver-registration-spin {
  to {
    transform: rotate(360deg);
  }
}

.driver-how {
  background: #f7f7f6;
  padding: 38px var(--restaurant-shell-page-gutter) 44px;
  width: 100%;
}

.driver-how-inner {
  margin: 0 auto;
  max-width: var(--restaurant-shell-content-max);
  width: 100%;
}

.driver-how-title {
  color: #161616;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 22px;
  text-align: center;
}

.driver-how-cards {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.driver-how-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid #f2f2f2;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.045);
  display: grid;
  gap: 20px;
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 132px;
  padding: 22px 24px 22px 58px;
  position: relative;
}

.driver-how-step {
  align-items: center;
  background: var(--hotmat-brand-red);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(22, 22, 22, 0.18);
  color: #ffffff;
  display: flex;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  left: 22px;
  line-height: 1;
  position: absolute;
  top: 22px;
  width: 32px;
}

.driver-how-illustration {
  align-items: center;
  display: flex;
  height: 86px;
  justify-content: center;
  width: 104px;
}

.driver-how-illustration img {
  display: block;
  height: 86px;
  object-fit: contain;
  width: 104px;
}

.driver-how-copy {
  min-width: 0;
}

.driver-how-copy h3 {
  color: #161616;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px;
}

.driver-how-copy p {
  color: #626262;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  max-width: 260px;
  text-wrap: pretty;
}

@media screen and (max-width: 980px) {
  .driver-how-cards {
    grid-template-columns: 1fr;
    margin: 0 auto;
    max-width: 620px;
  }

  .driver-how-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .driver-how-copy p {
    max-width: none;
  }
}

@media screen and (max-width: 520px) {
  .driver-hero {
    min-height: 0;
  }

  .driver-hero-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 28px;
    justify-content: center;
    padding: 112px 16px 42px;
  }

  .driver-hero-copy {
    padding-top: 0;
  }

  .driver-hero-title {
    font-size: 39px;
  }

  .driver-hero-subtitle {
    font-size: 16px;
    margin-top: 12px;
  }

  .driver-hero-badges {
    align-items: stretch;
    gap: 10px;
    margin-top: 22px;
  }

  .driver-hero-badge {
    flex: 1 1 100%;
    font-size: 14px;
    min-height: 48px;
    padding: 11px 13px;
  }

  .driver-hero-badge-icon svg {
    height: 30px;
    width: 30px;
  }

  .driver-registration-card {
    padding: 30px 26px 26px;
    width: 100%;
  }

  .driver-how {
    padding: 34px 16px 40px;
  }

  .driver-how-title {
    font-size: 28px;
    margin-bottom: 18px;
  }

  .driver-how-cards {
    gap: 14px;
  }

  .driver-how-card {
    gap: 16px;
    grid-template-columns: 78px minmax(0, 1fr);
    min-height: 122px;
    padding: 18px 18px 18px 48px;
  }

  .driver-how-step {
    font-size: 14px;
    height: 28px;
    left: 14px;
    top: 18px;
    width: 28px;
  }

  .driver-how-illustration,
  .driver-how-illustration img {
    height: 72px;
    width: 78px;
  }

  .driver-how-copy h3 {
    font-size: 16px;
  }

  .driver-how-copy p {
    font-size: 13px;
    line-height: 1.42;
  }
}

@media screen and (max-width: 360px) {
  .driver-hero-inner {
    padding-right: 16px;
    padding-left: 16px;
  }

  .driver-registration-card {
    padding-right: 22px;
    padding-left: 22px;
  }

  .driver-registration-input-wrap {
    gap: 8px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .driver-registration-input {
    font-size: 13px;
  }

  .driver-how-card {
    grid-template-columns: 1fr;
    padding: 56px 18px 20px;
    text-align: center;
  }

  .driver-how-step {
    left: 18px;
  }

  .driver-how-illustration {
    margin: 0 auto;
  }
}

.driver-page-body .site-footer {
  margin-top: auto;
}

.driver-page-body .site-footer {
  --content-max: var(--hotmat-content-max);
}

@media screen and (min-width: 769px) {

  .driver-page-body .site-footer {
    padding-right: var(--hotmat-page-gutter);
    padding-left: var(--hotmat-page-gutter);
  }
}
