:root {
  --rpf-brand-black: hsla(60, 4%, 11%, 1);
  --rpf-brand-leaf: hsla(123, 43%, 48%, 1);
  --rpf-brand-raspberry: hsla(342, 71%, 47%, 1);
}

:root {
  --rpf-red-100: hsla(4, 89%, 96%, 1);
  --rpf-red-200: hsla(1, 87%, 91%, 1);
  --rpf-red-400: hsla(1, 87%, 82%, 1);
  --rpf-red-600: hsla(1, 87%, 72%, 1);
  --rpf-red-800: hsla(1, 87%, 63%, 1);
  --rpf-red-900: hsla(1, 52%, 50%, 1);
  --rpf-green-100: hsla(125, 41%, 95%, 1);
  --rpf-green-200: hsla(122, 39%, 87%, 1);
  --rpf-green-400: hsla(123, 40%, 74%, 1);
  --rpf-green-600: hsla(123, 40%, 61%, 1);
  --rpf-green-800: hsla(123, 43%, 48%, 1);
  --rpf-green-900: hsla(123, 43%, 36%, 1);
  --rpf-teal-100: hsla(176, 55%, 94%, 1);
  --rpf-teal-200: hsla(174, 55%, 85%, 1);
  --rpf-teal-400: hsla(174, 55%, 70%, 1);
  --rpf-teal-600: hsla(174, 56%, 56%, 1);
  --rpf-teal-800: hsla(174, 81%, 41%, 1);
  --rpf-teal-900: hsla(174, 81%, 29%, 1);
  --rpf-orange-100: hsla(31, 100%, 95%, 1);
  --rpf-orange-200: hsla(32, 100%, 88%, 1);
  --rpf-orange-400: hsla(31, 100%, 77%, 1);
  --rpf-orange-600: hsla(31, 99%, 65%, 1);
  --rpf-orange-800: hsla(31, 99%, 54%, 1);
  --rpf-orange-900: hsla(31, 85%, 37%, 1);
  --rpf-yellow-100: hsla(51, 100%, 95%, 1);
  --rpf-yellow-200: hsla(52, 100%, 87%, 1);
  --rpf-yellow-400: hsla(51, 100%, 75%, 1);
  --rpf-yellow-600: hsla(52, 100%, 63%, 1);
  --rpf-yellow-800: hsla(52, 100%, 50%, 1);
  --rpf-yellow-900: hsla(52, 100%, 26%, 1);
  --rpf-purple-100: hsla(282, 36%, 95%, 1);
  --rpf-purple-200: hsla(279, 38%, 87%, 1);
  --rpf-purple-400: hsla(279, 38%, 73%, 1);
  --rpf-purple-600: hsla(279, 37%, 60%, 1);
  --rpf-purple-800: hsla(279, 43%, 47%, 1);
  --rpf-purple-900: hsla(280, 43%, 37%, 1);
  --rpf-navy-100: hsla(235, 38%, 94%, 1);
  --rpf-navy-200: hsla(234, 38%, 84%, 1);
  --rpf-navy-400: hsla(235, 38%, 69%, 1);
  --rpf-navy-600: hsla(235, 38%, 53%, 1);
  --rpf-navy-800: hsla(235, 63%, 37%, 1);
  --rpf-navy-900: hsla(234, 63%, 30%, 1);
  --rpf-blue-100: hsla(203, 86%, 95%, 1);
  --rpf-blue-200: hsla(204, 88%, 87%, 1);
  --rpf-blue-400: hsla(204, 88%, 74%, 1);
  --rpf-blue-600: hsla(204, 89%, 60%, 1);
  --rpf-blue-800: hsla(204, 100%, 47%, 1);
  --rpf-blue-900: hsla(204, 100%, 38%, 1);
}

