/* Rank Checker New - Page Specific Styles */

/* Apply text-wrap balance to all headings */
h1, h2, h3 {
  text-wrap: balance;
}

/* Hero Title Styles */
.hero-title {
  font-size: 52px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 30px;
  text-wrap: balance;
}

/* Hero Graphic - Responsive Images */
.hero-graphic {
  width: 100%;
  margin: 0 0 40px 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
  background-image: url('/web/assets/aimages/hero-desktop-letterbox.png');
  height: 400px;
}

@media only screen and (min-width: 960px) {
  nav > ul li a {
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 20px;
    padding-top: 20px;
  }
}

.offercontainer p,
.offercontainer h2,
.offercontainer h3 {
  line-height: normal;
}

.showhidemap,
.quotecta,
.whatcta {
  color: #fff;
  background: #0079c1;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: 0;
  outline: 0;
  font-size: 0.9rem;
  padding: 6px 20px;
  display: inline-block;
  transform: skew(-21deg);
  width: 200px;
  text-align: right;
}

.quotecta {
  color: #000;
  background: #F2C014;
  text-align: center;
  margin: 15px 0 0 0;
}

.quotecta:hover,
.whatcta {
  transform: skew(0deg);
  border-radius: 5px;
}

.container.rank-cont {
  /* background: linear-gradient(135deg, #004F9F, #00a6c1); */
  background: linear-gradient(135deg, #0B7768, #128fb5);
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.container.rank-cont::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://grow.fcrmedia.ie/web/images/g-col.png');
  background-position: right bottom;
  background-repeat: no-repeat;
  background-size: 380px;
  opacity: 0.8;
  pointer-events: none;
}

.container.ranktool {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 60px;
  background-color: transparent;
}

.hero-content {
  flex: 1;
  color: white;
  max-width: 500px;
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: white;
}

.hero-content .subtitle {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #FFD700 !important;
}

.hero-image-container {
  flex: 1;
  position: relative;
  max-width: 650px;
}

.hero-image-container img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-benefits {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.hero-benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
}

.hero-benefit-item::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
}

#ib-form-widget {
  margin: 0;
  background: rgb(34, 112, 142) !important;
  border-radius: 12px !important;
  padding: 30px !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 5px solid rgb(255, 215, 0);
}

#ib-form-widget .ib-form input {
  padding: 12px 15px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.95);
  font-size: 16px;
}

#ib-form-widget .ib-form input:focus {
  border-color: #F2C014;
  outline: none;
  background: white;
}

.ib-form input[type="checkbox"] {
  display: inline;
  width: 30px;
  vertical-align: middle;
  height: 30px;
  margin: 0;
}

#ib-form-widget .ib-form button[type="submit"] {
  background: #F2C014 !important;
  color: #000 !important;
  font-weight: 700;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

#ib-form-widget .ib-form button[type="submit"]:hover {
  background: #FFD700 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 192, 20, 0.4);
}

#ib-form-widget .ib-form label {
  color: white;
  font-weight: 600;
  margin-bottom: 8px;
  width: 100%;
}

.enter-manually {
  color: yellow !important;
}

.business-lookup-container {
  margin-top: 60px !important;
}

/* Discovery/Feature Item Styles */
.discovery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.discovery-item {
  display: flex;
  gap: 15px;
  align-items: start;
}

.discovery-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.discovery-icon.green {
  background: #e8f5e9;
}

.discovery-icon.blue {
  background: #e3f2fd;
}

.discovery-icon.orange {
  background: #fff3e0;
}

.discovery-icon.pink {
  background: #fce4ec;
}

.discovery-icon.purple {
  background: #f3e5f5;
}

.discovery-icon.teal {
  background: #e0f2f1;
}

.discovery-title {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 8px 0;
}

.discovery-desc {
  font-size: 15px;
  color: #4a5568;
  margin: 0;
  line-height: 1.6;
}

/* Section Heading Styles */
.section-heading {
  font-size: 42px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.3;
}

.section-subheading {
  font-size: 20px;
  color: #4a5568;
  text-align: center;
  margin-bottom: 50px;
}

.section-container {
  max-width: 900px;
  margin: 0 auto;
}

/* Stats/Social Proof Styles */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: #F2C014;
  margin-bottom: 10px;
}

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

/* Problem Cards */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 50px 0;
}

.problem-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border-top: 4px solid #ccc;
}

.problem-card.red {
  border-top-color: #F44336;
}

.problem-card.orange {
  border-top-color: #FF9800;
}

.problem-card.purple {
  border-top-color: #9C27B0;
}

.problem-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.problem-title {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
}

.problem-desc {
  font-size: 16px;
  color: #4a5568;
  margin: 0;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, #004F9F, #00a6c1);
  border-radius: 12px;
  padding: 50px 40px;
  margin-top: 50px;
  color: white;
  text-align: center;
}

.cta-box-title {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}

.cta-box-text {
  font-size: 19px;
  line-height: 1.7;
  margin: 0;
  opacity: 0.95;
}

.cta-button {
  display: inline-block;
  margin-top: 30px;
  padding: 18px 40px;
  background: #F2C014;
  color: #000;
  font-weight: 700;
  font-size: 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #FFD700;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 192, 20, 0.4);
}

/* FAQ Section */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.faq-item {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 12px;
  border-left: 4px solid #ccc;
}

.faq-item.blue-dark {
  border-left-color: #004F9F;
}

