/* ===================================
   Be A Bok - Main Styles
   =================================== */

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  outline: none;
  user-select: none;
}

/* Scrollbar Styles */
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #f7f7f7;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background-color: #f7f7f7;
}

::-webkit-scrollbar-thumb {
  background-color: crimson;
  border: 2px solid crimson;
  max-width: 100px;
}

::-webkit-scrollbar-track-piece:end {
  margin-right: 30px;
}

::-webkit-scrollbar-track-piece:start {
  margin-left: 30px;
}

/* Font Faces */
@font-face {
  font-family: 'TCCC-UnityHeadline Regular';
  src: url('https://db.onlinewebfonts.com/t/2def107af3e4eeb88b5ca50c3320ae0a.eot');
  src: url('https://db.onlinewebfonts.com/t/2def107af3e4eeb88b5ca50c3320ae0a.eot?#iefix')
      format('embedded-opentype'),
    url('https://db.onlinewebfonts.com/t/2def107af3e4eeb88b5ca50c3320ae0a.woff2')
      format('woff2'),
    url('https://db.onlinewebfonts.com/t/2def107af3e4eeb88b5ca50c3320ae0a.woff')
      format('woff'),
    url('https://db.onlinewebfonts.com/t/2def107af3e4eeb88b5ca50c3320ae0a.ttf')
      format('truetype'),
    url('https://db.onlinewebfonts.com/t/2def107af3e4eeb88b5ca50c3320ae0a.svg#TCCC-UnityHeadline Regular')
      format('svg');
}

@font-face {
  font-family: 'Slam Dunk';
  src: local('Slam Dunk'), local('SlamDunkRegular'),
    url('../assets/fonts/SlamDunkRegular.woff2') format('woff2'),
    url('../assets/fonts/SlamDunkRegular.woff') format('woff'),
    url('../assets/fonts/SlamDunkRegular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jersey M54';
  src: local('Jersey M54'),
    url('../assets/fonts/Jersey_M54.ttf') format('truetype');
}

/* Fallback font stack for better compatibility */
.slam-dunk-text {
  font-family: 'Slam Dunk', 'Impact', 'Arial Black', 'Helvetica Neue', Arial,
    sans-serif;
}

/* Body and Base Elements */
body {
  font-family: 'TCCC-UnityHeadline Regular', sans-serif;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  background: #f40000;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

input:invalid {
  border-color: #f40000;
}

/* Font Loader */
#font-loader {
  font-family: 'Slam Dunk', sans-serif;
  display: none;
}

/* Three.js Canvas */
#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  will-change: transform;
  backface-visibility: hidden;
}

/* Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: #f40000;
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 100px;
}

#screen-1 .beabok-btn {
  bottom: 10px;
  position: absolute;
  transform: translate(-50%, -50%);
}

/* Buttons */
.beabok-btn {
  background: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  min-width: 132px;
  padding: 12px;
  border-radius: 8px;
  border: none;
  box-shadow: none;
  outline: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.beabok-btn:hover {
  background: #333;
}

.beabok-btn:active {
  background: #555;
}

/* Screen Base Styles */
.screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  justify-content: center;
  background: #7a7a7a;
  z-index: 100;
  padding: 50px 15px;
  text-align: center;
  color: #fff;
  will-change: transform;
  backface-visibility: hidden;
}

.screen.active {
  display: flex;
}

/* Screen 1 - Welcome */
#screen-1 {
  background: #f40000 url(../assets/img/stadium.png) no-repeat center top /
    cover;
  justify-content: space-between;
  align-items: center;
}

#screen-1 .bottom {
  position: absolute;
  width: 100%;
  height: 100%;
}

#screen-1 .background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Adjust 0.3 → 0.4 for more darkness */
  z-index: -1;
  pointer-events: none;
}

.members {
  position: absolute;
  bottom: 90px;
  width: 130%;
  z-index: -1;
  left: -15%;
}

#screen-1 svg {
  position: absolute;
  bottom: 0;
  height: 160px;
  width: 100%;
  left: 0;
}

#screen-1 > div:first-of-type {
  display: flex;
  flex-direction: column;
  gap: 35px;
  justify-content: start;
  align-items: center;
}

#screen-1 > div:first-of-type img:first-of-type {
  max-height: 50px;
}

.main-logo {
  width: 90%;
  margin-top: 20px;
  margin-bottom: 20px;
}