:root {
  --rpf-white: hsla(0, 0%, 100%, 1);
  --rpf-off-white: hsla(225, 25%, 97%, 1);
  --rpf-grey-50: hsla(210, 8%, 95%, 1);
  --rpf-grey-100: hsla(228, 10%, 90%, 1);
  --rpf-grey-150: hsla(223, 9%, 85%, 1);
  --rpf-grey-200: hsla(228, 10%, 80%, 1);
  --rpf-grey-300: hsla(229, 9%, 75%, 1);
  --rpf-grey-400: hsla(229, 8%, 61%, 1);
  --rpf-grey-500: hsla(229, 9%, 42%, 1);
  --rpf-grey-600: hsla(228, 9%, 32%, 1);
  --rpf-grey-700: hsla(228, 9%, 22%, 1);
  --rpf-grey-800: hsla(232, 9%, 18%, 1);
  --rpf-grey-850: hsla(228, 9%, 15%, 1);
  --rpf-grey-900: hsla(228, 9%, 10%, 1);
  --rpf-grey-950: hsla(228, 8%, 5%, 1);
  --rpf-black: hsla(0, 0%, 0%, 1);
}

:root {
  --font-size-0-5: 0.5rem;
  --font-size-0-75: 0.75rem;
  --font-size-1: 1rem;
  --font-size-1-5: 1.25rem;
  --font-size-2: 1.5rem;
  --font-size-3: 2rem;
  --font-size-4: 2.5rem;
  --font-size-5: 3rem;
  --font-size-6: 3.5rem;
  --font-size-7: 4rem;
  --font-size-8: 4.5rem;
  --font-size-9: 5rem;
}

:root {
  --font-weight-regular: 400;
  --font-weight-bold: 700;
}

:root {
  --border-radius: var(--space-1);
  --input-border-width: 2px;
}

:root {
  --space-0-125: 0.0625rem;
  --space-0-25: 0.125rem;
  --space-0-5: 0.25rem;
  --space-1: 0.5rem;
  --space-1-5: 0.75rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3rem;
  --space-7: 3.5rem;
  --space-8: 4rem;
  --space-9: 4.5rem;
  --space-10: 5rem;
}

:root {
  --rpf-button-primary-background-color: var(--rpf-navy-800);
  --rpf-button-primary-background-color-hover: var(--rpf-navy-900);
  --rpf-button-primary-background-color-active: var(--rpf-navy-600);
  --rpf-button-primary-background-color-disabled: var(--rpf-grey-600);
  --rpf-button-primary-text-color: var(--rpf-white);
  --rpf-button-border-radius: var(--border-radius);
  --rpf-button-lg-height: 48px;
  --rpf-button-sm-height: 32px;
  /* 44px min-height to meet WCAG AAA target size requirements */
  --rpf-button-min-target-size: 44px;
}

