/* =====================================================
   MERGE CONSTRUCTION CORP
   SERVICE CRO SYSTEM
   Reusable conversion section for service landing pages
===================================================== */


/* =====================================================
   CRO SECTION
===================================================== */

.cro-quote-section {
  position: relative;
  overflow: hidden;
  padding: 88px 24px;

  background:
    radial-gradient(
      circle at top left,
      rgba(83, 177, 85, 0.20),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      #0f5a2e 0%,
      #137038 32%,
      #0d4d35 58%,
      #0b2336 100%
    );

  color: #ffffff;
}


.cro-quote-section::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0) 30%,
      rgba(255, 255, 255, 0) 70%,
      rgba(255, 255, 255, 0.03) 100%
    );

  pointer-events: none;
}


.cro-quote-wrap {
  position: relative;
  z-index: 1;

  max-width: 1240px;
  margin: 0 auto;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(420px, 520px);

  gap: 56px;

  align-items: center;
}


/* =====================================================
   CRO COPY
===================================================== */

.cro-copy {
  color: #ffffff;
}


.cro-kicker {
  margin: 0 0 14px;

  font-size: 0.95rem;
  font-weight: 800;

  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: #d7f2dc;
}


.cro-copy h2 {
  margin: 0 0 20px;

  font-size: clamp(
    2.5rem,
    4vw,
    4.2rem
  );

  line-height: 0.98;

  font-weight: 800;

  color: #ffffff;

  max-width: 13ch;
}


.cro-copy > p {
  margin: 0 0 28px;

  max-width: 680px;

  font-size: 1.18rem;

  line-height: 1.75;

  color:
    rgba(
      255,
      255,
      255,
      0.92
    );
}


/* =====================================================
   PROOF LIST
===================================================== */

.cro-proof-list {
  list-style: none;

  padding: 0;
  margin: 0 0 30px;

  display: grid;

  gap: 14px;
}


.cro-proof-list li {
  position: relative;

  padding-left: 34px;

  font-size: 1.08rem;

  line-height: 1.55;

  color: #ffffff;

  font-weight: 600;
}


.cro-proof-list li::before {
  content: "✔";

  position: absolute;

  left: 0;
  top: 0.05em;

  width: 22px;
  height: 22px;

  border-radius: 50%;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  background:
    rgba(
      255,
      255,
      255,
      0.15
    );

  color: #d8ffd8;

  font-size: 0.8rem;

  font-weight: 700;
}


/* =====================================================
   GOOGLE / TRUST PROOF
===================================================== */

.cro-google-proof {
  display: inline-flex;

  align-items: center;

  gap: 14px;

  padding: 18px 22px;

  border-radius: 18px;

  background:
    rgba(
      255,
      255,
      255,
      0.10
    );

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.16
    );

  backdrop-filter:
    blur(6px);

  -webkit-backdrop-filter:
    blur(6px);

  color: #ffffff;

  box-shadow:
    0 12px 30px
    rgba(
      0,
      0,
      0,
      0.16
    );
}


.cro-google-proof span {
  display: flex;

  flex-direction: column;

  gap: 2px;
}


.cro-google-proof strong {
  font-size: 1.1rem;

  font-weight: 800;

  color: #ffffff;
}


.cro-google-proof small {
  font-size: 0.96rem;

  color:
    rgba(
      255,
      255,
      255,
      0.82
    );
}


.cro-star {
  color: #ffd34d;

  font-size: 1.35rem;

  letter-spacing: 1px;
}


/* =====================================================
   FORM CARD
===================================================== */

.cro-form-card {
  background: #ffffff;

  color: #1f2b22;

  border-radius: 28px;

  padding: 34px;

  box-shadow:
    0 28px 60px
    rgba(
      0,
      0,
      0,
      0.22
    );

  border:
    1px solid
    rgba(
      14,
      58,
      31,
      0.10
    );
}


/* =====================================================
   FORM HEADER
===================================================== */

.cro-form-head {
  display: flex;

  justify-content:
    space-between;

  gap: 18px;

  align-items:
    flex-start;

  margin-bottom:
    18px;
}


