/* =====================================================
   Breakout Review Removal Tool – Styles (REFACTORED)
   Updated to support new 2-screen flow
   ===================================================== */

/* ── Container ─────────────────────────────────────── */
#rrt-container {
  width: 50%;
  margin: 10px auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  line-height: 1.5em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* ── Screen transitions ─────────────────────────────── */
.rrt-screen {
  display: none;
}

.rrt-screen.active {
  display: block;
  animation: rrtFadeIn 0.3s ease-in;
}

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

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

/* ── Header banner ──────────────────────────────────── */
.rrt-header-bg {
  min-height: 200px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url(https://breakoutinternetmarketing.com/wp-content/uploads/2026/02/negative-review-removal-signup.png);
}

/* ── Intro text ─────────────────────────────────────── */
.rrt-intro {
  margin-top: 10px;
  text-align: left!important;
}

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

.rrt-input-wrap {
  text-align: left;
}

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

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

/* ── Search dropdown ────────────────────────────────── */
.rrt-search-results {
  display: none;
  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;
}

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

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

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

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

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

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

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

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

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

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

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

.rrt-btn-large {
  max-width: 320px;
  font-size: 18px;
  padding: 18px 30px;
}

button#rrt-btn-load {
  float: left;
  margin-top: 75px;
  margin-left: 20px;
}

/* Outline buttons for select/deselect all */
.rrt-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 2px solid #00538f;
  border-radius: 20px;
  background: transparent;
  color: #00538f;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0;
  width: auto;
}

.rrt-btn-outline:hover {
  background: #00538f;
  color: #fff;
}

.rrt-btn-outline-red {
  border-color: #d94f43;
  color: #d94f43;
}

.rrt-btn-outline-red:hover {
  background: #d94f43;
  color: #fff;
}

/* ── Layout helpers ─────────────────────────────────── */
.rrt-two-col {
  max-width: 100%;
  display: grid;
  gap: 1rem;
  grid-template-columns: 60% 40%;
}

.rrt-four-col {
  max-width: 100%;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
}

/* ── Report header bar (Screen 2) ───────────────────── */
.rrt-report-header {
  margin-bottom: 20px;
}

.rrt-report-biz-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  background: linear-gradient(135deg, #00538f 0%, #00538f 100%);
  color: white;
  padding: 20px 25px;
  border-radius: 8px;
  margin-top: 15px;
}

.rrt-report-biz-info h4,
.rrt-report-biz-info h5 {
  margin: 0;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.rrt-report-biz-info h5 {
  font-size: 0.95rem;
  margin-top: 6px;
  opacity: 0.9;
}

.rrt-report-rating-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  padding: 12px 20px;
  text-align: center;
  min-width: 100px;
}

.rrt-badge-stars {
  font-size: 13px;
  color: #f5d532;
  font-weight: 600;
  margin-bottom: 4px;
}

.rrt-badge-count {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: white;
}

.rrt-badge-label {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 2px;
}

/* ── Review instructions bar ─────────────────────────── */
.rrt-review-instructions {
  padding: 15px 0 10px;
  border-bottom: 2px solid #e8e8e8;
  margin-bottom: 20px;
}

.rrt-review-instructions p {
  margin: 0 0 12px;
}

.rrt-select-controls {
  display: flex;
  margin-top: 10px;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rrt-selected-badge {
  background: #00538f;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* ── Reviews list ────────────────────────────────────── */
.rrt-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

/* Single review card */
.rrt-review-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px;
  align-items: flex-start;
  background: #fff;
  border: 2px solid #e8e8e8;
  border-left: 5px solid #d94f43;
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  cursor: pointer;
}

.rrt-review-card:hover {
  border-left-color: #00538f;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.rrt-review-card.rrt-checked {
  border-color: #51ac51;
  border-left-color: #51ac51;
  background: #f6fff6;
  box-shadow: 0 2px 8px rgba(81, 172, 81, 0.2);
}

/* Checkbox column */
.rrt-review-checkbox-col {
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
}

.rrt-review-checkbox {
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: #51ac51;
  flex-shrink: 0;
}

/* Review content column */
.rrt-review-content {
  min-width: 0;
}

.rrt-review-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.rrt-review-author {
  font-weight: 700;
  color: #0e2e62;
  font-size: 15px;
}

.rrt-review-stars {
    color: #ffc40c;
    font-size: 20px;
    letter-spacing: 2px;
}

.rrt-review-date {
  color: #999;
  font-size: 13px;
}

.rrt-review-text {
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.rrt-review-text.rrt-no-text {
  color: #999;
  font-style: italic;
}

/* Review author photo */
.rrt-review-author-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e0e0e0;
  flex-shrink: 0;
}

/* ── Loading / empty states ─────────────────────────── */
.rrt-reviews-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  color: #555;
}

