#gbp-audit-container {
  width: 50%;
  margin: 10px auto;
}

/* Screen Styles */
.gbp-screen {
  display: none;
}

.gbp-screen.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.gbp-screen-content {
  background: #ffffff;
  border-radius: 5px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Header Image */
.header-img {
	padding: 0 0 30px 0;
	text-align: left;
}

/* Form Header */
.form-header {
  text-align: left;
  margin-top: 30px;
}

.form-header h2 {
  margin: 0 0 10px 0;
  font-size: 24px;
  color: #0e2e62;
}

.form-header p {
  color: #666;
  margin: 0;
}

/* Search Form */
.search-form {
  margin-bottom: 20px;
}

.input-instructions {
    text-align: left;
}

#business-search {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 500px;
  padding: 15px;
  border: 2px solid #9eacc0;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
  margin-bottom: 15px;
}

#business-search:focus {
  outline: none;
  border-color: #0e2e62;
}

.contact-link {
  color: #00538f;
  font-weight: 600;
  font-style: italic;
  text-decoration: underline;
  white-space: nowrap;
}

/* Search Results */
.search-results {
  display: none;
  margin: 0 auto;
  border: 2px solid #9eacc0;
  border-top: none;
  border-radius: 0 0 5px 5px;
  max-height: 275px;
  max-width: 600px;
  overflow-y: auto;
  margin-top: -2px;
  margin-bottom: 15px;
}

.search-result-item {
  padding: 12px 15px;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-result-item:hover {
  background-color: #f5f5f5;
}

.search-result-item:last-child {
  border-bottom: none;
}

.result-main {
  font-weight: 600;
  color: #0e2e62;
  margin-bottom: 5px;
}

.result-secondary {
  font-size: 14px;
  color: #666;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  width: 100%;
  max-width: 240px;
  display: block;
  margin: 0 auto;
  margin-top: 20px;
  padding: 15px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary {
  background-color: #51ac51;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background-color: #377437;
}

.btn-primary:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: #d94f43;
  color: #fff;
  float: left;
  margin-top: 5px;
}

.btn-secondary:hover {
  background-color: #e0e0e0;
}

.search-again {
    margin-top: 50px;
    padding-bottom: 50px;
}

button#check-business {
  float: left;
  margin-top: 74px;
  margin-left: 20px;	
}

/* Business Summary */
.business-summary {
  margin-bottom: 30px;
}

.business-summary h3 {
  color: #0e2e62;
  margin-top: 0;
}

.summary-info {
  background-color: #fcfcfc;
  padding: 10px;
  border: 1px solid #00538f; 
  border-radius: 5px;
  margin-bottom: 20px;
}

p#summary-website {
    overflow-wrap: anywhere;
}

.info-item {
  margin-bottom: 15px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item label {
  display: block;
  font-weight: 600;
  color: #0e2e62;
  margin-bottom: 5px;
}

.info-item p {
  margin: 0;
  color: #666;
}

/* Lead Form */
.lead-form {
  margin-top: 20px;
  width: 100%;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #0e2e62;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #9eacc0;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0e2e62;
}

.form-footer {
  text-align: center;
  padding-top: 20px;
}

/* Report Styles */
.report-header {
  text-align: center;
/*  margin-bottom: 30px; */
}

.report-header h2 {
  margin: 0 0 10px 0;
  color: #0e2e62;
  font-weight: bold;
}

.report-header p {
  margin: 0;
  color: #666;
}

/* Report GBP Listing */
.report-gbp {
  background: linear-gradient(135deg, #00538f 0%, #00538f 100%);
  color: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 10px;
}

/* Score Card */
.score-card {
  background: linear-gradient(135deg, #d95145 0%, #d95145 100%);
  color: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 30px;
}

.score-value {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
}

.score-label {
  font-size: 16px;
  opacity: 0.9;
}

/* Report Sections */
.report-sections {
  margin-bottom: 30px;
}

.report-section {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
  border-left: 4px solid #ff6b35;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.section-header h3 {
  margin: 0;
  color: #0e2e62;
}

.section-score {
  background-color: #ff6b35;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
}

.section-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.section-details li {
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
}

.section-details li:last-child {
  border-bottom: none;
}

.section-details strong {
  color: #0e2e62;
}

/* NEW: Criteria List Styles */
.criteria-list {
  margin-top: 15px;
}

.criterion-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  margin-bottom: 10px;
  background-color: #ffffff;
  border-radius: 5px;
  border-left: 4px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.criterion-label {
  font-weight: 600;
  color: #0e2e62;
  font-size: 15px;
}

.criterion-status {
  padding: 6px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  min-width: 100px;
  text-align: center;
}

.status-pass,
.status-good {
  background-color: #4caf50;
  color: white;
}

.status-fail,
.status-poor {
  background-color: #f44336;
  color: white;
}

/* NEW: Competitive Analysis Styles */
.competitive-analysis {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid #e0e0e0;
}

.competitive-analysis h3 {
  color: #0e2e62;
  margin-bottom: 15px;
  font-size: 20px;
}

.competitors-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.competitor-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background-color: #ffffff;
  border-radius: 8px;
  border-left: 4px solid #ff6b35;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.competitor-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.competitor-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
  color: white;
  font-weight: 700;
  font-size: 18px;
  border-radius: 50%;
  flex-shrink: 0;
}

.competitor-info {
  flex: 1;
}

.competitor-name {
  font-weight: 700;
  color: #0e2e62;
  font-size: 16px;
  margin-bottom: 5px;
}

.competitor-rating {
  color: #666;
  font-size: 14px;
}

/* Loading Spinner */
.loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ff6b35;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

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

.loading-spinner p {
  color: white;
  font-size: 16px;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  position: relative;
}

.modal-content h3 {
  color: #0e2e62;
  margin-top: 0;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  font-size: 24px;
  color: #999;
}

.modal-close:hover {
  color: #333;
}

/* Error Messages */
.error {
  color: #d32f2f;
  padding: 10px;
  text-align: center;
}

.responsive-two-column-grid {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: 60% 40%;
}

.responsive-four-column-grid {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
}

input#lead-phone {
  max-width: 160px;
}

input#lead-email {
  min-width: 320px;
}

hr {margin-bottom: 10px;}


/* Responsive */
@media (max-width: 932px) {
  #gbp-audit-container {
    width: 100%;
    margin: 0px;
	padding: 0px;
  }

  p { font-size: 16px; }

  .gbp-screen-content {
    padding: 5px;
  }

   button#check-business {
	float: none;
	display: block;
	margin: 0 auto;	
}
  .score-value {
    font-size: 36px;
  }

  .form-header h2 {
    font-size: 20px;
  }

  .criterion-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .criterion-status {
    align-self: flex-end;
  }

  .competitor-item {
    padding: 12px;
  }

  .competitor-number {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .competitor-name {
    font-size: 15px;
  }

  .competitor-rating {
    font-size: 13px;
  }

.responsive-two-column-grid {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.responsive-four-column-grid {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}


  /* Mobile-specific scrollbar for search results */
  .search-results {
    max-height: 350px;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
  }

  /* Visible scrollbar styling for mobile */
  .search-results::-webkit-scrollbar {
    width: 8px;
  }

  .search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 0 5px 0;
  }

  .search-results::-webkit-scrollbar-thumb {
    background: #9eacc0;
    border-radius: 4px;
  }

  .search-results::-webkit-scrollbar-thumb:hover {
    background: #0e2e62;
  }
}
