/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  background-image: linear-gradient(to bottom right, #004250, #004250);
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

body {
  font-family: "Quicksand";
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

caption,
th,
td {
  text-align: left;
  font-weight: normal;
  vertical-align: middle;
}

q,
blockquote {
  quotes: none;
}
q:before,
q:after,
blockquote:before,
blockquote:after {
  content: "";
  content: none;
}

a img {
  border: none;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
  display: block;
}

:root {
  --primary-color-main: #004250;
  --primary-color-special: 0, 66, 80;
  --secondary-color-main: #cde65b;
  --primary55-color-main: #00425055;
  --red-color-main: var(--secondary-color-main);
  --white-color-text: #fff;
  --grey-background: #dee7ee;
  --main-brand-color: var(--primary-color-main);
  --white-color: var(--white-color-text);
}

#spinner-container {
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  width: 100%;
  place-items: center;
  overflow: hidden;
}
.turntable-container {
  background: var(--turntable-bg-image, transparent);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  width: 100%;
  max-width: 600px;
  height: 100%;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  margin-top: 12px;
  padding: 20px;
  padding-bottom: 40px;
}

.spinner-title {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  min-height: 140px;
}

.spinner-button-wrapper {
  max-width: 280px;
  margin: 0 auto;
  width: max-content;
}

.pointer {
  cursor: pointer;
}

.title-success {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: #014a81;
}
.title-content {
  margin-top: 20px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
}
.result {
  color: red;
}

.header {
  min-height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-block: 20px;
  /* Bottom shadow */
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

/* Highlighted text */
.text-popup-highlight {
  color: var(--secondary-color-main);
  font-weight: 700;
  font-size: 28px;
  text-shadow:
    0 0 5px var(--primary-color-main),
    0 0 10px var(--primary-color-main),
    0 0 20px var(--primary-color-main),
    0 0 40px var(--primary-color-main);
}

/* Vòng Xoay Popup Result */
vong-xoay-popup-result-header {
  grid-row: 1 / 2;
}

.vong-xoay-popup-result {
  width: 100% !important;
  position: relative;
  margin: 10% auto;
  border-radius: 16px;
  max-width: min(600px, 90%);
  color: #fff;
  font-size: var(--popup-result-fs, 20px);
  background: url("/wp-content/themes/jwhanquoc/assets/images/image-vong-xoay-popup/background-result-vong-xoay-nha-khoa.webp")
    no-repeat top center;
  background-size: 100% 100%;
  border-color: var(--primary-color-main);
  max-height: 680px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  justify-items: center;
  align-items: center;
  justify-content: space-around;
  grid-template-rows: repeat(2, minmax(300px, 1fr));
}

.vong-xoay-popup-result .vong-xoay-popup-result-content {
  max-width: 500px;
  width: calc(100% - 40px);
  margin: 0 auto;
  height: max-content;
  /* margin-top: var(
    --pop-up-content-mt,
    clamp(11.72rem, 15.57vi + 7.53rem, 19.99rem)
  ); */
  border-radius: 14px;
  /* Glassmorphism */
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(80px);
  backdrop-filter: blur(80px);
  grid-row: 2 / -1;
  translate: 0 -14%;
  font-family: Arial, Helvetica, sans-serif;
}

.vong-xoay-popup-result-overlay {
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}

.vong-xoay-popup-result-overlay.show {
  display: flex;
}

.vong-xoay-popup-result-overlay.fade {
  animation: fadeIn 0.5s ease forwards;
}

.vong-xoay-form-content :is(input, select):not([type="checkbox"]) {
  min-height: 2.5rem;
  /* height: 100%; */
  color: var(--primary-color-main);
  font-weight: 600;
  border: 1px solid var(--primary-color-main);
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 10px;
  width: 100%;
  /* Touch device overrides */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* Prevent iOS zoom on focus */
  font-size: var(--popup-result-fs, 16px);
  /* Force height on touch devices */
  line-height: 1.5;
  touch-action: manipulation;
}

.vong-xoay-form-content :is(input, select):not([type="checkbox"])::placeholder {
  font-size: var(--popup-result-fs, 16px);
}

.vong-xoay-form-content select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23014A81' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 36px;
  /* Ensure consistent height on iOS */
  max-height: 6rem;
  box-sizing: border-box;
}

.vong-xoay-form-content option {
  font-size: 1.6rem;
  color: var(--bvjw-color-main-one);
  min-height: 6rem;
}

.vong-xoay-form-content :is(input, select):not([type="checkbox"])::placeholder {
  color: var(--primary-color-main-88);
  font-weight: 500;
}

.vong-xoay-form-submit {
  text-align: center;
  max-width: var(--submit-btn-max-w, 180px);
  margin-inline: auto;
  margin-top: 1rem;
}

.btn-close.btn-close-result-modal {
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-result-submit {
  cursor: pointer;
  transition: transform 0.3s ease;
  animation: beat 2s ease-in-out infinite alternate;
}

.register-btn {
  display: inline-block;
  padding: 8px 30px;
  margin-block: 8px;
  background-color: var(--register-btn-bg, #ff4f75);
  color: var(--register-btn-color, white);
  font-size: 24px;
  font-weight: bold;
  border: 2px solid var(--register-btn-border, transparent);
  border-radius: var(--register-btn-radius, 9999px);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--register-btn-shadow, 0 4px 6px rgba(0, 0, 0, 0.1));
  transition:
    background-color 0.3s,
    transform 0.2s;
  text-transform: uppercase;
}

.btn-close-result-modal,
.success-modal-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 45px;
  height: 45px;
  background: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  color: #004250;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 10;
}

.btn-close-result-modal {
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  font-size: 28px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: fixed;
}

.footer_section {
  padding-block: 40px;
  color: #fff;
  position: relative;
  margin-inline: auto;
  margin-block: 0;
  font-family: Arial, Helvetica, sans-serif;
}

/* Common Section Success Styles */
.section_success {
  display: block;
  margin: 0;
  padding: 0;
  position: relative;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: auto;
  padding-top: 41%;
}

/* Mobile Section Success Styles */
.section_success_mb {
  display: none;
}

/* Container Styles */
.section-success-register-ldp-mb_wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: absolute;
  right: 5%;
  top: 0;
}