.main-partner {
  margin-top: 20px;
  width: 25%;
}

#screen-1 h1 {
  font-weight: 700;
  font-size: 24px;
  text-align: center;
  font-family: 'TCCC-UnityHeadline Regular';
  font-weight: 700;
  margin: 0;
  padding: 0;
  line-height: 1.3;
}

/* Screen 2 - Make Jersey */
#screen-2 {
  background: #f40000 url(../assets/img/screen-2-bg.webp) no-repeat top / cover;
  justify-content: space-between;
  align-items: center;
}

#screen-2 > div:first-of-type {
  display: flex;
  flex-direction: column;
  gap: 35px;
  justify-content: start;
  align-items: center;
}

#screen-2 > div:first-of-type img:last-of-type {
  max-height: 350px;
}

#screen-2 h2 {
  font-weight: 700;
  font-size: 24px;
  line-height: 28px;
  text-align: center;
  text-transform: capitalize;
  margin: 0 auto;
  max-width: 210px;
}

#screen-2 > div:last-of-type {
  display: flex;
  flex-direction: column;
  gap: 25px;
  justify-content: start;
  align-items: center;
  position: absolute;
  bottom: 20px;
}

#screen-2 > div:last-of-type img {
  max-height: 27px;
  margin-bottom: 15px;
}

#screen-2 > div:last-of-type p {
  max-width: 280px;
  margin: 0 auto;
  font-weight: 400;
  font-size: 13px;
  line-height: 150%;
}

/* Screen 3 - Share Info */
#screen-3 {
  background: #f40000 url(../assets/img/screen-3-bg.webp) no-repeat top / cover;
  justify-content: space-between;
  align-items: center;
}

#screen-3 > div:first-of-type {
  display: flex;
  flex-direction: column;
  gap: 35px;
  justify-content: start;
  align-items: center;
}

#screen-3 h2 {
  font-weight: 700;
  font-size: 24px;
  line-height: 28px;
  text-align: center;
  text-transform: capitalize;
  margin: 0 auto;
  max-width: 230px;
}

#screen-3 > div:last-of-type {
  display: flex;
  flex-direction: column;
  gap: 25px;
  justify-content: start;
  align-items: center;
}

#screen-3 > div:last-of-type img {
  max-height: 27px;
  margin-bottom: 15px;
}

#screen-3 > div:last-of-type p {
  max-width: 325px;
  margin: 0 auto;
  font-weight: 400;
  font-size: 13px;
  line-height: 150%;
}

/* Screen 4 - Allow Motion */
#screen-4 {
  background: #f40000 url(../assets/img/screen-4-bg.webp) no-repeat top / cover;
  justify-content: space-between;
  align-items: center;
}

#screen-4 > div {
  display: flex;
  flex-direction: column;
  gap: 50px;
  justify-content: start;
  align-items: center;
}

#screen-4 > div > img:nth-child(1) {
  max-width: 100px;
}

#screen-4 > div > img:nth-child(2) {
  max-width: 270px;
}

#screen-4 > div > img:nth-child(3) {
  max-width: 125px;
}

/* Screen 5 - Instructions */
#screen-5 {
  background: rgba(17, 17, 17, 0.8);
  justify-content: space-between;
  align-items: center;
}

#screen-5 > div:first-of-type {
  display: flex;
  flex-direction: column;
  gap: 35px;
  justify-content: start;
  align-items: center;
}

#screen-5 h2 {
  font-weight: 700;
  font-size: 24px;
  line-height: 28px;
  text-align: center;
  text-transform: capitalize;
  margin: 0 auto;
  max-width: 230px;
}

#screen-5 h2 span {
  color: #ffc425;
}

#screen-5 > div:first-of-type img {
  max-height: 250px;
}

#screen-5 > div:last-of-type {
  display: flex;
  gap: 25px;
  justify-content: start;
  align-items: center;
}

#screen-5 > div:last-of-type img {
  max-height: 16px;
}

#screen-5 > div:last-of-type img:last-of-type {
  transform: scaleX(-1);
}

#screen-5 > div:last-of-type p {
  flex: 1;
  max-width: 250px;
  margin: 0 auto;
  font-weight: 400;
  font-size: 12px;
  line-height: 150%;
}
#screen-5 .kit {
  margin-top: 5%;
}
#screen-5 .action {
  margin-top: -13%;
}
#screen-5 .formWrapper {
  overflow-y: scroll;
  height: 100%;
  width: 100%;
}
#screen-5 .formWrapper::-webkit-scrollbar {
  display: none;
}
/* Screen 6 - Details Form */
#screen-6 {
  background: rgba(17, 17, 17, 0.8);
  justify-content: center;
  align-items: center;
  padding: 15px;
}