.cro-form-head h3 {
  margin: 0 0 6px;

  font-size: 2rem;

  line-height: 1.1;

  font-weight: 800;

  color: #162018;
}


.cro-form-head p {
  margin: 0;

  color: #5d675f;

  font-size: 1.05rem;
}


.cro-progress-label {
  font-size: 0.95rem;

  font-weight: 800;

  color: #1f7a39;

  white-space: nowrap;
}


/* =====================================================
   PROGRESS BAR
===================================================== */

.cro-progress {
  width: 100%;

  height: 6px;

  border-radius: 999px;

  background: #d9dfda;

  overflow: hidden;

  margin-bottom: 28px;
}


.cro-progress span {
  display: block;

  height: 100%;

  width: 25%;

  background:
    linear-gradient(
      90deg,
      #59b43d 0%,
      #24803c 100%
    );

  border-radius: 999px;

  transition:
    width 0.25s ease;
}


/* =====================================================
   STEPS
===================================================== */

.cro-step {
  display: none;
}


.cro-step.is-active {
  display: block;
}


.cro-step h4 {
  margin: 0 0 18px;

  font-size: 1.25rem;

  line-height: 1.3;

  color: #172119;
}


/* =====================================================
   OPTIONS
===================================================== */

.cro-options {
  display: grid;

  gap: 12px;
}


.cro-option {
  position: relative;
}


.cro-option input {
  position: absolute;

  opacity: 0;

  pointer-events: none;
}


