.rdb-booking {
  --rdb-primary: #69c8c9;
  --rdb-secondary: #8250a0;
  --rdb-text: #53606d;
  --rdb-black: #101010;
  --rdb-heading: #0c0c0c;
  --rdb-soft-blue: #edf3f8;
  --rdb-soft-green: #f4f9f0;
  --rdb-line: #d9dce2;
  --rdb-field-line: #cfd4dc;
  --rdb-shadow: 0 18px 45px rgba(16, 16, 16, 0.09);
  --rdb-heading-font: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --rdb-body-font: "Nunito Sans", "Inter", Arial, sans-serif;
  color: var(--rdb-text);
  font-family: var(--rdb-body-font);
  padding: 42px 18px 82px;
  box-sizing: border-box;
  overflow-x: hidden;
}

.rdb-booking *,
.rdb-booking *::before,
.rdb-booking *::after {
  box-sizing: border-box;
}

.rdb-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.rdb-summary span {
  color: var(--rdb-secondary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rdb-form {
  display: grid;
  gap: 20px;
}

.rdb-panel {
  border: 1px solid var(--rdb-line);
  border-radius: 8px;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdfd 100%);
  box-shadow: 0 12px 30px rgba(16, 16, 16, 0.045);
}

.rdb-panel__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.rdb-step {
  display: inline-flex;
  width: 82px;
  height: 34px;
  flex: 0 0 82px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 12px;
  background: var(--rdb-secondary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
}

.rdb-booking .rdb-panel h2 {
  margin: 0 0 4px;
  color: var(--rdb-heading);
  font-family: var(--rdb-heading-font);
  font-size: 28px !important;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
}

.rdb-panel p {
  margin: 0;
  color: var(--rdb-text);
  font-size: 15px;
  line-height: 1.6;
}

.rdb-selected {
  color: var(--rdb-secondary) !important;
  font-size: 16px !important;
  font-weight: 800;
}

.rdb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rdb-option {
  display: block;
  min-height: 112px;
  cursor: pointer;
}

.rdb-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rdb-option span {
  position: relative;
  display: flex;
  height: 100%;
  min-height: 112px;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--rdb-line);
  border-radius: 8px;
  padding: 14px 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfd 100%);
  box-shadow: 0 10px 24px rgba(16, 16, 16, 0.045);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.rdb-option:hover span {
  border-color: rgba(105, 200, 201, 0.62);
  box-shadow: 0 12px 28px rgba(16, 16, 16, 0.06);
  transform: translateY(-1px);
}

.rdb-option span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(130, 80, 160, 0.25);
  border-radius: 50%;
  background: #ffffff;
  transform: translateY(-50%);
}

.rdb-option input:checked + span {
  border-color: var(--rdb-primary);
  box-shadow: 0 0 0 3px rgba(105, 200, 201, 0.18), 0 20px 42px rgba(16, 16, 16, 0.08);
  transform: translateY(-2px);
}

.rdb-option input:checked + span::after {
  border-color: var(--rdb-secondary);
  background: var(--rdb-secondary);
  box-shadow: inset 0 0 0 3px #ffffff;
}

.rdb-option i {
  order: 1;
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
  place-items: center;
  border-radius: 50%;
  background: var(--rdb-soft-blue);
  color: var(--rdb-secondary);
  font-style: normal;
  font-weight: 900;
}

