/* =============================================
   Multi-Step Quote Form Plugin Styles
   Matching design: dark teal left panel,
   white card right, teal/yellow accents
   ============================================= */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700;800&display=swap');

.qfp-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #2b3d3d;
  font-family: 'Nunito Sans', sans-serif;
  margin: 2rem auto;
  max-width: 1100px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}

/* ── LEFT PANEL ── */
.qfp-left {
  flex: 0 0 38%;
  background: #2b3d3d;
  color: #fff;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.qfp-headline {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: #fff;
}

.qfp-left p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

.qfp-cta-link {
  color: #2bc4c4;
  font-weight: 700;
  text-decoration: none;
}
.qfp-cta-link:hover {
  text-decoration: underline;
}

/* ── RIGHT PANEL ── */
.qfp-right {
  flex: 1;
  background: #fff;
  padding: 2.5rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── STEP PROGRESS ── */
.qfp-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 0.5rem;
}

.qfp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.qfp-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #aaa;
  background: #fff;
  transition: all 0.3s ease;
}

.qfp-step.active .qfp-step-circle,
.qfp-step.completed .qfp-step-circle {
  background: #2bc4c4;
  border-color: #2bc4c4;
  color: #fff;
}

.qfp-step-label {
  font-size: 0.7rem;
  text-align: center;
  color: #aaa;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.qfp-step.active .qfp-step-label,
.qfp-step.completed .qfp-step-label {
  color: #2bc4c4;
}

.qfp-step-line {
  flex: 1;
  height: 2px;
  background: #ddd;
  margin-top: 17px; /* align with circle center */
  transition: background 0.3s ease;
}

.qfp-step-line.completed {
  background: #2bc4c4;
}

/* ── PANELS ── */
.qfp-panel {
  display: none;
  animation: qfpFadeIn 0.3s ease;
}
.qfp-panel.active {
  display: block;
}

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

/* ── FORM ELEMENTS ── */
.qfp-question {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.qfp-field {
  margin-bottom: 1.25rem;
}

.qfp-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.qfp-input,
.qfp-select,
.qfp-textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: 'Nunito Sans', sans-serif;
  color: #333;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s;
  outline: none;
}

.qfp-input:focus,
.qfp-select:focus,
.qfp-textarea:focus {
  border-color: #2bc4c4;
  box-shadow: 0 0 0 3px rgba(43,196,196,0.12);
}

.qfp-textarea {
  resize: vertical;
  min-height: 100px;
}

.qfp-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ── RADIO & CHECKBOX ── */
.qfp-radio-group {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.qfp-radio-label,
.qfp-check-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
}

.qfp-radio-label input[type="radio"],
.qfp-check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2bc4c4;
  cursor: pointer;
  flex-shrink: 0;
}

.qfp-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.5rem;
}

/* ── BUTTONS ── */
.qfp-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.qfp-btn {
  flex: 1;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Nunito Sans', sans-serif;
}

.qfp-btn-prev {
  background: #d4d4d4;
  color: #777;
  border: 2px solid #ccc;
}
.qfp-btn-prev:hover:not(:disabled) {
  background: #c0c0c0;
}
.qfp-btn-prev:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.qfp-btn-next,
.qfp-btn-send {
  background: #f0a500;
  color: #fff;
  border: 2px solid #f0a500;
}
.qfp-btn-next:hover,
.qfp-btn-send:hover {
  background: #d99200;
  border-color: #d99200;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(240,165,0,0.35);
}

.qfp-btn-send:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ── SUCCESS & ERROR ── */
.qfp-success {
  text-align: center;
  padding: 2rem 1rem;
}

.qfp-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #2bc4c4;
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.qfp-success h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 0.5rem;
}

.qfp-success p {
  color: #666;
  font-size: 0.95rem;
}

.qfp-error {
  background: #fff0f0;
  border: 1px solid #f5c6c6;
  color: #c0392b;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  margin-top: 0.5rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .qfp-wrap {
    flex-direction: column;
  }

  .qfp-left {
    flex: none;
    padding: 2rem 1.5rem;
  }

  .qfp-right {
    padding: 1.5rem;
  }

  .qfp-headline {
    font-size: 1.5rem;
  }

  .qfp-field-row {
    grid-template-columns: 1fr;
  }

  .qfp-checkbox-grid {
    grid-template-columns: 1fr;
  }

  .qfp-step-label {
    display: none;
  }

  .qfp-buttons {
    flex-direction: column-reverse;
  }
}