#beabok-details-form {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  width: 100%;
  max-width: 330px;
  margin: 0 auto;
  color: #000000;
  gap: 16px;
}

#beabok-details-form-close {
  background: transparent;
  border: none;
  box-shadow: none;
  outline: none;
  font-size: 24px;
  cursor: pointer;
  align-self: flex-end;
}

#beabok-details-form h2 {
  font-weight: 700;
  font-size: 16px;
  line-height: 120%;
  text-align: center;
  margin: 0;
  width: 100%;
}

.beabok-details-form-row {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  gap: 4px;
  text-align: left;
  width: 100%;
}

.beabok-details-form-row label {
  color: #111111;
  font-weight: 600;
  font-size: 14px;
  line-height: 120%;
}

.beabok-details-form-row input[type='text'] {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 400;
  font-size: 14px;
  line-height: 120%;
  height: 36px;
  box-sizing: border-box;
  width: 100%;
}

.beabok-details-form-row input[type='text']::placeholder {
  color: #8c8c8c;
}
.form-select {
  position: relative;
  /* appearance: none; */
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 400;
  font-size: 14px;
  line-height: 120%;
  height: 36px;
  box-sizing: border-box;
  width: 100%;
}
.form-select::after {
  content: '';
  position: absolute;
  left: 15px;
  background: url('../assets/img/arrow-down.png') no-repeat center;
  background-size: 15px;
  width: 25px;
  height: 25px;
  z-index: 44;
}
.form-select:focus {
  box-shadow: none;
  border-color: var(--primary);
  background-color: var(--white);
}

.form-select::placeholder {
  color: #8c8c8c;
  opacity: 0.9;
  font-weight: 500;
}

.form-select:disabled {
  background-color: var(--disabled);
  color: var(--placeholder);
}

.beabok-details-form-checkbox {
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  font-size: 12px;
  user-select: none;
  font-weight: 700;
}

.beabok-details-form-checkbox input[type='checkbox'] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.beabok-details-form-checkbox span {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  width: 20px;
  background-color: white;
  border: 2px solid black;
  border-radius: 20px;
  box-sizing: border-box;
}

.beabok-details-form-checkbox input[type='checkbox']:checked + span {
  background-color: black;
  border-color: black;
}

.beabok-details-form-checkbox input[type='checkbox']:checked + span::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.beabok-details-form-checkbox a {
  color: #000000;
}

#beabok-details-form-submit {
  flex: 1;
  padding: 12px;
  line-height: 100%;
  font-size: 14px;
  border-radius: 8px;
  box-shadow: none;
  outline: none;
  font-weight: 600;
  cursor: pointer;
  background: #000000;
  color: #ffffff;
  min-width: 110px;
  display: inline-block;
  margin: 0 auto;
  border: none;
  width: 100%;
}

/* Screen 7 & 8 - Forms */
#screen-7,
#screen-8 {
  background: rgba(17, 17, 17, 0.8);
  justify-content: end;
  align-items: center;
}

.beabok-form {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: start;
  align-items: center;
  gap: 24px;
  background: #005f32;
  padding: 24px;
  border-radius: 16px;
  width: 100%;
  max-width: 330px;
}

.beabok-form h2 {
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  margin: 0;
}

.beabok-form-input {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  text-align: left;
  gap: 4px;
  width: 100%;
}

.beabok-form-input label {
  color: #ffc425;
  font-weight: 600;
  font-size: 14px;
  line-height: 150%;
}

.beabok-form-input input {
  padding: 8px 12px;
  border: 1px solid #f0f0f0;
  outline: none;
  box-shadow: none;
  font-size: 14px;
  color: #111111;
  width: 100%;
  box-sizing: border-box;
  border-radius: 4px;
}

.beabok-form-input input::placeholder {
  color: #8c8c8c;
}

.beabok-form-input input:focus {
  border: 1px solid #ffc425;
  outline: none;
  box-shadow: none;
}

.beabok-form-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 8px;
}

