/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

body {
  overflow-x: hidden;
  background: var(--harvest-green-3-alt);
  font-family: var(--main-font);
}

/* ================================
   Accessibility Utility Classes
   ================================ */

/* Screen reader only - visually hidden but accessible to assistive technology */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Screen reader only, but becomes visible on focus (for skip links) */
.sr-only-focusable:focus,
.sr-only-focusable:active {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 1rem 1.5rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--bliss-white);
  color: var(--velvet-black);
  font-family: var(--main-font);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 0 0 8px 0;
}

/* ================================
   Layout Styles
   ================================ */

.r22-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--harvest-green-3-alt);
}

.r22-header {
  display: flex;
  width: 100%;
  background: url('../icons/header-curve.svg') center/cover no-repeat;
  height: 60px;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  gap: 1rem;
}

.r22-header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.r22-header-back {
  display: none;
}

.r22-header-logo svg {
  width: 45px;
  height: 40px;
}

.r22-content {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.r22-help-info {
    font-size: 13px;
    text-align: right;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
}
.r22-help-info small {
    color: var(--harvest-green-3);
}
.r22-help-info p {
    color: var(--bliss-white);
    font-weight: bold;
}

.r22-content.no-modal {
    justify-content: start;
    margin-top: 2rem;
}

.r22-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-direction: column;
  background: var(--bliss-white);
  padding: 2rem;
  padding-bottom: 6rem;
  border-radius: 30px;
  min-width: 625px;
}

.r22-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.r22-logo-button {
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.r22-logo-button img {
  display: block;
}

@media (max-width: 700px) {
  .r22-header {
    justify-content: space-between;
  }

  .r22-header-logo {
    justify-content: flex-end;
  }

  .r22-header-back {
    display: flex;
    align-items: center;
  }

  .rt-btn.r22-back-button {
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
  }

  .rt-btn.r22-back-button img {
    width: 24px;
    height: 24px;
  }

  .r22-modal {
    min-width: 0;
    width: 100%;
    height: calc(100vh - 60px);
    border-radius: 0;
    padding: 0;
  }

  .r22-modal__header {
    display: none;
  }

  .r22-help-info {
    display: flex;
  }
}
