/* Optimized Review Form Styles */
/* Fixed Review Form CSS - Maintains JS Functionality */
#review_form_wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
  background-color: #fff;
  border-radius: 10px;
  width: 550px;
  max-width: calc(100% - 10px);
  overflow: hidden;
  transition: all 400ms ease;
  /* Default hidden state */
  display: none;
  visibility: hidden;
  opacity: 0;
}

/* Show state - matches JS toggle */
#review_form_wrapper.ns-show {
  display: block;
  visibility: visible;
  opacity: 1;
}

/* Animation timing must match JS timeout (400ms) */
#review_form_wrapper {
  transition: opacity 400ms ease, visibility 400ms ease;
}


/* Ensure close button works */
.nasa-stclose.ns-form-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 400;
}



#review_form {
  padding: 40px;
  transition: all 200ms ease;
  max-height: 90vh;
  overflow-y: auto;
}

#review_form::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

#review_form::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.7);
  border-radius: 5px;
  backdrop-filter: blur(4px);
}

#review_form::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

#review_form::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

.comment-reply-title {
  font-size: 1.6em;
  text-transform: capitalize;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.4;
  display: block;
  font-weight: 600 !important;
}

.nasa-message {
  display: block;
  margin-bottom: 0;
  transition: all 200ms ease;
}

.nasa_review-submitted_sucess {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: all 200ms ease;
}

.ns-thank {
  font-size: 5em;
  margin: 0;
}

.comment-form {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.comment-form > p {
  width: 100%;
  margin: 0 0 20px;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-rating {
  position: relative;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"] {
  width: 100% !important;
  min-height: 47px;
  padding: 10px;
  border: 1px solid #dedede;
  border-radius: 0;
  background-color: white;
  transition: all 200ms ease;
}

.comment-form textarea {
  height: 100px;
}

.comment-form label {
  position: absolute;
  top: 10px;
  left: 0;
  width: fit-content;
  margin: 0 4px;
  text-align: start;
  transition: all 200ms ease;
  opacity: 0;
  visibility: hidden;
  padding: 0 4px;
}

.comment-form-cookies-consent {
  clear: both;
  padding-top: 10px;
  line-height: 1.4;
}

.comment-form-cookies-consent label {
  display: inline;
  margin: 0 5px;
  font-weight: normal;
  position: static;
  opacity: 1;
  visibility: visible;
}

.nasa-error {
  position: absolute;
  font-size: 80%;
  width: 100%;
  display: flex;
  bottom: -10px;
  left: 0;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  transition: all 200ms ease;
  opacity: 0;
  visibility: hidden;
  line-height: 1;
  color: #c60f13;
}

.comment-form-rating .nasa-error {
  justify-content: center;
}

.nasa-stclose {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 400;
  width: 36px;
  height: 36px;
  display: inline-block;
  font-size: 0;
  color: transparent;
  border-radius: 50%;
}

.nasa-stclose:before,
.nasa-stclose:after {
  content: "";
  width: 16px;
  height: 0;
  position: absolute;
  top: 17px;
  left: 10px;
  border-top: 1px solid #333;
}

.nasa-stclose:before {
  transform: rotate(-45deg);
}

.nasa-stclose:after {
  transform: rotate(45deg);
}

.nasa-stclose:hover {
  background: #f1f1f1;
}









.form-submit {
  display: flex;
  justify-content: center;
  padding-top: 20px;
}

.form-submit .submit {
  background: var(--wilddragon-secondary-dark) !important;
  color: #fff !important;
  font-family: inherit;
  padding: 0.75em 1.5em;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.5px;
  border: 3px solid #000000 !important;
  border-radius: 0.5em;
  box-shadow:
    0.1em 0.1em 0 #000000,
    0 4px 12px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  background-clip: padding-box;
  outline: none;
  cursor: pointer;
  position: relative;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
  width: 100%;
  min-width: 180px;
  text-align: center;
  overflow: hidden;
}

.form-submit .submit:hover {
  background: var(--wilddragon-secondary-hover) !important;
  color: #fff !important;
  transform: translate(-0.05em, -0.05em);
  box-shadow:
    0.15em 0.15em 0 #000000,
    0 6px 16px rgba(0, 0, 0, 0.3);
  border-color: #000000 !important;
}

.form-submit .submit:active {
  transform: translate(0.05em, 0.05em);
  box-shadow:
    0.05em 0.05em 0 #000000,
    0 2px 6px rgba(0, 0, 0, 0.2);
}

.form-submit .submit::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.5s ease;
  z-index: 1;
}

.form-submit .submit:hover::after {
  left: 125%;
}










/* Mobile Responsive */
@media (max-width: 767px) {
  .comment-form .comment-form-author,
  .comment-form .comment-form-email {
    width: 100%;
    padding: 0;
  }
  
  .comment-form label {
    padding: 0 7px !important;
  }
  
  input, textarea, select {
    font-size: 16px;
  }
}