/*** 

====================================================================
Index
====================================================================

***/

.home-banner .content-box p {
  text-align: center;
}

.input-box {
  background: #fff;
  border: var(--bs-border-width) solid var(--bs-border-color);
  border-radius: var(--bs-border-radius-lg);
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  padding: 10px;
  gap: 10px;
}

.input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.input-wrapper textarea {
  padding: 0;
}

.input-wrapper textarea,
.input-wrapper textarea:focus {
  border: none;
  box-shadow: none;
  outline: none;
  resize: none;
}

#file-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#file-previews:empty {
  display: none;
}

#file-previews div {
  position: relative;
}

#file-previews div.loading::after {
  content: " ";
  display: block;
  width: 30px;
  height: 30px;
  margin: 10px;
  border-radius: 50%;
  border: 5px solid rgba(0, 0, 0, 0.75);
  border-color: rgba(255, 255, 255, 0.85) transparent rgba(255, 255, 255, 0.85)
    rgba(255, 255, 255, 0.85);
  animation: lds-dual-ring 1.2s linear infinite;
  position: absolute;
  left: 0;
  top: 0;
}

@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#file-previews div button {
  position: absolute;
  top: -5px;
  right: -5px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.75);
  width: 20px;
  height: 20px;
  border: 1px solid var(--bs-border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

#file-previews div:hover button {
  opacity: 1;
}

#file-previews img {
  width: 50px;
  height: 50px;
  background-color: #fff;
  border: var(--bs-border-width) solid var(--bs-border-color);
  border-radius: var(--bs-border-radius-lg);
  object-fit: contain;
}

.tips-list {
  text-align: left;
  font-size: 1rem;
  line-height: 1.75;
}

.input-box button[type="submit"] {
  width: 100%;
  align-self: end;
}

@media only screen and (min-width: 768px) {
  .input-box button[type="submit"] {
    width: auto;
  }
}

#rate-limit-details {
  text-align: center;
}

#rate-limit-details .alert {
  display: inline-block;
  padding: 8px 14px;
  line-height: 1.5;
}

#toggle-tips {
  font-weight: 500;
}

#toggle-tips .info-icon {
  margin-left: 4px;
}

#results h1,
#results h2,
#results h3,
#results h4,
#results h5,
#results h6,
#results p {
  margin-bottom: 1rem;
}

#results ol,
#results ul {
  padding-left: 2rem;
  margin-bottom: 1rem;
}

#results ol li {
  list-style-type: decimal;
}

#results ul li {
  list-style-type: disc;
}

#results li p {
  margin-bottom: 0;
}

#affiliate-disclosure {
  font-size: 16px;
  line-height: 1.75;
}

#results-content {
  background-color: rgba(205, 214, 187, 0.15);
  padding: 24px;
  border: var(--bs-border-width) solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
}

#results-content :last-child {
  margin-bottom: 0;
}

.vote-button.selected svg {
  fill: #6c757d;
}

#confidence-details {
  border: var(--bs-border-width) solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  padding: 24px;
}

#confidence-details-content :last-child {
  margin-bottom: 0;
}

@keyframes blink {
  50% {
    fill: transparent;
  }
}

.loader .dot {
  animation: 1s blink infinite;
  fill: grey;
}

.loader .dot:nth-child(2) {
  animation-delay: 250ms;
}

.loader .dot:nth-child(3) {
  animation-delay: 500ms;
}

.confidence-badge {
  position: relative;
  display: inline-block;
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
  border-radius: 30px;
  padding: 0px 16px;
  text-transform: uppercase;
  background: rgba(255, 29, 29, 0.05);
  border: 1px solid rgba(255, 29, 29, 0.2);
  margin-left: 8px;
}

.confidence-badge.low {
  background: rgba(255, 29, 29, 0.12);
  border: transparent;
}

.confidence-badge.medium {
  background: rgba(255, 151, 118, 0.1);
  border: 1px solid rgba(255, 151, 118, 0.15);
}

.confidence-badge.high {
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid rgba(0, 255, 0, 0.15);
}

/* HOW IT WORKS */
.how-it-works-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.how-it-works-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 600px;
}

.how-it-works-step-title {
  display: flex;
  gap: 16px;
  align-items: center;
}

.how-it-works-step-number {
  width: 40px;
  height: 40px;
  background-color: #cdd6bb;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FAQ */
.faq .inner-box {
  position: relative;
  max-width: 850px;
  width: 100%;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid #d7d7d7;
  padding: 20px 0;
}

.faq details > summary {
  color: #0d0d0d;
  font-weight: 500;
  list-style: none;
  position: relative;
}

.faq details > summary:after {
  content: "+";
  position: absolute;
  right: 0;
  width: 30px;
  height: 30px;
  line-height: 30px;
  background: var(--theme-color);
  text-align: center;
  border-radius: 50%;
  color: #fff;
}

.faq details > summary::-webkit-details-marker {
  display: none;
}

.faq details[open] > summary {
  margin-bottom: 20px;
}

.faq details[open] > summary:after {
  content: "-";
}