.cro-option label {
  display: block;

  padding: 15px 18px;

  border:
    1px solid
    #d7ddd8;

  border-radius: 14px;

  background: #ffffff;

  font-weight: 600;

  color: #223126;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}


.cro-option label:hover {
  border-color: #3e964c;

  background: #f6fbf6;

  transform:
    translateY(-1px);
}


.cro-option input:checked + label {
  border-color: #2f8a45;

  background: #eef8ef;

  color: #175728;

  box-shadow:
    inset 0 0 0 1px
    #2f8a45;
}


/* =====================================================
   FIELDS
===================================================== */

.cro-field {
  display: flex;

  flex-direction: column;

  gap: 8px;
}


.cro-field label {
  font-size: 0.98rem;

  font-weight: 700;

  color: #273329;
}


.cro-field input,
.cro-field textarea,
.cro-field select {
  box-sizing: border-box;

  width: 100%;

  min-height: 56px;

  padding: 14px 16px;

  border:
    1px solid
    #d7ddd8;

  border-radius: 14px;

  background: #ffffff;

  color: #162018;

  font: inherit;

  font-size: 1rem;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}


.cro-field input:hover,
.cro-field textarea:hover,
.cro-field select:hover {
  border-color: #b9c7bc;
}


.cro-field input:focus,
.cro-field textarea:focus,
.cro-field select:focus {
  outline: none;

  border-color: #338e47;

  box-shadow:
    0 0 0 4px
    rgba(
      52,
      142,
      71,
      0.12
    );
}


.cro-field input::placeholder,
.cro-field textarea::placeholder {
  color: #8c948e;
}


/* =====================================================
   CONTACT GRID
===================================================== */

.cro-contact-grid {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 16px;
}


.cro-contact-grid
.cro-field:first-child {
  grid-column:
    1 / -1;
}


/* =====================================================
   FORM NOTE
===================================================== */

.cro-form-note {
  margin-top: 14px;

  font-size: 0.95rem;

  line-height: 1.5;

  color: #616a63;
}


/* =====================================================
   HONEYPOT
===================================================== */

.cro-hp {
  position: absolute !important;

  left: -9999px !important;

  width: 1px !important;

  height: 1px !important;

  opacity: 0 !important;

  pointer-events: none !important;
}


/* =====================================================
   ACTIONS
===================================================== */

.cro-actions {
  display: flex;

  gap: 14px;

  align-items: center;

  justify-content:
    space-between;

  margin-top: 24px;
}


.cro-btn {
  appearance: none;

  border: 0;

  border-radius: 999px;

  padding: 15px 24px;

  font: inherit;

  font-size: 1rem;

  font-weight: 800;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease,
    background 0.2s ease;
}


.cro-btn:hover {
  transform:
    translateY(-1px);
}


.cro-btn:disabled {
  cursor: not-allowed;

  opacity: 0.65;

  transform: none;
}


/* =====================================================
   PRIMARY BUTTON
===================================================== */

.cro-btn-primary {
  background:
    linear-gradient(
      90deg,
      #2e8b42 0%,
      #1f7336 100%
    );

  color: #ffffff;

  box-shadow:
    0 12px 26px
    rgba(
      34,
      122,
      55,
      0.22
    );
}


.cro-btn-primary:hover {
  box-shadow:
    0 16px 32px
    rgba(
      34,
      122,
      55,
      0.28
    );
}


/* =====================================================
   BACK BUTTON
===================================================== */

.cro-btn-back {
  background: #e8ece8;

  color: #37423a;
}


.cro-btn-back:hover {
  background: #dfe5df;
}


/* =====================================================
   ERROR MESSAGE
===================================================== */

.cro-error {
  margin-top: 16px;

  padding: 14px 16px;

  border-radius: 12px;

  background: #fff1f1;

  color: #b42318;

  font-size: 0.95rem;

  line-height: 1.45;

  display: none;
}


.cro-error.is-visible {
  display: block;
}


/* =====================================================
   ACCESSIBILITY
===================================================== */

.cro-option input:focus-visible + label {
  outline:
    3px solid
    rgba(
      52,
      142,
      71,
      0.25
    );

  outline-offset: 2px;
}


.cro-btn:focus-visible {
  outline:
    3px solid
    rgba(
      255,
      255,
      255,
      0.45
    );

  outline-offset: 3px;
}


/* =====================================================
   TABLET
===================================================== */

@media
(max-width: 1024px) {

  .cro-quote-section {
    padding:
      78px 24px;
  }


  .cro-quote-wrap {
    grid-template-columns:
      1fr;

    gap: 36px;
  }


  .cro-copy {
    max-width: 760px;
  }


  .cro-copy h2 {
    max-width: none;
  }


  .cro-form-card {
    max-width: 760px;

    width: 100%;

    box-sizing:
      border-box;
  }
}


/* =====================================================
   MOBILE
===================================================== */

@media
(max-width: 640px) {

  .cro-quote-section {
    padding:
      64px 18px;
  }


  .cro-quote-wrap {
    gap: 30px;
  }


  .cro-copy h2 {
    font-size: 2.35rem;

    line-height: 1.03;
  }


  .cro-copy > p {
    font-size: 1.02rem;

    line-height: 1.65;
  }


  .cro-proof-list li {
    font-size: 1rem;
  }


  .cro-google-proof {
    width: 100%;

    box-sizing:
      border-box;
  }


  .cro-form-card {
    padding:
      24px 20px;

    border-radius:
      22px;
  }


  .cro-form-head {
    flex-direction:
      column;

    gap: 10px;
  }


  .cro-form-head h3 {
    font-size:
      1.65rem;
  }


  .cro-progress-label {
    font-size:
      0.9rem;
  }


  .cro-contact-grid {
    grid-template-columns:
      1fr;
  }


  .cro-contact-grid
  .cro-field:first-child {
    grid-column:
      auto;
  }


  .cro-actions {
    flex-direction:
      column;

    align-items:
      stretch;
  }


  .cro-btn {
    width: 100%;
  }
}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media
(max-width: 420px) {

  .cro-quote-section {
    padding:
      54px 14px;
  }


  .cro-copy h2 {
    font-size:
      2rem;
  }


  .cro-form-card {
    padding:
      22px 16px;
  }


  .cro-google-proof {
    padding:
      16px;
  }


  .cro-star {
    font-size:
      1.15rem;
  }
}

/* =====================================================
   CRO TRUSTBAR - CENTERED
===================================================== */

.cro-trustbar {
  background: #ffffff;
  border-top: 1px solid #e8ece9;
  border-bottom: 1px solid #e8ece9;
}

.cro-trustbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 22px;
  flex-wrap: wrap;

  text-align: center;

  font-size: 0.92rem;
  font-weight: 700;
  color: #26342b;
}

.cro-trustbar-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  white-space: nowrap;
}

.cro-trustbar .cro-star {
  color: #f3ad12;
}