.rpf-button {
  all: unset;
  align-items: center;
  color: var(--rpf-button-primary-text-color);
  /*
   * We've decided to follow the masses on this and have a pointer on buttons.
   * Google, Facebook, Twitter, Mozilla, and Microsoft amongst many others have a pointer on buttons.
   */
  cursor: pointer;
  display: flex;
  font-size: var(--font-size-1-5);
  font-weight: var(--font-weight-bold);
  gap: var(--space-1);
  min-height: calc(var(--rpf-button-lg-height) - var(--space-1) - var(--space-1));
  padding: var(--space-1) var(--space-2);
  position: relative;
  text-align: center;
  text-decoration: none;
  /* Fixes a rendering error that sometimes occurs due to negative z-index */
  transform: scale(1);
  width: fit-content;
  /* A bit of a hack to allow for separate visual and target heights */
}
.rpf-button::before {
  background-color: var(--rpf-button-primary-background-color);
  border-color: var(--rpf-button-primary-background-color);
  border-radius: var(--rpf-button-border-radius);
  border-style: solid;
  border-width: 2px;
  content: "";
  display: block;
  inset: 0;
  position: absolute;
  /* To ensure it renders under its siblings */
  z-index: -1;
}
.rpf-button:hover::before {
  background-color: var(--rpf-button-primary-background-color-hover);
  border-color: var(--rpf-button-primary-background-color-hover);
}
.rpf-button:active::before {
  background-color: var(--rpf-button-primary-background-color-active);
  border-color: var(--rpf-button-primary-background-color-active);
}
.rpf-button:focus-visible::before {
  outline: 3px solid var(--rpf-brand-raspberry);
}
.rpf-button:disabled, .rpf-button--disabled {
  cursor: default;
}
.rpf-button:disabled:hover::before, .rpf-button:disabled::before, .rpf-button--disabled:hover::before, .rpf-button--disabled::before {
  border-color: var(--rpf-button-primary-background-color-disabled);
  background-color: var(--rpf-button-primary-background-color-disabled);
}
.rpf-button--secondary {
  color: var(--rpf-button-primary-background-color);
}
.rpf-button--secondary::before {
  background-color: var(--rpf-button-primary-text-color);
}
.rpf-button--secondary:hover {
  color: var(--rpf-button-primary-background-color-hover);
}
.rpf-button--secondary:hover::before {
  background-color: var(--rpf-button-primary-text-color);
  border-color: var(--rpf-button-primary-background-color-hover);
}
.rpf-button--secondary:active {
  color: var(--rpf-button-primary-background-color-active);
}
.rpf-button--secondary:active::before {
  background-color: var(--rpf-button-primary-text-color);
  border-color: var(--rpf-button-primary-background-color-active);
}
.rpf-button--secondary:disabled, .rpf-button--secondary.rpf-button--disabled {
  color: var(--rpf-button-primary-background-color-disabled);
}
.rpf-button--secondary:disabled:hover::before, .rpf-button--secondary:disabled:before, .rpf-button--secondary.rpf-button--disabled:hover::before, .rpf-button--secondary.rpf-button--disabled:before {
  background-color: var(--rpf-button-primary-text-color);
  border-color: var(--rpf-button-primary-background-color-disabled);
}
.rpf-button--tertiary {
  color: var(--rpf-button-primary-background-color);
}
.rpf-button--tertiary::before {
  background-color: transparent;
  border-color: transparent;
}
.rpf-button--tertiary:hover {
  color: var(--rpf-button-primary-background-color-hover);
}
.rpf-button--tertiary:hover::before {
  background-color: transparent;
  border-color: transparent;
}
.rpf-button--tertiary:active {
  color: var(--rpf-button-primary-background-color-active);
}
.rpf-button--tertiary:active::before {
  background-color: transparent;
}
.rpf-button--tertiary:disabled, .rpf-button--tertiary.rpf-button--disabled {
  color: var(--rpf-button-primary-background-color-disabled);
}
.rpf-button--tertiary:disabled:hover::before, .rpf-button--tertiary:disabled::before, .rpf-button--tertiary.rpf-button--disabled:hover::before, .rpf-button--tertiary.rpf-button--disabled::before {
  background-color: transparent;
  border-color: transparent;
}
.rpf-button--icon-only {
  height: var(--rpf-button-lg-height);
  line-height: var(--rpf-button-lg-height);
  padding: 0;
  text-align: center;
  width: var(--rpf-button-lg-height);
}
.rpf-button--icon-only .rpf-button__icon {
  margin: 0 auto;
}
.rpf-button--sm {
  font-size: var(--font-size-1);
  min-height: calc(var(--rpf-button-min-target-size) - var(--space-1) - var(--space-1));
  padding: var(--space-1) var(--space-1);
  /* To account for 32px visual height and 44px target height */
}
.rpf-button--sm::before {
  inset: calc((var(--rpf-button-min-target-size) - var(--rpf-button-sm-height)) / 2) 0;
}
.rpf-button--sm.rpf-button--icon-only {
  height: var(--rpf-button-min-target-size);
  line-height: var(--rpf-button-min-target-size);
  padding: 0;
  width: var(--rpf-button-min-target-size);
}
.rpf-button--sm.rpf-button--icon-only::before {
  inset: calc((var(--rpf-button-min-target-size) - var(--rpf-button-sm-height)) / 2);
}
.rpf-button--sm .material-symbols-sharp {
  font-size: 20px;
  font-variation-settings: "OPSZ" 20;
}