.beabok-form-buttons button {
  flex: 1;
  padding: 12px;
  line-height: 100%;
  font-size: 14px;
  border-radius: 8px;
  box-shadow: none;
  outline: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.beabok-form-buttons button:first-of-type {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}

.beabok-form-buttons button:first-of-type:hover {
  background: rgba(255, 255, 255, 0.1);
}

.beabok-form-buttons button:last-of-type {
  background: #ffc425;
  border: 1px solid #ffc425;
  color: #000;
}

.beabok-form-buttons button:last-of-type:hover {
  background: #ffd700;
}

.stripes-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05),
    /* Light Red */ rgba(255, 255, 255, 0.05) 20px,
    rgb(200, 200, 200, 0.15) 20px,
    rgb(200, 200, 200, 0.15) 99px
  );
  z-index: -1;
}

.some-page-wrapper {
  margin: 15px;
}

.row {
  display: flex;
  gap: 24px;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
}

.column {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  flex: 1;
}

/* Screen 9 styling */
#screen-9 {
  background: linear-gradient(180deg, #f42705 0%, #da2204 50%, #791809 100%);
  flex-direction: column;
  justify-content: start;
  align-items: center;
  gap: 10px;
  overflow-y: auto;
  min-height: 100vh;
  padding: 10px;
}

/* Top section */
#screen-9 > div:first-of-type {
  width: 100%;
  /* flex: 1; */
  display: flex;
  /* justify-content: center; */
  align-items: start;
  /* height: 100%; */
  margin-bottom: 30px;
}
.overlay-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

#screen-10 {
  background: #f40000 url(../assets/img/screen-10-bg.png) no-repeat;
  background-size: cover;
  background-position: bottom right;
  justify-content: space-between;
  align-items: center;
}
#screen-10 > div:first-of-type {
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: space-between;
  align-items: center;
  min-height: 45svh;
}
#screen-10 > div:first-of-type img:first-of-type {
  max-height: 50px;
}
#screen-10 h1 {
  font-weight: 800;
  font-size: 28px;
  line-height: 100%;
  text-align: center;
  max-width: 280px;
  margin: 0 auto;
}
#screen-10 p {
  font-weight: 400;
  font-size: 12px;
  line-height: 120%;
  text-align: center;
  max-width: 280px;
  margin: 0 auto;
  padding-top: 30px;
}

/* Screenshot container - MOBILE OPTIMIZED */
#beabok-screenshot-frame {
  position: relative;
  width: calc(100vw - 20px);
  /* max-width: 500px; */
  aspect-ratio: 3/4; /* Maintain consistent aspect ratio */
  margin: 0 auto;
  border-radius: 16px;
  border: 2px solid #000;
  overflow: hidden;
  display: block; /* Changed from flex for better mobile compatibility */
  /* Force hardware acceleration on mobile */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

/* Screenshot image - MOBILE OPTIMIZED */
#beabok-screenshot-frame img:first-child {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  z-index: 1;
  /* Mobile optimization */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* SVG Overlay - MOBILE & IPHONE OPTIMIZED */
#beabok-screenshot-frame svg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 25%; /* Percentage based for responsive design */
  min-height: 80px;
  max-height: 180px;
  z-index: 2;
  pointer-events: none;
  border-radius: 0 0 14px 14px;
  /* Critical for mobile SVG rendering */
  display: block;
  overflow: visible;
  /* Force hardware acceleration */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

/* Alternative: If you want the SVG to cover more of the image */
#beabok-screenshot-frame svg.full-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 2;
  pointer-events: none;
  border-radius: 14px;
}

/* Buttons section */
#screen-9 > div:last-of-type {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  flex-direction: column;
  width: 100%;
  gap: 12px;
  padding-bottom: 20px;
}

/* Button styles */
#screen-9 > div:last-of-type button {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  min-width: 140px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#screen-9-download {
  background: transparent;
  border: 1px solid #fff !important;
  color: #fff;
}

#screen-9-download:hover {
  background: rgba(255, 255, 255, 0.1);
}

#screen-9-share {
  background: #000;
  border: 1px solid #000 !important;
  color: #fff;
}

#screen-9-share:hover {
  background: #333;
}

#screen-9-reset {
  background: #005f32;
  border: 1px solid #005f32 !important;
  color: #fff;
}

#screen-9-reset:hover {
  background: #007a42;
}