.cro-trustbar .cro-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #77bd43;
  display: inline-block;
}


/* =====================================================
   CRO FORM - MORE COMPACT DESKTOP
===================================================== */

@media (min-width: 769px) {

  .cro-form-card {
    padding: 28px;
  }

  .cro-form-head h3 {
    font-size: 1.7rem;
  }

  .cro-options {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cro-option label {
    padding: 13px 14px;
    min-height: 50px;

    display: flex;
    align-items: center;
  }

  .cro-step h4 {
    margin-bottom: 14px;
  }

  .cro-progress {
    margin-bottom: 22px;
  }

  .cro-actions {
    margin-top: 18px;
  }

  .cro-field input,
  .cro-field textarea,
  .cro-field select {
    min-height: 50px;
    padding: 12px 14px;
  }

  .cro-contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .cro-contact-grid .cro-field:first-child {
    grid-column: 1 / -1;
  }
}


/* =====================================================
   CRO MOBILE TRUSTBAR
===================================================== */

@media (max-width: 768px) {

  .cro-trustbar-inner {
    gap: 10px 16px;
    padding: 12px 16px;

    font-size: 0.84rem;
  }

  .cro-trustbar-item {
    white-space: normal;
  }

  .cro-options {
    grid-template-columns: 1fr;
  }
}


.cro-mobile-sticky {
  display: none;
}

@media (max-width: 768px) {
  .cro-mobile-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;

    display: flex;
    gap: 10px;

    padding: 10px 14px;

    background: rgba(10, 32, 23, 0.96);

    box-shadow:
      0 -8px 24px
      rgba(0, 0, 0, 0.16);
  }

  .cro-mobile-sticky a {
    flex: 1;

    text-align: center;

    padding: 12px 10px;

    border-radius: 999px;

    font-weight: 800;

    text-decoration: none;
  }

  .cro-mobile-sticky a:first-child {
    background: #1f7a39;
    color: #ffffff;
  }

  .cro-mobile-sticky a:last-child {
    background: #ffffff;
    color: #1f6f3a;
    border: 2px solid #65ad43;
  }
}


/* =========================================================
   BATHROOM CRO — MATCH KITCHEN SCALE
   ========================================================= */

#bathroom-estimate .cro-quote-wrap{
  max-width:1180px;
  margin:0 auto;
  grid-template-columns:minmax(0,.88fr) minmax(520px,1.12fr);
  gap:56px;
  align-items:center;
}

#bathroom-estimate .cro-copy{
  max-width:520px;
}

#bathroom-estimate .cro-kicker{
  font-size:.82rem;
  letter-spacing:.09em;
  margin-bottom:12px;
}

#bathroom-estimate .cro-copy h2{
  font-size:clamp(2rem,3vw,3.2rem);
  line-height:1.05;
  margin:0 0 18px;
  max-width:500px;
}

#bathroom-estimate .cro-copy > p{
  font-size:1rem;
  line-height:1.65;
  max-width:510px;
}

#bathroom-estimate .cro-proof-list{
  margin-top:22px;
  gap:10px;
}

#bathroom-estimate .cro-proof-list li{
  font-size:.98rem;
  line-height:1.45;
}

#bathroom-estimate .cro-google-proof{
  margin-top:28px;
  padding:16px 18px;
  max-width:410px;
}

#bathroom-estimate .cro-form-card{
  max-width:520px;
  width:100%;
  justify-self:end;
}

#bathroom-estimate{
  padding:64px 24px;
}


/* =========================================================
   RESIDENTIAL REPAIRS · CRO TITLE SIZE
   Match Kitchen/Bathroom visual scale
========================================================= */

body[data-service="residential-repairs"] .cro-copy h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.02;
  max-width: 620px;
  letter-spacing: -0.035em;
}

/* Tablet */
@media (max-width: 1024px) {
  body[data-service="residential-repairs"] .cro-copy h2 {
    font-size: clamp(2.5rem, 5vw, 3.4rem);
    max-width: 560px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  body[data-service="residential-repairs"] .cro-copy h2 {
    font-size: clamp(2.15rem, 9vw, 2.8rem);
    line-height: 1.05;
    max-width: 100%;
  }
}