.rdb-option small {
  order: 3;
  color: var(--rdb-secondary);
  max-width: 92%;
  min-height: 44px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

.rdb-option strong {
  order: 2;
  min-height: 58px;
  color: var(--rdb-heading);
  font-family: var(--rdb-heading-font);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.rdb-option em {
  order: 4;
  margin-top: 10px;
  color: var(--rdb-text);
  font-size: 15px;
  font-style: normal;
  min-height: 24px;
}

.rdb-option b {
  order: 5;
  margin-top: auto;
  color: var(--rdb-heading);
  font-family: var(--rdb-heading-font);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.1;
}

.rdb-booking .rdb-option b {
  display: inline-flex;
  width: 210px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(105, 200, 201, 0.42);
  border-radius: 8px;
  min-height: 46px;
  padding: 7px 12px;
  background: rgba(105, 200, 201, 0.11);
  color: var(--rdb-secondary);
  box-shadow: 0 8px 18px rgba(105, 200, 201, 0.12);
}

.rdb-subsection {
  margin-top: 22px;
  border-top: 1px solid var(--rdb-line);
  padding-top: 22px;
}

.rdb-subsection__title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.rdb-booking .rdb-subsection h3 {
  margin: 0;
  color: var(--rdb-heading);
  font-family: var(--rdb-heading-font);
  font-size: 24px !important;
  font-weight: 700;
  line-height: 1.05;
}

.rdb-subsection p {
  display: none;
  max-width: 520px;
  text-align: right;
}

.rdb-duration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rdb-duration-option {
  display: block;
  cursor: pointer;
}

.rdb-duration-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rdb-duration-option span {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 112px;
  border: 1px solid var(--rdb-line);
  border-radius: 8px;
  padding: 18px 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfd 100%);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.rdb-duration-option strong {
  color: var(--rdb-heading);
  font-family: var(--rdb-heading-font);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}

.rdb-duration-option em {
  color: var(--rdb-text);
  font-style: normal;
}

.rdb-duration-option b {
  color: var(--rdb-secondary);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.rdb-duration-option input:checked + span {
  border-color: var(--rdb-primary);
  box-shadow: 0 0 0 3px rgba(105, 200, 201, 0.22), 0 14px 34px rgba(16, 16, 16, 0.08);
  transform: translateY(-1px);
}

.rdb-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rdb-fields--schedule {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rdb-fields--billing {
  margin-top: 28px;
}

.rdb-fields label,
.rdb-notes {
  display: grid;
  gap: 8px;
}

.rdb-fields span,
.rdb-notes span {
  color: var(--rdb-heading);
  font-weight: 800;
}

.rdb-fields input,
.rdb-fields select,
.rdb-notes textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--rdb-field-line) !important;
  border-radius: 8px !important;
  padding: 12px 14px;
  background: #ffffff !important;
  color: var(--rdb-heading) !important;
  outline: none;
  box-shadow: 0 6px 14px rgba(16, 16, 16, 0.035);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.rdb-fields input:focus,
.rdb-fields select:focus,
.rdb-notes textarea:focus {
  border-color: #9fa7b3 !important;
  box-shadow: 0 0 0 3px rgba(159, 167, 179, 0.18), 0 12px 26px rgba(16, 16, 16, 0.06);
  transform: translateY(-1px);
}

.rdb-notes {
  margin-top: 16px;
}

.rdb-notes textarea {
  resize: vertical;
}

.rdb-summary {
  position: sticky;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(130, 80, 160, 0.2);
  border-radius: 8px;
  padding: 20px 22px;
  background:
    linear-gradient(90deg, #ffffff 0%, var(--rdb-soft-green) 100%);
  box-shadow: var(--rdb-shadow);
}

.rdb-summary__copy {
  display: grid;
  gap: 4px;
}

.rdb-summary strong {
  color: var(--rdb-heading);
  font-family: var(--rdb-heading-font);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  overflow-wrap: anywhere;
}

.rdb-summary p {
  margin: 0;
  color: var(--rdb-text);
}

.rdb-summary button {
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  padding: 0 28px;
  background: var(--rdb-secondary) !important;
  color: #ffffff !important;
  font-weight: 900;
  cursor: pointer;
  opacity: 1 !important;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
  white-space: nowrap;
}

.rdb-summary button:hover {
  background: #6f3f8e;
  box-shadow: 0 12px 26px rgba(130, 80, 160, 0.24);
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .rdb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rdb-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rdb-duration-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .rdb-booking {
    padding: 30px 14px 54px;
  }

  .rdb-duration-grid,
  .rdb-fields,
  .rdb-fields--schedule {
    grid-template-columns: 1fr;
  }

  .rdb-subsection__title {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .rdb-subsection p {
    text-align: left;
  }

  .rdb-panel {
    padding: 20px;
  }

  .rdb-summary {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .rdb-summary strong {
    font-size: 30px;
  }

  .rdb-summary button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .rdb-booking {
    padding: 22px 10px 42px;
  }

  .rdb-grid {
    grid-template-columns: 1fr;
  }

  .rdb-panel {
    padding: 16px;
  }

  .rdb-panel__header {
    gap: 10px;
    margin-bottom: 16px;
  }

  .rdb-step {
    width: 74px;
    height: 32px;
    flex-basis: 74px;
    padding: 0 10px;
    font-size: 12px;
  }

  .rdb-booking .rdb-panel h2 {
    font-size: 24px !important;
  }

  .rdb-booking .rdb-subsection h3 {
    font-size: 22px !important;
  }

  .rdb-option,
  .rdb-option span {
    min-height: 0;
  }

  .rdb-option span {
    padding: 14px 18px;
  }

  .rdb-option strong,
  .rdb-duration-option strong {
    min-height: 0;
    font-size: 21px;
  }

  .rdb-option b,
  .rdb-duration-option b {
    font-size: 18px;
  }

  .rdb-subsection {
    margin-top: 18px;
    padding-top: 18px;
  }

  .rdb-fields input,
  .rdb-fields select,
  .rdb-notes textarea {
    min-height: 48px;
  }

  .rdb-payment-option span {
    padding: 16px;
  }

  .rdb-summary {
    padding: 16px;
  }

  .rdb-summary strong {
    font-size: 26px;
  }

.rdb-summary button {
    min-height: 50px;
    padding: 0 18px;
    white-space: normal;
  }
}

.rdb-booking .rdb-option span {
  display: grid !important;
  grid-template-areas:
    "name"
    "role";
  grid-template-rows: 36px 34px;
  align-content: center;
  row-gap: 0;
}

.rdb-booking .rdb-option strong {
  grid-area: name;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 0;
  max-height: none;
  overflow: visible;
  transform: translateY(5px);
}

.rdb-booking .rdb-option small {
  grid-area: role;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 0;
  max-height: none;
  overflow: visible;
  transform: translateY(5px);
}