/* HTML Logo overlays - Much better approach */
.overlay-logo {
  position: absolute;
  z-index: 3; /* Above the SVG */
  height: 80px; /* Increased size for better visibility */
  width: auto;
  max-width: 45%;
  pointer-events: none;
  border-radius: 4px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  /* Add some styling for better visibility */
  padding: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#logo-top {
  position: absolute;
  width: 65%;
  z-index: 111;
  left: 50%;
  transform: translate(-50%, 0px);
  top: 40px;
  max-width: 250px;
}

/* Position logos within the SVG overlay area */
.logo-left {
  bottom: 20px; /* Position within the overlay area */
  left: 10px;
  max-width: 50%;
}

.logo-right {
  bottom: 20px; /* Position within the overlay area */
  right: 10px;
}
/* Mobile and iPhone specific optimizations */
@media screen and (max-width: 768px) {
  #screen-9 {
    padding: 15px;
    min-height: 100vh;
    min-height: -webkit-fill-available; /* iOS Safari fix */
    overflow-y: auto;
  }
  #beabok-screenshot-frame {
    width: calc(100vw - 20px);
    max-width: 450px;
    /* iOS Safari viewport fix */
    /* height: calc((100vw - 20px) * 4/3); */
    height: 100%;
    /* max-height: calc(450px * 4/3); */
  }

  #beabok-screenshot-frame svg {
    height: 30%;
    min-height: 60px;
    max-height: 180px;
  }

  /* Smaller logos on mobile */
  .overlay-logo {
    height: 50px;
    max-width: 45%;
    padding: 2px;
  }

  .logo-left {
    height: 60px;
    max-width: 55% !important;
  }
}

/* iPhone specific fixes */
@media screen and (max-width: 430px) {
  #beabok-screenshot-frame {
    width: calc(100vw - 20px);
    max-width: 100%;
    margin: 0 auto;
    min-height: 75vh;
  }
  #beabok-screenshot-frame svg {
    /* Ensure SVG renders properly on iPhone */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

/* iPhone X and newer with notch */
@media screen and (max-width: 430px) and (min-height: 800px) {
  #screen-9 {
    padding-top: calc(env(safe-area-inset-top, 0px) + 10px);
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Landscape mobile fix */
@media screen and (max-height: 500px) and (orientation: landscape) {
  #screen-9 {
    padding: 10px;
  }

  #beabok-screenshot-frame {
    max-width: 320px;
    /* height: calc(320px * 4/3); */
    height: 100%;
  }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  button {
    border: 2px solid #fff;
  }
}

/* Dark Mode Support (optional if needed) */
@media (prefers-color-scheme: dark) {
  body {
    background: #000;
    color: #fff;
  }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .screen {
    padding: 20px 10px;
  }

  #screen-1 h1 {
    font-size: 16px;
  }

  #screen-2 h2,
  #screen-3 h2,
  #screen-5 h2 {
    font-size: 20px;
  }

  #screen-2 > div:first-of-type img:last-of-type,
  #screen-5 > div:first-of-type img {
    max-height: 300px;
  }

  #beabok-details-form {
    max-width: 300px;
    padding: 20px;
  }

  .beabok-form {
    max-width: 300px;
    padding: 20px;
  }

  #screen-9 > div:first-of-type {
    width: 100%;
    /* flex: 1; */
    display: flex;
    /* justify-content: center; */
    align-items: start;
    /* height: 100%; */
    margin-bottom: 15px;
  }

  #screen-9 > div:last-of-type button {
    width: 100%;
    /* max-width: 280px; */
  }
}

@media (max-width: 480px) {
  .screen {
    padding: 15px 8px;
  }

  #screen-1 h1 {
    font-size: 20px;
  }

  #screen-2 h2,
  #screen-3 h2,
  #screen-5 h2 {
    font-size: 18px;
  }

  #beabok-details-form {
    max-width: 280px;
    padding: 16px;
  }

  .beabok-form {
    max-width: 280px;
    padding: 16px;
  }

  #loader {
    gap: 50px;
  }

  #loader img {
    max-width: 80%;
  }

  .some-page-wrapper {
    margin: 0;
  }
}

@media screen and (max-width: 360px) {
  #screen-9 .some-page-wrapper {
    margin-bottom: 40px;
  }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .beabok-btn {
    border: 2px solid #fff;
  }

  .beabok-details-form-row input[type='text'] {
    border: 2px solid #000;
  }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
  /* Keep current styling as it's already dark-themed */
}