.faq-item.blue-light {
  border-left-color: #00a6c1;
}

.faq-item.blue-medium {
  border-left-color: #0079c1;
}

.faq-item.yellow {
  border-left-color: #F2C014;
}

.faq-question {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 12px 0;
}

.faq-answer {
  font-size: 16px;
  color: #4a5568;
  margin: 0;
  line-height: 1.6;
}

/* Final CTA Features */
.final-cta-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.final-cta-title {
  font-size: 48px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  line-height: 1.2;
}

.final-cta-subtitle {
  font-size: 22px;
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0.95;
}

.feature-highlight-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
}

.feature-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.feature-highlight-item {
  text-align: center;
}

.feature-highlight-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-highlight-desc {
  font-size: 14px;
  opacity: 0.85;
}

.cta-button-large {
  display: inline-block;
  padding: 20px 50px;
  background: #F2C014;
  color: #000;
  font-weight: 700;
  font-size: 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(242, 192, 20, 0.4);
}

.cta-button-large:hover {
  background: #FFD700;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 192, 20, 0.5);
}

.trust-badge-text {
  margin-top: 30px;
  font-size: 16px;
  opacity: 0.9;
}

#lookup-disabled-submit {
  margin-bottom: 60px !important;
}

/* Mobile Responsive */
@media only screen and (max-width: 868px) {
  .container.ranktool {
    flex-direction: column;
    gap: 40px;
    padding: 40px 20px;
  }
  
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 36px;
  }
  
  .hero-content .subtitle {
    font-size: 18px;
  }
  
  .hero-benefits {
    align-items: center;
  }
  
  .hero-image-container {
    max-width: 100%;
    order: -1;
  }
  
  .container.rank-cont {
    padding: 60px 0;
  }
  
  /* New Hero Layout - Stack on Mobile */
  .rank-cont .container-fixed > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    width: 100%;
    box-sizing: border-box;
  }
  
  .rank-cont h1 {
    font-size: 36px !important;
  }
  
  .rank-cont .subtitle {
    font-size: 18px !important;
  }
  
  /* Hero Title - Tablet */
  .hero-title {
    font-size: 38px;
  }
  
  /* Hide arrow on tablet/mobile */
  .arrow-to-form {
    display: none;
  }
}

@media only screen and (max-width: 768px) {
  /* Stack hero grid on mobile */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  
  /* Stack report preview grid on mobile */
  .report-preview-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  
  /* Stack discovery grid on mobile */
  .discovery-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .section-heading {
    font-size: 32px !important;
  }
  
  .section-subheading {
    font-size: 18px !important;
    margin-bottom: 30px;
  }
  
  /* Stack problem grid on mobile */
  .problem-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin: 30px 0 !important;
  }
  
  .problem-card {
    padding: 25px !important;
  }
  
  .cta-box {
    padding: 30px 20px !important;
    margin-top: 30px !important;
  }
  
  .cta-box-title {
    font-size: 24px !important;
  }
  
  .cta-box-text {
    font-size: 17px !important;
  }
  
  /* FAQ mobile adjustments */
  .faq-item {
    padding: 20px !important;
  }
  
  .faq-question {
    font-size: 18px !important;
  }
  
  .faq-answer {
    font-size: 15px !important;
  }
  
  /* Final CTA mobile adjustments */
  .final-cta-title {
    font-size: 32px !important;
  }
  
  .final-cta-subtitle {
    font-size: 18px !important;
    margin-bottom: 30px !important;
  }
  
  .feature-highlight-box {
    padding: 25px !important;
    margin-bottom: 30px !important;
  }
  
  .feature-highlight-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .cta-button-large {
    padding: 18px 30px !important;
    font-size: 18px !important;
  }
  
  /* Resize Google G background for mobile */
  .container.rank-cont::before {
    background-size: 240px !important;
  }
  
  /* Add padding to prevent text touching viewport edges - only for white/light background sections */
  .row.designRow[style*="background: white"],
  .row.designRow[style*="background: #f8f9fa"] {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
  
  /* Add padding to inner containers in gradient background sections (Hero & Social Proof) */
  .container.rank-cont .container-fixed,
  .row.designRow[style*="linear-gradient"] .container-fixed {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
  
  .hero-content h1 {
    font-size: 32px;
  }
  
  .hero-benefit-item {
    font-size: 16px;
  }
  
  #ib-form-widget {
    padding: 20px !important;
  }
  
  /* New Hero Layout - Smaller Text on Mobile */
  .rank-cont h1 {
    font-size: 32px !important;
  }
  
  .rank-cont .subtitle {
    font-size: 16px !important;
  }
  
  .rank-cont h3 {
    font-size: 24px !important;
  }
  
  /* Hide arrow emoji in H1 on mobile */
  h1 span.text-arrow {
    display: none !important;
  }
  
  /* Hero Title - Mobile */
  .hero-title {
    font-size: 32px;
    margin-bottom: 20px;
  }
  
  /* Hero Graphic - Mobile Square Format */
  .hero-graphic {
    background-image: url('/web/assets/aimages/hero-mobile-square.png');
    height: 0;
    padding-bottom: 100%;
    background-size: cover;
  }
}

@media only screen and (max-width: 610px) {
  #ib-form-widget {
    margin-top: 5px;
  }
  
  .business-lookup-container {
    margin-top: 10px !important;
  }
  
  #lookup-disabled-submit {
    margin-bottom: 10px !important;
  }
}