:root {
  --rpf-alert-error-highlight: hsla(0, 100%, 96%, 1);
  --rpf-alert-error: hsla(0, 88%, 33%, 1);
  --rpf-alert-information-highlight: hsla(225, 64%, 97%, 1);
  --rpf-alert-information: hsla(225, 64%, 33%, 1);
  --rpf-alert-success-highlight: hsla(136, 91%, 97%, 1);
  --rpf-alert-success: hsla(136, 90%, 20%, 1);
  --rpf-alert-warning-highlight: hsla(26, 70%, 96%, 1);
  --rpf-alert-warning: hsla(26, 70%, 29%, 1);
}

:root {
  --rpf-text-primary: hsl(0, 0%, 13%);
  --rpf-text-primary-darkmode: var(--rpf-white);
  --rpf-text-secondary: hsl(200, 9%, 33%);
  --rpf-text-secondary-darkmode: hsl(0, 0%, 80%);
}

:root {
  --rpf-input-background-color: var(--rpf-white);
  --rpf-input-background-color-disabled: var(--rpf-grey-50);
  --rpf-input-color-error: var(--rpf-alert-error);
  --rpf-input-color: var(--rpf-text-primary);
  --rpf-input-outline-color: var(--rpf-blue-800);
}

.rpf-input-field {
  margin-block-end: var(--space-3);
}

.rpf-input {
  all: unset;
  background-color: var(--rpf-input-background-color);
  border: var(--input-border-width) solid var(--rpf-input-color);
  border-radius: var(--border-radius);
  color: var(--rpf-input-color);
  display: flex;
  font-size: var(--font-size-1);
  line-height: var(--line-height-2);
  padding-block: calc(var(--space-1) - 2px);
  padding-inline: var(--space-1-5);
  min-width: 240px;
  width: fit-content;
}
.rpf-input:focus-visible {
  outline: 3px solid var(--rpf-input-outline-color);
}
.rpf-input:disabled, .rpf-input--disabled {
  background-color: var(--rpf-input-background-color-disabled);
  border-color: var(--rpf-input-background-color-disabled);
}
.rpf-input--error {
  border-color: var(--rpf-input-color-error);
}

:root {
  --line-height-0-75: 0.75rem;
  --line-height-1: 1rem;
  --line-height-1-5: 1.5rem;
  --line-height-2: 2rem;
  --line-height-2-5: 2.5rem;
  --line-height-3: 3rem;
  --line-height-3-5: 3.5rem;
  --line-height-4: 4rem;
  --line-height-4-5: 4.5rem;
  --line-height-5: 5rem;
  --line-height-5-5: 5.5rem;
  --line-height-6: 6rem;
  --line-height-6-5: 6.5rem;
}

:root {
  --rpf-label-hint-color: var(--rpf-text-secondary);
  --rpf-label-text-color: var(--rpf-text-primary);
  --rpf-label-text-color-disabled: var(--rpf-grey-400);
}

.rpf-label {
  all: unset;
  display: flex;
  flex-direction: column;
  padding-block-end: var(--space-1);
  font-size: var(--font-size-1);
  line-height: var(--line-height-1-5);
}
.rpf-label label {
  color: var(--rpf-label-text-color);
  font-weight: var(--font-weight-bold);
}
.rpf-label__hint {
  color: var(--rpf-label-hint-color);
}
.rpf-label--disabled {
  color: var(--rpf-label-text-color-disabled);
}
.rpf-label--disabled label {
  color: var(--rpf-label-text-color-disabled);
}
.rpf-label--disabled .rpf-label__hint {
  color: var(--rpf-label-text-color-disabled);
}

.rpf-input-select {
  background-image: url(/public/img/arrow-down.svg);
  background-repeat: no-repeat;
  background-position: center right var(--space-1-5);
}
html[dir=rtl] .rpf-input-select {
  background-position: center left var(--space-1-5);
}
.rpf-input-select:disabled, .rpf-input-select--disabled {
  background-image: none;
}

:root {
  --rpf-message-text-color: var(--rpf-alert-error);
}

.rpf-error-message {
  all: unset;
  align-items: center;
  color: var(--rpf-message-text-color);
  display: flex;
  font-weight: var(--font-weight-bold);
  padding-block-end: var(--space-1);
}
.rpf-error-message__icon {
  margin-inline-end: var(--space-1);
  padding-block: var(--space-1);
}