.rrt-mini-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #00538f;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: rrtSpin 1s linear infinite;
  flex-shrink: 0;
}

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

.rrt-no-reviews {
  text-align: center;
  padding: 40px 20px;
  color: #555;
}

.rrt-no-reviews h4 {
  color: #51ac51;
  margin: 12px 0 8px;
}

/* ── Contact Section (NEW) ──────────────────────────── */
.rrt-contact-section {
  margin-top: 30px;
}

.rrt-lead-form {
  margin-top: 20px;
  width: 100%;
}

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

.rrt-form-group label {
  display: block;
  text-align: left;
  font-weight: 600;
  margin-bottom: 8px;
  color: #00538f;
}

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

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

.rrt-submit-summary {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
}

.rrt-submit-error {
  background: #fff3f3;
  border: 2px solid #d94f43;
  border-radius: 5px;
  color: #d94f43;
  padding: 12px 18px;
  margin: 15px 0;
  font-size: 14px;
}

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

/* ── Success message ────────────────────────────────── */
.rrt-success-message {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f6fff6 0%, #e8f8e8 100%);
  border: 2px solid #51ac51;
  border-radius: 10px;
  margin: 20px 0;
}

.rrt-success-message i {
  font-size: 56px;
  color: #51ac51;
  margin-bottom: 15px;
}

.rrt-success-message h4 {
  color: #2e7d32;
  font-size: 22px;
  margin: 0 0 10px;
}

.rrt-success-message p {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}

/* ── Loading overlay (full screen) ─────────────────── */
.rrt-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 30px 20px;
}

/* Logo inside overlay */
.rrt-loading-overlay img {
  width: 100%
  max-width: 70vw;
  margin-bottom: 36px;
  opacity: 0.92;
}

/* Rotating status message */
.rrt-overlay-message {
  font-size: 1.5em;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  margin-bottom: 22px;
  min-height: 24px;
  letter-spacing: 0.2px;
  transition: opacity 0.4s ease;
  max-width: 90vw;
  line-height: 1.5;
  height: 3em;
}

/* Progress bar track */
.rrt-progress-track {
  width: 400px;
  max-width: 80vw;
  height: 12px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  overflow: hidden;
}

/* Progress bar fill */
.rrt-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  background: linear-gradient(90deg, #51ac51 0%, #7dd87d 100%);
  transition: width 1s linear;
  will-change: width;
}

/* "Please wait…" sub-label */
.rrt-overlay-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 14px;
  letter-spacing: 0.5px;
}

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

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

hr {
  margin-bottom: 10px;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE – Mobile (≤ 932px)
   ══════════════════════════════════════════════════════ */
@media (max-width: 932px) {
  #rrt-container {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  p {
    font-size: 16px;
  }

  .rrt-screen-content {
    padding: 10px;
  }

  .rrt-header-bg {
    min-height: 120px;
    background-image: url(https://breakoutinternetmarketing.com/wp-content/uploads/2026/02/negative-review-removal-signup.png);
  }

  .rrt-two-col {
    grid-template-columns: 1fr;
  }

  .rrt-four-col {
    grid-template-columns: 1fr;
  }

  button#rrt-btn-load {
    float: none;
    display: block;
    margin: 0 auto;
  }

  .rrt-report-biz-bar {
    grid-template-columns: 1fr;
  }

  .rrt-report-rating-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .rrt-badge-count {
    font-size: 32px;
  }

  .rrt-select-controls {
    gap: 8px;
  }

  .rrt-review-card {
    grid-template-columns: auto 1fr;
    gap: 10px;
  }

  .rrt-search-results {
    max-height: 350px;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
  }
}


/* ══════════════════════════════════════════════════════
   COUNTDOWN LOADING PANEL (legacy – kept for graceful fallback)
   ══════════════════════════════════════════════════════ */
/* The on-page countdown panel is no longer used; the overlay
   progress bar replaced it. These rules are intentionally empty. */