/* =============================================================
   Quotes Pro – Step Form Styles
   Covers: .qp-wrap, .qp-step, .qp-option, .qp-type-card, etc.
   ============================================================= */

/* ── Wrapper ────────────────────────────────────────────────── */
#medicareModalForm .qp-wrap {
  background: #fff;
  border-radius: 20px;
  padding: 36px 40px 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .10);
}

/* ── Progress bar ────────────────────────────────────────────── */
.qp-progress-track {
  height: 6px;
  background: #e8e8e8;
  border-radius: 10px;
  margin-bottom: 30px;
  overflow: hidden;
}
.qp-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(200deg, #0085ff .33%, #9340fa 85.46%);
  border-radius: 10px;
  transition: width 0.45s ease;
}

/* ── Step animation ──────────────────────────────────────────── */
.qp-step { display: block; }
.qp-anim {
  animation: qpFadeUp .38s ease both;
}
@keyframes qpFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ── Titles ──────────────────────────────────────────────────── */
.qp-title {
  font-size: 22px;
  line-height: 32px;
  font-weight: 700;
  color: #131238;
  margin-bottom: 6px;
}
.qp-subtitle {
  font-size: 15px;
  color: #5d5d5d;
  margin-bottom: 24px;
}

/* ── ZIP step ────────────────────────────────────────────────── */
.qp-zip-row {
  display: flex;
  align-items: center;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  padding: 4px 16px;
  transition: border-color .3s;
  margin-bottom: 8px;
}
.qp-zip-row:focus-within { border-color: #0085ff; }
.qp-zip-icon {
  color: #0085ff;
  font-size: 18px;
  margin-right: 12px;
  flex-shrink: 0;
}
.qp-zip-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 17px;
  padding: 14px 0;
  color: #131238;
  background: transparent;
  font-family: inherit;
  letter-spacing: .05em;
}
.qp-zip-input::placeholder { color: #aaa; }

.qp-zip-error {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e53e3e;
  font-size: 13px;
  margin-bottom: 10px;
}

.qp-btn-next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(200deg, #0085ff .33%, #9340fa 85.46%);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
  font-family: 'Source Sans Pro', sans-serif;
}
.qp-btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,133,255,.35);
}

.qp-secure {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin-top: 14px;
  margin-bottom: 0;
}
.qp-secure i { margin-right: 5px; color: #4bc271; }

/* ── Insurance type picker grid ──────────────────────────────── */
.qp-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 6px;
}
@media (max-width: 480px) {
  .qp-type-grid { grid-template-columns: repeat(2, 1fr); }
}

.qp-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 12px 16px;
  border: 2px solid #e8e8e8;
  border-radius: 14px;
  cursor: pointer;
  transition: all .28s;
  text-align: center;
  background: #fafafa;
}
.qp-type-card:hover {
  border-color: #0085ff;
  background: #f0f7ff;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,133,255,.15);
}
.qp-type-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(200deg, #0085ff .33%, #9340fa 85.46%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.qp-type-icon i { color: #fff; font-size: 20px; }
.qp-type-card p {
  font-size: 14px;
  font-weight: 700;
  color: #131238;
  margin: 0;
  line-height: 1.3;
}

/* ── Option cards ────────────────────────────────────────────── */
.qp-options { display: flex; flex-direction: column; gap: 12px; }

.qp-option {
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all .28s;
  background: #fafafa;
}
.qp-option:hover {
  border-color: #0085ff;
  background: #f0f7ff;
  transform: translateY(-1px);
}
.qp-option.selected {
  border-color: #0085ff;
  background: #f0f7ff;
  box-shadow: 0 4px 14px rgba(0,133,255,.18);
}

.qp-option-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.qp-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #d0d0d0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s;
}
.qp-check i { color: #fff; font-size: 11px; opacity: 0; transition: opacity .2s; }
.qp-option.selected .qp-check {
  background: linear-gradient(200deg, #0085ff, #9340fa);
  border-color: transparent;
}
.qp-option.selected .qp-check i { opacity: 1; }

.qp-opt-label {
  font-size: 16px;
  font-weight: 600;
  color: #131238;
  margin: 0;
  line-height: 1.3;
}
.qp-opt-sub {
  font-size: 13px;
  color: #5d5d5d;
  margin: 2px 0 0;
  line-height: 1.3;
}

/* ── Success step ────────────────────────────────────────────── */
.qp-success {
  text-align: center;
  padding: 20px 10px 10px;
}
.qp-success-icon {
  font-size: 56px;
  color: #4bc271;
  margin-bottom: 12px;
  animation: qpBounce .6s ease;
}
@keyframes qpBounce {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1);  opacity: 1; }
}
.qp-success h2 {
  color: #0085ff;
  font-size: 28px;
  margin-bottom: 8px;
}
.qp-success-sub {
  font-size: 17px;
  font-weight: 600;
  color: #131238;
  margin-bottom: 8px;
}
.qp-success p { font-size: 15px; color: #5d5d5d; }

.qp-phone-ring {
  font-size: 52px;
  color: #0085ff;
  margin: 22px 0 12px;
  display: inline-block;
  animation: qpRing 1.8s infinite;
}
@keyframes qpRing {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(-12deg); }
  20%, 40% { transform: rotate(12deg); }
  50%       { transform: rotate(0deg); }
}

