html {
  font-size: 16px;
}

body {
  background: var(--app-backdrop-color);
  font-size: var(--app-font-size) !important;
  font-family: var(--app-font-family) !important;
  display: flex;
  justify-content: center;
}

h1 {
  font-size: var(--app-heading-font-size);
  font-family: var(--app-font-family) !important;
}

p {
  font-family: var(--app-font-family-light) !important;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.app {
  background: var(--app-bg-color);
  color: var(--app-font-color);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  position: relative;
}

.app .stepper-content {
  width: 100%;
  height: 100%;
  padding: 0;
  margin-bottom: 2rem;
}

.app .app-header {
  width: 100%;
  text-align: left;
  position: relative;
}

.app .app-header img {
  transition: all .3s ease;
}

.app .app-header.tms-bordered {
  border-top: 1.25rem solid var(--tms-primary-color);
}

.app .app-header.bts-bordered {
  border-top: 1.5rem solid var(--bts-primary-color);
}

.app .tms-bordered img,
.app .bts-bordered img {
  width: 5rem;
  height: auto;
  margin-top: -1.25rem
}

/* background handling for app depending on attending event */
.app::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* default background */
.app.app-bg-default::before {
  background-image: var(--bg-app-default-mobile);
}

@media (min-width: 768px) {
  .app.app-bg-default::before {
    background-image: var(--bg-app-default-desktop);
  }
}

/* BTS background */
.app.app-bg-bts::before {
  background-image: var(--bg-app-bts-mobile);
}

@media (min-width: 768px) {
  .app.app-bg-bts::before {
    background-image: var(--bg-app-bts-desktop);
  }
}

/* TMS background */
.app.app-bg-tms::before {
  background-image: var(--bg-app-tms-mobile);
}

@media (min-width: 768px) {
  .app.app-bg-tms::before {
    background-image: var(--bg-app-tms-desktop);
  }
}

.bg-accent {
  background-image: var(--bg-accent-gradient) !important;
  background-size: cover !important;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-accent::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-accent-texture);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.app-header img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.stepper-content.active {
  opacity: 1;
}

#app,
.v-application,
.v-application--wrap,
.v-main,
.v-main__wrap,
.v-stepper,
.v-stepper__items,
.v-stepper__content,
.v-stepper__wrapper {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.v-stepper__wrapper {
  width: 100%;
  height: 100%;
  padding: 0 1.5rem;
}

.v-application--wrap {
  min-height: 100%;
}

/* quiz stepper */
.quiz-stepper-wrapper {
  padding: 1rem 0;
  margin-bottom: 0.5rem;
}

.custom-quiz-stepper {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  align-items: center;
}

.quiz-question {
  font-size: 2rem !important;
  line-height: 1.2;
}

.quiz-image-card span {
  font-size: 1.125rem;
  margin: 0;
  padding-top: .5rem;
  display: block;
}

.stepper-line {
  flex: 1;
  height: 0.375rem;
  border-radius: 0.25rem;
  transition: background-color 0.3s ease;
}

.stepper-line-incomplete {
  background-color: #2c2c2c;
}

.stepper-line-active {
  background-color: var(--tms-primary-color);
}

.stepper-line-complete {
  background-color: var(--tms-primary-color);
}

.stepper-line-bts-active {
  background-color: var(--bts-primary-color);
}

.stepper-line-bts-complete {
  background-color: var(--bts-primary-color);
}

.stepper-line-bts-incomplete {
  background-color: #2c2c2c;
}

/* quiz cards */
.image-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  background-color: white;
  line-height: 1;
}

.image-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.image-card-img {
  width: 100%;
  /* height: 100%; */
  object-fit: cover;
  transition: all 0.2s ease;
}

.image-card.highlight {
  border: 4px solid #000;
  box-shadow: 0 0 0 2px rgba(200, 16, 46, 0);
}

.image-card.highlight.bts {
  border: 4px solid var(--bts-primary-color);
}

.image-card.highlight.tms {
  border: 4px solid var(--tms-primary-color);
}

.persona-style-card {
  transition: all 0.3s ease;
}

.persona-style-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}

.persona-style-card.highlight {
  box-shadow: 0 4px 16px rgba(200, 16, 46, 0.4) !important;
}

