body.noscroll {
  overflow: hidden; /* Prevent body scroll */
}

.modal_audit{ 
  display: none;
  visibility: hidden;
  position: fixed;
  width: 96%;
  height: 96vh;
  z-index: 100000;
  background-color:rgba(0, 0, 0, 0.6);
  top: 0;
  padding: 2%;
  left: 0;
  right: auto;
  overflow-y: scroll;
}
.modal_audit section{
  padding: 20px 0;
}
.module_audit_inner{ position: relative; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Soft shadow */}

.modal_audit section{ background-color: #fff;} 

.close_modal{ 
  background-color: #333;
    color: #fff;
    font-size: 25px;
    border-radius: 50%;
    padding: 8px;
    text-align: center;
    position: absolute;
    top: -20px;
    right: -20px;
    z-index: 99;
    width: 30px;
    height: 30px;
    cursor: pointer;
}
.closeform {
    text-align: right;
    padding: 5px;
    display: block;
    width: 98%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}
#modal_form {
    position: fixed;
    background-color: #E6F3FF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    left: 25%;
    right: auto;
    top: 10%;
    width: 50%;
    z-index: 9999;
    border-radius: 10px;
}


.cta-section-wrapper, .audit-summary-wrapper, .audit-details-wrapper, .overall-score, .loading_site_content.hide, #modal_form, .cta-section.hide, #form_box.hide{
  display: none;
  visibility: hidden;
}
.modal_audit.active, .modal_audit .active, #screenshot-img.active, #modal_form.active{
  display: block;
  visibility: visible;
}

#urlError{
  color: #fff;
    display: none;
    margin: 0;
    position: absolute;
    bottom: 2px;
}

.audit_header {
  background: #fff;
  padding: 1rem;
  text-align: center;
}

.audit_banner{
  background-color: #0084FE;
  padding: 20px;
  text-align: center;
  color: #fff;
  position: relative;
}
#url_input {
    margin-right: 20px;
    padding: 12px 20px;
    border-radius: 25px;
    border: none;
    width: 250px;
    font-weight: 500;
    font-size: 18px;
    line-height: 30px;
}
.audit_btn{ cursor: pointer;}
.modal_audit .logo {
  height: 50px;
}
.modal_audit p.Score-all {
    text-align: center;
    font-size: 30px;
    margin: 30px 0;
}

.modal_audit .score-section-wrapper{
   background: #0e1a2b;
}

.modal_audit .score-section {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 2rem; 
  color: white;
  min-height: 450px;
}

.screenshot img {
  max-width: 100%;
  border-radius: 10px;
}


.modal_audit .cta-box.dark, .modal_audit .cta-box.light {
  display:flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.text-flex-blue {
    width: 75%;
}
.cta-section {
  display: flex;
    gap: 1rem;
    padding: 0;
    justify-content: center;
    width: 60%;
    margin: 0 auto;
}

.cta-box {
  flex: 1;
  padding: 1.5rem;
  border-radius: 5px;
  text-align: center;
}

.modal_audit .btn{cursor: pointer; width: 100%;}

.modal_audit .btn.btn_light{
  border: 1px solid #101E2A;
  
}

.cta-box.dark {
  background: #111827;
  color: white;
}
.cta-box.dark h3 {
    font-size: 28px;
}
.cta-box.dark p {
    font-size: 19px;
}
.cta-box.light h3 {
    font-size: 28px;
}
.cta-box.light p {
    font-size: 19px;
}
.cta-box.light {
    background: white;
    border: 2px solid #0084FE;
}
.audit-summary {
  display: flex;
  justify-content: space-around;
  padding: 2rem;
  flex-wrap: wrap;
}

.circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
  padding-top: 30px;
  margin: 10px;
}

.orange {
  background: #ffe5d9;
  color: #d9480f;
}

.yellow {
  background: #fff3cd;
  color: #856404;
}

.blue {
  background: #d0e3ff;
  color: #004085;
}

.modal_audit section.audit-box {
  background: white;
  margin: 2rem auto;
  padding: 1.5rem;
  width: 80%;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); 
}

.audit-box.red {
  border-top: 6px solid red;
}

.modal_audit ul {
  padding-left: 1.5rem;
}

.modal_audit li {
  margin-bottom: 0.5rem;
}



.requirement {
  font-weight: 400;
  margin: 10px 0 0;
}