.section-success-register-ldp-mb_wrapper {
  right: 0;
}

.section-success-register-ldp-mb_wrapper {
  max-width: 45vw;
  min-width: 35vw;
}

/* Image Styles */
.container_success_image img,
.container_success_image-mb a img {
  width: 100%;
  object-fit: cover;
  animation: slideInRight 1s ease forwards;
  animation-delay: 1s;
}

.section-success-register-ldp-single-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.container_success_image_single {
  max-width: 400px;
  width: 100%;
}
.container_success_image_single a img {
  width: 100%;
  object-fit: cover;
  animation: slideInRight 1s ease forwards;
  animation-delay: 1s;
}

/* Animation Keyframes */
@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Styles */
@media (max-width: 490px) {
  .section_success {
    display: none;
  }

  .section_success_mb,
  .section-success-register-ldp-mb {
    display: block;
    height: 65vh;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
  }

  .container_success_image-mb {
    z-index: 99;
    width: 330px;
  }

  .container_success_ldp {
    max-width: 80vw;
    min-width: 60vw;
    right: 10%;
    top: 12%;
  }

  .container_success_ldp {
    top: 6%;
  }

  .section-success-register-ldp-mb_wrapper {
    left: 50%;
    transform: translateX(-50%);
    top: 1rem;
  }
  .container_success_image-mb {
    z-index: 99;
    width: 390px;
  }
}

@media (max-width: 440px) {
  .section-success-register-ldp-mb_wrapper {
    top: 5rem;
  }
}

.main-background {
  display: block;
}
.main-background-mb {
  display: none;
}

body > main {
  flex: 1 1 auto;
}

.section-success-register-ldp {
  margin: auto;
  max-width: 1920px;
  width: 100%;
}
.section-success-register-ldp_wrapper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(350px, 1fr));
}
.success-register-ldp-block-left {
  grid-column: span 2;
}

.success-register-ldp-block-right {
  box-sizing: border-box;
  position: absolute;
  top: 10%;
  right: 50px;
  max-width: 650px;
  width: 100%;
  padding: 20px;
  grid-column: 2 / -1;
}

.text-image-left {
  width: 100%;
}
.container_success_image img {
  width: 100%;
  object-fit: cover;
  animation: slideInRight 1s ease forwards;
  animation-delay: 1s;
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (min-width: 1400px) and (max-width: 1990px) {
  .success-register-ldp-block-right {
    right: 10%;
  }
}

@media (min-width: 990px) and (max-width: 1390px) {
  .success-register-ldp-block-right {
    max-width: 500px;
  }
}

@media (min-width: 690px) and (max-width: 980px) {
  .success-register-ldp-block-right {
    max-width: 350px;
  }
}

@media (max-width: 689px) {
  .success-register-ldp-block-right {
    position: revert;
    grid-column: 1 / 2;
  }
}

@media (max-width: 490px) {
  .main-background {
    display: none;
  }
  .main-background-mb {
    display: block;
    max-height: fit-content;
  }
  .main-background-mb-img {
    max-width: 430px;
    background: var(--color-background, #013364);
  }
  .main-background-mb-img img {
    width: 100%;
  }
}

@media (min-width: 576px) {
  .vong-xoay-form-content :is(input, select):not([type="checkbox"]) {
    min-height: 3rem;
    padding: 10px 16px;
  }
}
