/* ============================================
   Charleston Crawlspace Co. — Cost Estimator
   Scoped with .ccc- prefix to avoid WP theme conflicts
   ============================================ */

.ccc-estimator-wrap {
  max-width: 860px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
}

.ccc-estimator-box {
  background: #FFFFFF;
  border: 2px solid #1B3A4B;
  border-radius: 10px;
  padding: 36px;
}

.ccc-estimator-box h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  color: #1B3A4B;
  margin-bottom: 6px;
  line-height: 1.2;
}

.ccc-est-sub {
  font-size: 14px;
  color: #6B7780;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Grid layout for the 4 dropdowns */
.ccc-estimator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

/* Each dropdown field */
.ccc-est-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #3D4A4F;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ccc-est-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #DDD5C4;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: #F7F3EC;
  color: #3D4A4F;
  cursor: pointer;
  appearance: auto;
}

.ccc-est-field select:focus {
  outline: 2px solid #1B3A4B;
  outline-offset: 1px;
}

/* Result bar */
.ccc-est-result {
  background: #1B3A4B;
  border-radius: 8px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.ccc-result-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  margin-bottom: 4px;
}

.ccc-result-range {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  color: #FFFFFF;
  font-weight: 600;
  line-height: 1.1;
}

.ccc-result-note {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  margin-top: 5px;
}

/* CTA button inside result bar */
.ccc-btn {
  display: inline-flex;
  align-items: center;
  background: #B6552C;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.ccc-btn:hover {
  background: #8F4220;
  color: #FFFFFF;
}

/* ============================================
   Responsive — stack to single column on mobile
   ============================================ */
@media (max-width: 640px) {
  .ccc-estimator-box {
    padding: 22px 18px;
  }

  .ccc-estimator-grid {
    grid-template-columns: 1fr;
  }

  .ccc-est-result {
    flex-direction: column;
    align-items: flex-start;
  }

  .ccc-result-range {
    font-size: 26px;
  }

  .ccc-btn {
    width: 100%;
    justify-content: center;
  }
}