:root {
  --rp-content-max: 720px;
  --rp-page-gutter: var(--hotmat-page-gutter, clamp(16px, 4vw, 64px));
  --rp-section-space: clamp(44px, 5.5vw, 72px);
  --rp-red: #ef3b24;
  --rp-red-dark: #d9301d;
  --rp-heading: #161616;
  --rp-body: #4a4a4a;
  --rp-border: #e6e5e3;
  --rp-band: #f7f7f6;
}

html {
  scroll-behavior: smooth;
}

#restaurant-partner-page,
#restaurant-partner-page *,
#restaurant-partner-page *::before,
#restaurant-partner-page *::after {
  box-sizing: border-box;
}

.rp-section-inner {
  margin: 0 auto;
  max-width: var(--rp-content-max);
  width: 100%;
}

.rp-section-title {
  color: var(--rp-heading);
  font-size: clamp(25px, 2.6vw, 31px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}

.rp-section-description {
  color: var(--rp-body);
  font-size: 17px;
  line-height: 1.65;
  margin: 16px 0 0;
  max-width: 62ch;
}

.rp-section-description + .rp-section-description {
  margin-top: 20px;
}

/* Hero */

.rp-hero {
  min-height: clamp(340px, 45vh, 440px);
}

.rp-hero::after {
  background: linear-gradient(100deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.55) 42%, rgba(0, 0, 0, 0.3) 100%);
}

@media screen and (min-width: 769px) {
  .restaurant-partner-hero-image {
    object-position: center top;
  }
}

.rp-hero-inner {
  align-items: center;
  display: flex;
  margin: 0 auto;
  max-width: calc(var(--rp-content-max) + 2 * var(--rp-page-gutter));
  min-height: inherit;
  padding: clamp(88px, 9vw, 108px) var(--rp-page-gutter) clamp(32px, 4vw, 48px);
  position: relative;
  width: 100%;
  z-index: 2;
}

.rp-hero-copy {
  color: #ffffff;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.6);
  width: 100%;
}

.rp-hero-title {
  color: #ffffff;
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0;
}

.rp-hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.4;
  margin: 14px 0 0;
}

.rp-hero-cta {
  align-items: center;
  background: var(--rp-red);
  border-radius: 10px;
  color: #ffffff;
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  justify-content: center;
  line-height: 1.2;
  margin-top: 20px;
  min-height: 48px;
  padding: 0 22px;
  text-decoration: none;
  text-shadow: none;
  transition: background 150ms ease;
}

.rp-hero-cta:hover {
  background: var(--rp-red-dark);
}

.rp-hero-cta:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

/* What is Hotmat */

.rp-about {
  padding: var(--rp-section-space) var(--rp-page-gutter) 0;
}

/* Pricing */

.rp-pricing {
  padding: var(--rp-section-space) var(--rp-page-gutter);
}

.rp-pricing-list {
  border-top: 1px solid var(--rp-border);
  margin: 28px 0 0;
  padding: 0;
}

.rp-pricing-item {
  align-items: baseline;
  border-bottom: 1px solid var(--rp-border);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 17px 0;
}

.rp-pricing-item dt {
  color: var(--rp-body);
  font-size: 16px;
}

.rp-pricing-item dd {
  color: var(--rp-heading);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}

/* Form blocks */

.rp-block {
  padding: var(--rp-section-space) var(--rp-page-gutter);
}

.rp-callback {
  background: var(--rp-band);
  border-bottom: 1px solid var(--rp-border);
  border-top: 1px solid var(--rp-border);
}

.rp-signup {
  padding-bottom: clamp(56px, 7vw, 88px);
}

.rp-field {
  margin-top: 20px;
}

.rp-field-row {
  display: grid;
  gap: 0 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rp-label {
  color: #1a1a1a;
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 8px;
}

.rp-input-wrap {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d6d6d6;
  border-radius: 10px;
  display: flex;
  height: 52px;
  padding: 0 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rp-input-wrap:focus-within {
  border-color: var(--rp-red);
  box-shadow: 0 0 0 3px rgba(239, 59, 36, 0.14);
}

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

.rp-input {
  background: transparent;
  border: 0;
  color: #1a1a1a;
  flex: 1 1 auto;
  font-family: inherit;
  font-size: 16px;
  min-width: 0;
  outline: 0;
  padding: 0;
}

.rp-input::placeholder {
  color: #8f8f8f;
}

.rp-field-error {
  color: #c62f26;
  font-size: 13px;
  line-height: 1.35;
  margin: 7px 0 0;
}

.rp-form-feedback {
  color: #c62f26;
  font-size: 14px;
  line-height: 1.45;
  margin: 20px 0 0;
}

.rp-callback-feedback {
  background: #fff0ee;
  border-radius: 8px;
  color: #a72920;
  font-size: 13.5px;
  margin: 16px 0 0;
  outline: 0;
  padding: 10px 12px;
}

.rp-button {
  align-items: center;
  background: var(--rp-red);
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  gap: 10px;
  justify-content: center;
  line-height: 1;
  margin-top: 28px;
  min-height: 52px;
  padding: 0 28px;
  transition: background 150ms ease;
}

.rp-button:hover {
  background: var(--rp-red-dark);
}

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

.rp-button[disabled] {
  cursor: default;
}

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

.rp-button.is-loading {
  background: var(--rp-red-dark);
}

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

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

.rp-success-title {
  color: var(--rp-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.rp-success-description {
  color: var(--rp-body);
  font-size: 16px;
  line-height: 1.5;
  margin: 10px 0 0;
}

.rp-callback-success {
  background: #edf8f0;
  border-radius: 8px;
  color: #216b35;
  margin: 16px 0 0;
  outline: 0;
  padding: 10px 12px;
}

.rp-callback-success .rp-success-title {
  color: inherit;
  font-size: 14px;
  line-height: 1.4;
}

.rp-callback-success .rp-success-description {
  color: inherit;
  font-size: 13.5px;
  line-height: 1.45;
  margin-top: 3px;
}

@media screen and (max-width: 768px) {
  .rp-hero {
    min-height: 320px;
  }

  .rp-hero-inner {
    padding-bottom: 44px;
    padding-top: 104px;
  }

  .rp-button {
    width: 100%;
  }
}

@media screen and (max-width: 599px) {
  .rp-field-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rp-hero-cta,
  .rp-button,
  .rp-input-wrap {
    transition: none;
  }

  .rp-button-spinner {
    animation-duration: 1800ms;
  }
}