.persona-style-card.highlight.bts {
  border-color: var(--bts-primary-color) !important;
  box-shadow: 0 4px 16px rgba(252, 82, 0, 0.4) !important;
}

.persona-style-card.highlight.tms {
  border-color: var(--tms-primary-color) !important;
  box-shadow: 0 4px 16px rgba(224, 38, 18, 0.4) !important;
}

.persona-style-card.disabled {
  opacity: 0.5;
}

.persona-description {
  background: linear-gradient(rgb(255, 255, 255) 0%, rgb(255, 232, 224) 50%, rgb(255, 218, 208) 100%);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: rgba(255, 180, 160, 0.4) 4px 4px 12px;
  z-index: 2;
  display: flex;
  max-width: 410px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* choice list for text-based questions */
.choice-list {
  padding: 0 !important;
}

.choice-list-item {
  background: white;
  min-height: 3rem !important;
  /* font-weight: bold; */
}

.choice-list-item:hover {
  /* background: #f5f5f5 !important;
  border-color: #c8102e !important; */
}

/* .choice-list-item.bts:hover {
  background: #ffe8ec !important;
  border-color: var(--bts-primary-color) !important;
} */

.choice-list-item.choice-selected {
  background: #ffe8ec !important;
  border: 2px solid #c8102e !important;
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.3);
}

.choice-list-item.choice-selected.bts {
  background: #ffe8ec !important;
  border: 2px solid var(--bts-primary-color) !important;
  box-shadow: 0 2px 8px rgba(252, 82, 0, 0.3);
}

.choice-list-item .v-list-item__content {
  padding: 0rem 0;
}

.choice-list-item .v-list-item__title {
  font-size: 1.125rem;
  line-height: 1.4;
  white-space: normal;
}

/* camera feed */
.photo-feed-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.camera-video {
  display: none;
  transform: translate(-50%, -50%) scaleX(-1);
}

