/* Royal T Estimator Styles */

#rt-estimator {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px;
}

/* Header */
#rt-estimator .rt-seo h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

#rt-estimator .rt-seo p {
  margin: 6px 0;
}

/* Card */
#rt-estimator .rt-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 22px;
  margin: 20px 0;
}

#rt-estimator .rt-sub {
  margin-top: 6px;
  opacity: 0.85;
}

/* GRID */
#rt-estimator .rt-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 18px !important;
}

@media (min-width: 900px) {
  #rt-estimator .rt-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* SERVICE TILES */
#rt-estimator button.rt-tile {
  position: relative !important;
  display: block !important;
  width: 100% !important;

  padding: 0 !important;
  border: 1px solid #ddd !important;
  border-radius: 18px !important;

  overflow: hidden !important;
  cursor: pointer !important;

  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;

  color: #fff !important;
}

/* Portrait ratio (Chrome safe) */
#rt-estimator button.rt-tile::before {
  content: "";
  display: block;
  padding-top: 133.333%;
}

#rt-estimator button.rt-tile > * {
  position: absolute;
}

/* Hover */
#rt-estimator button.rt-tile:hover {
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

/* Overlay */
#rt-estimator .rt-tile-overlay {
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.05)
  );
  z-index: 1;
}

/* Selection dot */
#rt-estimator .rt-dot {
  top: 14px;
  left: 14px;
  z-index: 3;

  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: transparent;
}

#rt-estimator .rt-tile-active .rt-dot {
  background: #fff;
}

/* Label */
#rt-estimator .rt-tile-label {
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 3;

  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.65);
}

/* Active outline */
#rt-estimator .rt-tile-active {
  outline: 3px solid #111;
}

/* STEPS */
#rt-estimator .rt-step {
  display: none;
}

#rt-estimator .rt-step-active {
  display: block;
}

/* FORM FIELDS */
#rt-estimator .rt-field {
  margin: 18px 0;
}

#rt-estimator .rt-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

#rt-estimator .rt-field input,
#rt-estimator .rt-field textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px;
  font-size: 16px;
}

#rt-estimator .rt-field textarea {
  min-height: 110px;
  resize: vertical;
}

/* OPTION PILLS */
#rt-estimator .rt-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#rt-estimator .rt-opt {
  border: 1px solid #111;
  background: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
}

#rt-estimator .rt-opt-active {
  background: #111;
  color: #fff;
}

/* BUTTONS */
#rt-estimator .rt-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

#rt-estimator .rt-actions-split {
  justify-content: space-between;
}

#rt-estimator .rt-btn {
  border: 1px solid #111;
  background: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
}

#rt-estimator .rt-btn-primary {
  background: #111;
  color: #fff;
}

#rt-estimator .rt-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* RESULTS */
#rt-estimator .rt-results-block {
  margin: 10px 0 16px;
}

#rt-estimator .rt-results-block ul {
  margin: 8px 0 0 18px;
}

#rt-estimator .rt-big {
  font-size: 28px;
  font-weight: 800;
  margin-top: 6px;
}

#rt-estimator .rt-results-note {
  margin-top: 8px;
  opacity: 0.85;
}

/* STATUS */
#rt-estimator .rt-status {
  margin-top: 12px;
}

#rt-estimator .rt-error {
  color: #b00020;
}