.circular-progress {
    --progress-bar-width: 200.61px;
    --progress-bar-height: 200.61px;
    --font-size: 29px;
    width: var(--progress-bar-width);
    height: var(--progress-bar-height);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: conic-gradient(crimson 0deg, black 0deg);
}
.inner-circle {
  position: absolute;
  width: calc(var(--progress-bar-width) - 30px);
  height: calc(var(--progress-bar-height) - 30px);
  border-radius: 50%;
  background-color: lightgrey;
}
.percentage {
  position: relative;
  font-size: var(--font-size);
  color: rgb(0, 0, 0, 0.8);
}
/* Nested circular bar inside each audit */
.audit-progress-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.audit-circle {
  --progress-bar-width: 100px;
  --progress-bar-height: 100px;
  --font-size: 1.1rem;
  position: relative;
  width: var(--progress-bar-width);
  height: var(--progress-bar-height);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.audit-circle .percentage {
  position: relative;
  font-size: var(--font-size);
  z-index: 2;
}

.audit-circle .inner-circle {
  position: absolute;
  width: calc(var(--progress-bar-width) - 20px);
  height: calc(var(--progress-bar-height) - 20px);
  border-radius: 50%;
  background-color: lightgray;
  z-index: 1;
}
.modal_audit .accordion-item {
  border-top: 1px solid #ddd;
  cursor: pointer;
}

.modal_audit .accordion-header {
  display: flex;
  align-items: center;
  padding: 12px;
  transition: background 0.3s;
  position: relative;
}

.modal_audit .accordion-header .icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
}

.modal_audit .accordion-title {
  flex-grow: 1;
}

.modal_audit .accordion-header .arrow {
  font-size: 24px;
  transition: transform 0.3s;
}

.modal_audit .accordion-header.open .arrow {
  transform: rotate(180deg);
}

.modal_audit .accordion-description {
  padding: 10px;
  background: #fafafa;
  font-size: 16px;
  color: #333;
  border-radius: 10px;
  display: none;
}

.modal_audit .accordion-description.active {
  display: block;
}
section.audit-box ul {
    list-style: none;
}
.score-bubble-row {
  display: flex;
  justify-content: center;
  gap: 50px;
  padding: 40px 20px;
  background-color: #fafafa;
  flex-wrap: wrap;
}

.score-bubble {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  text-align: center;
  padding: 20px;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
  font-family: sans-serif;
}

.score-bubble .score-text {
  font-size: 20px;
  margin-bottom: 5px;
}

.score-bubble .score-label {
  font-size: 16px;
}

/* Color classes */
.bubble-seo {
  background-color: #ffe3d8;
  color: #d84315;
}

.bubble-ui {
  background-color: #fff3cd;
  color: #8d6e00;
}

.bubble-speed {
  background-color: #dbe9ff;
  color: #003c8f;
}