.camera-canvas {
  object-fit: cover;
  max-width: 32rem;
  max-height: 32rem;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.camera-swap-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

.capture-btn {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.capture-photo-btn {
  border-radius: 50%;
  width: 5rem;
  height: 5rem;
}

.capture-photo-btn .v-icon {
  color: white !important;
}

.countdown-overlay {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
}

.countdown-number {
  font-size: 4rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.upload-btn {
  padding: 0.5rem 1rem;
  border-radius: 4rem;
  border: .1rem solid;
}

/* heavy vuetify overrides (bcoz vuetify 2 sucks at scaling on larger screens) */

.v-btn:not(.v-btn--round).v-size--large {
  /* height: 2.75rem; */
  min-width: 4.875rem;
  /* padding: 0 1.2rem;
  border: 2px solid; */
  border-radius: .8rem;
  font-size: 24px;
  letter-spacing: 0;
  padding: 16px;
  text-transform: none;
}

.v-label,
.v-input {
  font-size: 1rem;
}

.v-input input {
  max-height: 2rem;
}

.v-text-field input {
  line-height: 1.25rem;
  padding: 1.55rem 0;
}

.v-messages {
  font-size: 1rem;
  line-height: 1.25rem;
  /* min-height: .5rem; */
  min-height: 0rem;
}

.v-messages__message {
  line-height: 1.25rem;
}

.v-text-field--outlined.v-input--dense .v-label {
  top: 1rem;
}

.v-input .v-label {
  height: 1.25rem;
  line-height: 1.25rem;
  letter-spacing: normal;
}

.v-text-field__details {
  min-height: .5rem;
}

.v-text-field--outlined.v-input--dense .v-label--active {
  transform: translateY(-1.4rem) scale(0.75);
}

.v-text-field--outlined,
.v-text-field--solo {
  border-radius: 0.4rem;
}

.v-icon.v-icon {
  font-size: 1.5rem;
}

.v-input--radio-group--column .v-radio:not(:last-child):not(:only-child) {
  margin-bottom: 0.5rem;
}

.v-input--selection-controls__input {
  height: 1.5rem;
  width: 1.5rem;
}

.v-text-field.v-text-field--enclosed .v-text-field__details {
  margin-bottom: 0.5rem;
}

.v-application .py-2 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.v-application .px-2 {
  padding-right: 0.5rem !important;
  padding-left: 0.5rem !important;
}

.v-btn--fab.v-size--x-large {
  height: 6rem;
  width: 6rem;
}

.v-btn--fab.v-size--x-large .v-icon,
.v-btn--icon.v-size--x-large .v-icon {
  height: 2rem;
  font-size: 3.5rem;
  width: 2rem;
}

.theme--light.v-stepper {
  background-color: rgba(255, 255, 255, 0) !important;
}

.theme--light.v-application {
  background-color: rgba(255, 255, 255, 0) !important;
}

.v-application--is-ltr .v-input--selection-controls__input {
  margin: 0 0.5rem 0 0;
}


.v-list-item--link:before {
  background-color: inherit;
}

/* attending card */

.attending-options-container {
  display: flex;
  gap: 0.5rem;
  justify-content: space-evenly;
  padding: 1rem 0;
  /* margin: auto 0; */
}

.attending-option-card {
  flex: 0 0 48%;
  /* force two columns with some gap */
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  justify-content: start;
  align-items: center;
  border-radius: 0.75rem;
  cursor: pointer;
  position: relative;
  max-width: 15rem;
  background-color: white;
  border: 0.00625rem solid #e7e7e7;
  gap: 0.5rem;
  transition: all 0.2s ease-in-out;
}

.attending-option-card p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.2;
  /* font-weight: bold; */
}

.attending-option-card:hover {
  transform: scale(1.025);
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
}

.attending-option-img {
  width: 100%;
  height: auto;
  /* maintain aspect ratio */
  object-fit: contain;
  /* prevent cropping */
  display: block;
  aspect-ratio: 1/1;
  border-radius: 0.75rem;
}

.attending-option-card.highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.8rem;
}

button.primary {
  background: linear-gradient(180deg, #0537d5 0%, #05217a 100%);
  font-weight: bold;
  border-radius: 0.8rem;
  border: none !important;
}

.bg-primary {
  background: #0537d5;
}

.app-footer {
  background-color: black;
  padding: 0.5rem;
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: end;
  z-index: 1;
}

/* .start-screen-image {
        width: 100%;
        height: 40vh; 
        background-image: var(--start-screen-image);
        background-repeat: repeat-x;
        background-size: auto 100%;
        background-position: 0 0;
    }

    .start-screen-image.animate{
        animation: scroll-x 20s linear infinite;
    } */

.start-screen-container .v-stepper__wrapper {
  padding: 0rem 1rem 2rem !important;
}

.start-screen-heading {
  font-size: clamp(1.8rem, 2vw, 2rem);
  line-height: 1.3;
  font-weight: 300;
  align-content: center;
}

.start-screen-tag {
  padding: clamp(.3rem, 2vw, .5rem) 1rem 0.15rem;
  color: white;
  font-size: clamp(2rem, 10vw, 3rem);
  text-transform: uppercase;
  display: inline-block;
}

.start-screen-persona-text {
  font-size: clamp(2.5rem, 10vw, 3rem);
  ;
  margin: 0;
  margin-top: 0.5rem;
}

.screen-container .v-stepper__wrapper {
  padding: 0;
}

.screen-container {
  max-width: 450px;
  width: 100% !important;
}

.survey-screen-container .v-stepper__wrapper {
  padding: 0;
}

.loading-screen-container .v-stepper__wrapper {
  padding: 0;
}

.quiz-screen-container .v-stepper__wrapper {
  padding: 0;
}

/* persona card screen styling */
.persona-card-share-btn {
  transition: all 0.2s ease;
  width: 100%;
}

.persona-card-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* startscreenn anims */
@keyframes scroll-x {
  from {
    background-position-x: 0;
  }

  to {
    background-position-x: -100vw;
  }
}

/* media queries for mobile, tablet, desktop, and kiosk portrait */
/* mobile */
@media (max-width: 575.98px) {}

/* tablet */
@media (min-width: 576px) and (max-width: 767.98px) {}

/* desktop */
@media (min-width: 768px) {

  /* .app{
            max-width: 768px;
        } */
  .start-screen-image {
    /* animation: scroll-x 60s linear infinite; */
    background-repeat: no-repeat;
  }

  .v-main__wrap {
    max-width: 1000px !important;
    width: 100% !important;
    margin: 0 auto;
  }

  .start-screen-btn-container {
    max-width: 500px !important;
  }

  .survey-screen-container {
    max-width: 500px !important;
    width: 100% !important;
    margin: 0 auto;
  }
}

@media (orientation: portrait) and (min-height: 1000px) and (min-width: 900px) and (max-width: 1200px) {
  html {
    font-size: 24px;
    /* for rem values to scale */
  }

  .app {
    max-width: 100% !important;
    padding: min(1.5rem, 2.5vw);
  }

  .app .app-header {
    max-width: 18rem;
  }
}

/* Additional refinement for exact 1080x1920 kiosk screens */
@media (orientation: portrait) and (min-height: 1800px) and (min-width: 1000px) and (max-width: 1100px) {
  html {
    font-size: 32px;
    /* for rem values to scale */
  }

  .app {
    max-width: 100% !important;
  }
}

/* for portrain orientation only */
@media (orientation: portrait) {
  .bg-initial-desktop img {
    height: 100% !important;
    width: auto !important;
  }
}

@media (max-width: 390px) {
  .quiz-image-card span {
    font-size: 0.875rem !important;
  }
}

.bold {

  font-weight: bold !important;
}

.bg-initial-desktop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.start-screen-btn-container {
  width: 100%;
}

.quiz-screen-container {
  width: 100vw !important;
  /* padding: 7rem 1rem 2rem !important; */
}

.bts-bg-color {
  background-color: var(--bts-primary-color) !important;
}

.bts-text-color {
  color: var(--bts-primary-color) !important;
}

.bts-border-color {
  border-color: var(--bts-primary-color) !important;
}

.loading-screen-title {
  font-size: 1.5em;
  width: 100%;
  padding: 0 1.5rem;
  line-height: 1.2;
}

.final-screen-title {
  font-size: 2rem;
  line-height: 1.2;
  max-width: 21rem;
}

.video-container-padded {
  padding: 0 1rem;
}

.hidden-canvas {
  position: absolute;
  left: -9999px;
}

.bts-button-bg {
  background: linear-gradient(180deg, #FF9C58, #FA7317) !important;
}

.tms-bg-color {
  background-color: var(--tms-primary-color) !important;
}

.tms-text-color {
  color: var(--tms-primary-color) !important;
}

.tms-border-color {
  border-color: var(--tms-primary-color) !important;
}

.tms-button-bg {
  background: linear-gradient(180deg, #E02612 0%, #B61E0E 100%) !important;
}

/* ================================
   Avatar Generating Loader
================================ */

:root {
  --avatar-base-size: min(80vw, 260px);
  --avatar-size-ratio: 0.85;
}

.avatar-container {
  position: relative;
  width: var(--avatar-base-size);
  height: var(--avatar-base-size);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

/* Expanding rings */
.avatar-container .ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid #fff;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: ring-expand 3s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}

.avatar-container.tms-ring .ring {
  border-color: var(--tms-primary-color) !important;
}

.avatar-container.bts-ring .ring {
  border-color: var(--bts-primary-color) !important;
}

.avatar-container .ring:nth-child(1) {
  animation-delay: 0s;
}

.avatar-container .ring:nth-child(2) {
  animation-delay: 0.75s;
}

.avatar-container .ring:nth-child(3) {
  animation-delay: 1.5s;
}

.avatar-container .ring:nth-child(4) {
  animation-delay: 2.25s;
}

@keyframes ring-expand {
  0% {
    transform: scale(0.5);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* Avatar core */
.avatar-wrapper {
  position: relative;
  width: calc(100% * var(--avatar-size-ratio));
  height: calc(100% * var(--avatar-size-ratio));
  border-radius: 50%;
  background: #ffffff;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  /* animation: avatar-pulse 2s ease-in-out infinite alternate; */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: blur(3px);
}

/* Pulse glow */
@keyframes avatar-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 177, 138, 0.6), 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  100% {
    box-shadow: 0 0 40px 10px rgba(255, 177, 138, 0.6),
      0 10px 30px rgba(0, 0, 0, 0.1);
  }
}

.avatar-wrapper.tms-ring {
  animation: avatar-pulse-tms 2s ease-in-out infinite alternate !important;
}

.avatar-wrapper.bts-ring {
  animation: avatar-pulse-bts 2s ease-in-out infinite alternate !important;
}

@keyframes avatar-pulse-tms {
  0% {
    box-shadow: 0 0 0 0 rgba(224, 38, 18, 0.6), 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  100% {
    box-shadow: 0 0 40px 10px rgba(224, 38, 18, 0.6),
      0 10px 30px rgba(0, 0, 0, 0.1);
  }
}

@keyframes avatar-pulse-bts {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 126, 64, 0.6), 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  100% {
    box-shadow: 0 0 40px 10px rgba(255, 126, 64, 0.6),
      0 10px 30px rgba(0, 0, 0, 0.1);
  }
}

/* Inner ring */
.inner-ring {
  position: absolute;
  width: calc(100% * var(--avatar-size-ratio));
  height: calc(100% * var(--avatar-size-ratio));
  border-radius: 50%;
  border: 1px solid rgba(255, 177, 138, 0.2);
  z-index: 5;
}

/* fuck you vuetify -- by yen */
/* fuck you vuetify -- by yen */
/* fuck you vuetify -- by yen */

.v-stepper__content {
  padding: 2rem 1rem;
}

.button-yen-primary {
  width: 100% !important;
  text-transform: initial !important;
  font-weight: bold !important;

  font-size: 1.5rem !important;
  padding: 0.75rem 1.5rem 0.6rem !important;
  height: auto !important;
  letter-spacing: 0 !important;
  border-radius: 0.75rem !important;
  line-height: 1 !important;
}

.email-input-custom.v-text-field input {
  font-size: 1.8rem !important;
  max-height: none !important;
  line-height: 1.2 !important;
  padding: 0rem !important;
}

.vj4ts.v-text-field input {
  font-size: 1.8rem !important;
  max-height: none !important;
  line-height: 1.2 !important;
  padding: 2rem 0 0rem !important;
}

.vj4ts.v-text-field label {
  font-size: 1.2rem !important;
  top: 2.5rem !important;
  /*negative spacer*/
  margin-top: -6px;
}

.vj4ts.v-text-field--outlined.v-input--dense .v-label--active {
  transform: translateY(-1.75rem) scale(0.6) !important;
}

.vj4ts .v-input__slot {
  min-height: 2rem !important;
}

.vj4ts.v-input .v-label {
  height: 2rem;
}

.v-application {
  font-family: var(--app-font-family) !important;
}

/* loading popup */
#loading-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--app-bg-color, #ffffff);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

#loading-popup.fade-out {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 8px solid #f3f3f3;
  border-top: 8px solid #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.tms-spinner {
  border-top: 8px solid var(--tms-primary-color) !important;
}

.bts-spinner {
  border-top: 8px solid var(--bts-primary-color) !important;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.5s ease;
}

.fade-enter,
.fade-leave-to {
  opacity: 0;
}

/* styles from main.php */
.centered-modal {
  display: flex;
  align-items: center;
  justify-content: center;
}

.align-top-checkbox>>>.v-input__slot {
  align-items: flex-start !important;
}

.email-input-custom>>>.v-input__control {
  background: transparent !important;
}

.email-input-custom>>>.v-input__slot {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.42) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.email-input-custom>>>.v-text-field__slot input {
  text-align: center !important;
}

/* 3D Sphere Animation Styles for Start Screen */
.start-screen-sphere-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 550px;
  display: flex;
  align-self: center;
  justify-content: center;
}

.sphere-stage {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  perspective: 1000px;
  overflow: hidden;
}

svg#start-screen-connections-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.sphere-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  width: 0;
  height: 0;
}

.persona-badge {
  position: absolute;
  width: clamp(15px, 20vw, 80px);
  height: clamp(15px, 20vw, 80px);
  background-color: #0033a0;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  backface-visibility: hidden;
  user-select: none;
  will-change: transform, opacity, filter;
  z-index: 2;
  overflow: hidden;
}

/* 3D Sphere Animation Styles for Persona Loading Screen */
.persona-loading-sphere-container {
  width: 100%;
  /* max-width: 550px;
  height: 40vh;
  min-height: 250px;
  max-height: 400px; */
  max-height: 30rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#persona-loading-sphere-stage {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  perspective: 1000px;
  overflow: hidden;
}

svg#persona-loading-connections-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

#persona-loading-sphere-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  width: 0;
  height: 0;
}

/* persona screen */

.persona-title p {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  font-weight: 400;
}

.persona-name-card {
  padding: 1rem 2rem;
  border-radius: 8px;
  min-width: 200px;
  animation: persona-name-card 1s ease-in-out;
  transition: all 1s ease-in-out;
}

.persona-name-card h1 {
  font-size: clamp(1.8rem, 2vw, 2rem);
  line-height: clamp(1.8rem, 2vw, 2rem);
  font-weight: bold;
  color: white;
  margin: 0;
  text-transform: uppercase;
}

.persona-description h3 {
  display: flex;
  align-items: center;
  text-align: left;
  font-size: 1.25rem;
  font-weight: bold;
}

.persona-description h3 img {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.5rem;
}

.persona-description p {
  color: #000;
  font-size: 1rem;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  text-align: left;
  margin: 0;
}

.persona-report-section {
  max-width: 450px;
}

.persona-report-section h3 {
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #000;
}

.persona-report-section p {
  font-size: 1rem;
  font-weight: 400;
}

.persona-template-card {
  cursor: pointer;
  border: .4rem solid transparent;
  border-radius: 1rem;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.persona-template-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

.persona-arrow {
  animation: persona-arrow 1s ease-in-out infinite;
}

@keyframes persona-name-card {
  0% {
    transform: translateY(1rem);
    opacity: 0;
    z-index: -1;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
    z-index: 1;
  }
}

@keyframes persona-card {
  0% {
    transform: translateY(5rem) scale(0.9);
    opacity: 0;
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes persona-arrow {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(.2rem);
  }

  100% {
    transform: translateY(0);
  }
}

/* persona card screen */

.persona-card-container {
  max-width: 450px;
  width: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.persona-card-container canvas {
  width: 100%;
  height: auto;
  display: block;
}

.persona-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  margin-bottom: 1rem;
}

/* .persona-actions-row button {
  min-width: unset !important;
  width: 50%;
  padding: 1rem !important;
} */

.persona-actions-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
}

.persona-card-share-btn {
  border-radius: 12px;
  text-transform: none;
  font-weight: 600;
  padding: clamp(.2rem, 2vw, 1.5rem) clamp(.8rem, 2vw, 1rem) !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
}

.persona-btn-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.persona-btn-icon {
  margin-bottom: 0.5rem;
  font-size: 40px !important;
}

.persona-btn-text {
  font-size: 1.125rem;
  letter-spacing: initial;
  white-space: normal;
}

/* video autoplay fallback */
.position-relative {
  position: relative;
}

.video-autoplay-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease-out;
}

.fallback-content {
  text-align: center;
}

.fallback-content p {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.persona-disclaimer-section {
  display: flex;
  max-width: 410px;
  padding: 16px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  border-radius: 12px;
  background: #001444;
  color: white;
}

.persona-disclaimer-icon {
  width: 42px;
  height: 42px;
  aspect-ratio: 1/1;
}

.persona-disclaimer-section p {
  font-size: .9rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0px;
}

.persona-disclaimer-section .subtext {
  font-size: .75rem;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}

.persona-cta-container {
  width: 100%;
  border: 1px solid #c8102e;
  border-radius: 16px;
  padding: 5px;
  margin-bottom: 1.5rem;
}

/* check if has attribute disabled */
.persona-cta-container[disabled] {
  opacity: 0.5 !important;
  pointer-events: none !important;
  filter: grayscale(100%);
}

.persona-cta-btn {
  color: white !important;
  text-transform: none;
  font-weight: 700;
  font-size: 2rem !important;
  letter-spacing: initial;
  padding: 1.2rem 2rem !important;
  height: auto !important;
  border-radius: 16px;
  line-height: 1.3;

}

.persona-video {
  width: 100%;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  /* border-radius: 12px; */
}

/* modal dialog */

.modal-overlay-content {
  background-color: rgba(0, 0, 0, 0.9);
  width: 100%;
  height: 100vh;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.modal-hero-section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 450px;
  margin-bottom: -3rem;
  animation: persona-card .3s ease-out;
}

.modal-half-circle-bg {
  position: absolute;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 2/1;
  background: linear-gradient(to bottom, #f0877d 0%, #f5b2aa 50%);
  border-radius: 450px 450px 0 0;
  bottom: -16px;
  z-index: 0;
}

.modal-media-wrapper {
  max-width: 400px;
  width: 80%;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.modal-media-wrapper img,
.modal-media-wrapper video {
  width: 75%;
  height: auto;
  display: block;
}

/* Specific adjustment for the first modal image */
.modal-media-wrapper .initial-modal-img {
  width: 75%;
}

.modal-content-card {
  background-color: #ffffff;
  max-width: 450px;
  width: 90%;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  margin-top: 0;
  animation: persona-card .3s ease-out;
}

/* Success modals have slightly different border radius */
.modal-content-card.success-card {
  border-radius: 24px;
}

.modal-content-card.success-card p {
  line-height: 1.5;
  font-size: .8rem;
  margin-top: 1.5rem;
  font-weight: 300;
  text-align: center;
}

.modal-content-card.success-card .event-link {
  display: block;
  margin: .25rem 0;
}

.modal-card-title {
  text-align: center;
  width: 100%;
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
  padding: 0;
  justify-content: center;
  word-break: break-word !important;
}

.modal-card-text {
  text-align: center;
  padding: 0;
}

.modal-card-text.initial-text {
  font-size: 0.8em;
  margin-bottom: 1rem;
}

.modal-card-text.success-title {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  /* or 1.5rem depending on modal */
}

.modal-card-text.success-desc {
  font-size: .9rem;
  margin-bottom: 1.5rem;
  color: #666;
}

.modal-dismiss-btn {
  background-color: transparent !important;
  border: 2px solid #ffffff;
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 3;
}

.modal-success-icon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.modal-success-icon {
  width: 8rem;
  height: 8rem;
}

/* Shared Button Styles in Modals */
.modal-primary-btn {
  text-transform: none;
  font-weight: 600;
  padding: 1rem !important;
  height: auto !important;
  font-size: 1.5rem !important;
  letter-spacing: initial;
}

.modal-success-btn {
  color: white !important;
  text-transform: none;
  font-weight: 600;
  padding: 1rem 2rem !important;
  height: auto !important;
  /* font-size: clamp(1rem, 2vw, 1.2rem) !important; */
  border-radius: 1rem !important;
  flex-grow: 1;
}

/* Specific overrides */
.initial-modal-btn {
  /* background-color: #c8102e !important; */
  color: white !important;
  text-transform: none;
  font-weight: 700;
  padding: 1rem 2rem !important;
  height: auto !important;
  border-radius: 16px;
  line-height: 1.3;
}

.initial-modal-link {
  text-align: center;
  text-decoration: underline;
  color: #000000 !important;
  font-size: .8em;
  font-weight: 200;
  cursor: pointer;
  display: block;
  padding: 0.5rem 0;
}

.email-consent-checkbox {
  align-items: flex-start !important;
}

.email-consent-checkbox .v-input__slot {
  align-items: start;
}

.email-input-custom .v-input__slot,
.email-consent-checkbox .v-input__slot {
  margin-bottom: 2px !important;
}

.email-input-custom .v-messages__message,
.email-consent-checkbox .v-messages__message {
  font-size: 0.8rem;
}

.email-consent-label {
  line-height: 1.2;
  font-size: 12px;
}

.linkedin-btn {
  background: linear-gradient(180deg, #0077B5 0%, #005784 100%) !important;
  color: white !important;
  border-radius: .8rem;
  font-size: 1.5rem !important;
}

.linkedin-share-output {
  width: 100%;
  max-width: 21rem;
  height: auto;
  display: flex;
  justify-content: center;
}

.share-textarea textarea {
  line-height: 1.2;
}

/* progress bar */
.progress-wrapper {
  width: 100%;
  max-width: 410px;
  margin: 0rem auto 1.5rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #888888;
}

.status-text {
  display: inline-block;
}

.percentage {
  font-weight: bold;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  width: 0%;
  transition: width 0.1s linear;
}

.tms-bg {
  background: linear-gradient(90deg, var(--tms-primary-color), #fff);
  box-shadow: 0 0 10px rgba(224, 38, 18, 0.4);
}

.bts-bg {
  background: linear-gradient(90deg, var(--bts-primary-color), #fff);
  box-shadow: 0 0 10px rgba(252, 82, 0, 0.4);
}

.tms-text-color {
  color: var(--tms-primary-color);
}

.bts-text-color {
  color: var(--bts-primary-color);
}