.qp-success h4 {
  font-size: 18px;
  color: #131238;
  margin-bottom: 16px;
}

.qp-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(200deg, #0085ff .33%, #9340fa 85.46%);
  color: #fff !important;
  text-decoration: none !important;
  padding: 16px 40px;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 700;
  font-family: 'Source Sans Pro', sans-serif;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 8px 24px rgba(0,133,255,.3);
}
.qp-call-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,133,255,.4);
}

.qp-success-note {
  font-size: 13px;
  color: #999;
  margin-top: 18px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .qp-wrap { padding: 24px 20px 28px; }
  .qp-title { font-size: 19px; }
  .qp-call-btn { font-size: 17px; padding: 14px 28px; }
  .qp-type-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .qp-type-card { padding: 18px 10px 14px; }
}

/* ── Legacy form styles (kept for backward-compat) ───────────── */
/* Keep any existing .form-step, .form-option, .call-button etc.
   from the original step-form-styles.css below if needed        */

.form-step { display: none; }
.form-step.active { display: block; animation: qpFadeUp 0.5s; }

.progress-bar-custom {
  height: 6px;
  background: #e8e8e8;
  border-radius: 10px;
  margin-bottom: 30px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(200deg, #0085ff .33%, #9340fa 85.46%);
  width: 0;
  transition: width 0.4s ease;
}

.form-option {
  border: 2px solid #e8e8e8;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}
.form-option:hover { border-color: #0085ff; background: #f8f9ff; transform: translateY(-2px); }
.form-option.selected {
  border-color: #0085ff;
  background: #f0f7ff;
  box-shadow: 0 5px 15px rgba(0,133,255,0.2);
}
.form-option input[type="radio"] { display: none; }
.form-option h5 { margin-bottom: 5px; color: #131238; font-weight: 600; }

.congratulations { text-align: center; padding: 40px 20px; }
.congratulations h2 { color: #0085ff; margin-bottom: 20px; }
.phone-icon { font-size: 60px; color: #0085ff; margin: 30px 0; animation: qpRing 2s infinite; }

.call-button {
  display: inline-block;
  background: linear-gradient(200deg, #0085ff .33%, #9340fa 85.46%);
  color: #fff;
  padding: 18px 50px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 20px;
  margin-top: 20px;
  transition: all 0.3s;
}
.call-button:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,133,255,0.4);
  text-decoration: none;
}

.faq-item {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s;
}
.faq-item:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.faq-question {
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  color: #131238;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
}
.faq-question:after { content: '+'; font-size: 24px; font-weight: 600; color: #0085ff; transition: transform 0.3s; }
.faq-question.active:after { content: '−'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 25px; }
.faq-answer.active { max-height: 500px; padding: 0 25px 20px; }
.faq-answer p { margin: 0; line-height: 1.8; }

.modal-body { max-height: 85vh; overflow-y: auto; }
.modal-header { border-bottom: 1px solid #e8e8e8; padding: 20px 30px; }
.modal-header h5 { color: #131238; font-weight: 700; }

/* quote-form-wrapper used on service page heroes */
.quote-form-wrapper {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
  .quote-form-wrapper { padding: 25px; }
}