.bubble-default {
  background-color: #eeeeee;
  color: #333;
}
.circular-progress {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(#00bcd4 0deg, #eee 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
}

.inner-circle {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.percentage {
  font-size: 22px;
  font-weight: bold;
}
.audit-summary {
  display: flex;
  justify-content: center;
  gap: 12%;
  padding: 40px 0 0;
  flex-wrap: wrap; 
}

.summary-circle-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.circular-summary {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: #e6e6e6;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circular-summary .inner-circle {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.summary-percent {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
}

.summary-label {
  font-size: 14px;
  color: #333;
}



@media (max-width: 1024px) {
  .score-section {
    flex-direction: column;
    text-align: center;
    height: auto;
    padding: 3rem 1rem;
  }

  .screenshot img {
    max-width: 100%;
    height: auto;
    margin-top: 2rem;
  }

  .cta-section {
    flex-direction: column;
    gap: 1.5rem;
  }

  .cta-box {
    width: 92%; 
  }

  .audit-summary {
    flex-direction: column;
    gap: 2rem;
  }

  .score-bubble-row {
    gap: 20px;
    padding: 20px;
  }

  .score-bubble {
    width: 120px;
    height: 120px;
    padding: 15px;
  }

  .circle, .circular-progress, .audit-circle {
    width: 120px;
    height: 120px;
  }

  .inner-circle {
    width: 90px;
    height: 90px;
  }

  .audit-box {
    width: 95%;
  }
  .audit-box .accordion-title {
    font-size: 18px;
    line-height: 25px;
  }
  .modal_audit .accordion-description, .requirement{
     font-size: 14px;
  }
  #modal_form {
    left: 15%;    
    width: 70%;
    top: 5%;
  }
}

/* For mobile phones */
@media (max-width: 600px) {
  p.Score-all {
    font-size: 22px;
  }

  .btn.blue,
  .btn.blue-border {
    width: 90%;
    font-size: 14px;
    padding: 12px 25px;
    margin-top: 30px;
  }

  .cta-box h3 {
    font-size: 22px;
  }

  .cta-box p {
    font-size: 16px;
  }

  .circular-progress,
  .circular-summary,
  .audit-circle {
    width: 100px;
    height: 100px;
  }

  .inner-circle,
  .circular-summary .inner-circle {
    width: 70px;
    height: 70px;
    font-size: 14px;
  }

  .percentage,
  .summary-percent {
    font-size: 16px;
  }

  .summary-label {
    font-size: 12px;
  }

  .accordion-header {
    font-size: 14px;
  }

  .accordion-description {
    font-size: 13px;
  }

  .score-bubble {
    width: 100px;
    height: 100px;
    font-size: 14px;
    padding: 12px;
  }
}
.score-section {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 2rem;
  background: #0e1a2b;
  color: white;
 
  overflow: hidden; 
}


/* Scanning animation effect */
.screenshot {
  position: relative;
    overflow: hidden;
    height: 313px;
    width: 500px;
    justify-content: center;
    align-items: center;
    display: flex

}

.screenshot::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(0, 255, 0, 0.1),
    rgba(159, 160, 159, 0.3),
    rgba(0, 255, 0, 0.1)
  );
  animation: scan-line 1.5s infinite linear;
  pointer-events: none;
  opacity: 0;
}

.screenshot.scanning::after {
  opacity: 1;
}

#screenshot-img.scanning {
  animation: fadeOutIn 1.5s ease-in-out;
}

#userForm { 
  max-width: 70%;
  margin: 20px auto;
  text-align: center;
}
#userForm input, #userForm textarea{ 
  width: 90%;
  padding: 12px;
  margin: 10px 0;
  font-size: 14px;
  border-radius: 30px; 
}
#userForm input, #userForm textarea{ border:1px solid #bbb}
#userForm textarea{ min-height: 100px;}

#userForm button{
  width: auto;
  margin: 20px auto;
}

#response { text-align: center; margin-bottom: 30px; font-weight: bold; } 
.success{ font-size: 34px; padding: 50px; line-height: 50px;}
.audit_container{
    gap: 20px;
}

@keyframes scan-line {
  0% { top: -100%; }
 
  100% { top: 100%; }
}

@keyframes fadeOutIn {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}

@media (max-width: 1200px) { 
  #url_input{      
    font-size: 14px;
    line-height: 20px;
    padding: 12px;
  }
}

@media (max-width: 1000px) {

  .audit_container{   
    justify-content: center;
    gap: 0px;
  }
  .audit_title h2{
    margin-top: 0;
  }
  .modal_audit .logo {
    height: auto;
  }
  .close_modal{
    top: -7px;
    right: -7px;
  }
  .cta-section{
    padding: 0;
  }
  
}

@media (max-width: 767px) {

  
  .audit-box h3{
    text-align: center;
  }
  .modal_audit ul {
    padding-left: 0;
  }
  .cta-box {
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .modal_audit .btn {   
    padding: 10px 0!important;
    text-align: center;
  }
}

@media (max-width: 510px) {
  #urlError{   
    position: relative;    
  }
  
  .loading_site_content h2{ font-size: 22px!important; line-height: 26px!important;}
  .loading_site_content p{ font-size: 14px; text-align: center;}
  #url_input, .audit_btn  {  
    margin-top: 15px;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    margin-right: 0;  
  }
  .audit_form{ 
    width: 100%;
  }
  .audit_title h2{
    font-size: 22px!important;
  }
  .audit-box .accordion-title {
    font-size: 14px;
    line-height: 20px;
  }
  .audit-box h3{
    font-size: 24px;
    line-height: 30px;
  }
  .success {
    font-size: 24px;
    padding: 20px;
    line-height: 38px;
  }
  .closeform{
    width: 96%;
  }
}

@media (max-width: 400px) {
  .audit_title h2{
    font-size: 21px!important;
  }
}
