/* Box shells */
.box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--box-bg);
  border: 2px solid var(--box-border);
  border-radius: 12px;
  box-shadow: 0 0 10px #0003;
  transition: transform 0.9s ease, background 0.3s ease, border-color 0.3s ease;
}

/* Box content */
.box-inner {
  position: absolute;
  inset: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 10px;
  box-sizing: border-box;
}

/* Result box layout */
.box--result .box-inner {
  justify-content: flex-start;
  padding: 12px 16px;
}

/* Result heading */
.result-heading {
  position: relative;
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  text-align: center;
  color: var(--heading-color);
  width: 100%;
}

.result-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.5s ease;
}

.result-heading.underline-animate::after {
  transform: scaleX(1);
  transition-delay: 0.1s;
}

/* Logo image */
.box-image {
  width: 35%;
  height: auto;
  margin-bottom: -20px;
}

/* Form wrapper */
.content {
  text-align: center;
  width: 100%;
}

.box--main .box-inner{
  overflow: hidden;
  justify-content: center;
  inset: 18px;
  padding: 0 12px;
}

.box--main .box-inner > *{
  max-width: 100%;
  flex-shrink: 1;
}

@media (max-height: 520px){
  .box--main .box-inner{
    overflow-y: auto;
	overflow-x: hidden;
  }
}
