/* Poppy Plumbing Plugin Styles */

/* Multi-Step Estimate Form */
.poppy-estimate {
  max-width: none;
  margin: 0;
  padding: 0;
}

.poppy-estimate__progress {
  margin-bottom: 0;
}

.poppy-estimate__progress-bar {
  height: 4px;
  background: var(--poppy-gray-200, #E2DDD6);
  border-radius: 2px;
  margin-bottom: 0.75rem;
  position: relative;
  overflow: hidden;
}

.poppy-estimate__progress-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 20%;
  background: var(--poppy-primary, #C1562B);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.poppy-estimate[data-step="2"] .poppy-estimate__progress-bar::after { width: 40%; }
.poppy-estimate[data-step="3"] .poppy-estimate__progress-bar::after { width: 60%; }
.poppy-estimate[data-step="4"] .poppy-estimate__progress-bar::after { width: 80%; }
.poppy-estimate[data-step="5"] .poppy-estimate__progress-bar::after { width: 100%; }

.poppy-estimate__steps {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--poppy-gray-400, #9A948C);
}

.poppy-estimate__step-label.is-active {
  color: var(--poppy-primary, #C1562B);
  font-weight: 600;
}

.poppy-estimate__panel {
  display: none;
  animation: poppyFadeIn 0.3s ease;
}

.poppy-estimate__panel.is-active {
  display: block;
}

@keyframes poppyFadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.poppy-estimate__heading {
  margin-bottom: 0.75rem;
}

.poppy-estimate__cards {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.poppy-estimate__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: var(--poppy-white, #fff);
  border: 2px solid var(--poppy-gray-200, #E2DDD6);
  border-radius: var(--poppy-radius, 8px);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  font-family: inherit;
}

.poppy-estimate__card:hover,
.poppy-estimate__card.is-selected {
  border-color: var(--poppy-primary, #C1562B);
  background: var(--poppy-neutral, #FAF8F5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(193, 86, 43, 0.15);
}

.poppy-estimate__card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  flex-shrink: 0;
}

.poppy-estimate__card-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.poppy-estimate__card-icon .poppy-icon {
  color: var(--poppy-primary, #FF7A2F);
}

.poppy-estimate__card-label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--poppy-secondary, #1A1A1A);
}

.poppy-estimate__cards--details .poppy-estimate__card,
.poppy-estimate__card--text {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0.875rem 1.25rem;
  gap: 0;
  min-height: 0;
}

.poppy-estimate__card-sub {
  font-size: 0.8125rem;
  color: var(--poppy-gray-400, #9A948C);
}

.poppy-estimate__back {
  margin-top: 1rem;
}

.poppy-estimate__success {
  text-align: center;
  padding: 2rem 0;
}

.poppy-estimate__checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--poppy-primary, #FF7A2F);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

@keyframes poppyCheckPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.poppy-estimate__timeline {
  font-weight: 600;
  color: var(--poppy-primary, #C1562B);
}

/* Form Elements */
.poppy-form-group {
  margin-bottom: 1.25rem;
}

.poppy-form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
}

.poppy-form-group input,
.poppy-form-group textarea,
.poppy-form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--poppy-gray-200, #E2DDD6);
  border-radius: var(--poppy-radius-sm, 8px);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.25s;
}

.poppy-form-group input:focus,
.poppy-form-group textarea:focus {
  outline: none;
  border-color: var(--poppy-primary, #C1562B);
}

.poppy-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 576px) {
  .poppy-form-row { grid-template-columns: 1fr; }
  .poppy-estimate__cards { grid-template-columns: 1fr; }
}

.poppy-estimate__radio-group {
  display: flex;
  gap: 1.5rem;
}

.poppy-estimate__radio-group label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 500;
  cursor: pointer;
}

/* Contact Form */
.poppy-contact-form .poppy-btn {
  width: 100%;
}

/* Map */
.poppy-map {
  z-index: 1;
}

.poppy-map-marker {
  background: #C1562B;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Server-rendered layout — hide theme/Elementor duplicate chrome */
body.poppy-layout-ssr .site-header:not(.poppy-header-wrap),
body.poppy-layout-ssr header#site-header:not(.poppy-header-wrap),
body.poppy-layout-ssr .elementor-location-header,
body.poppy-layout-ssr .site-footer:not(.poppy-footer),
body.poppy-layout-ssr .elementor-location-footer {
  display: none !important;
}

body.poppy-layout-ssr .entry-title,
body.poppy-layout-ssr .page-header {
  display: none;
}

body.poppy-layout-ssr .poppy-main .site-main,
body.poppy-layout-ssr .poppy-main .page-content {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.poppy-map-marker-wrapper {
  background: transparent;
  border: none;
}
