/* ab-wycena-form.css — Style formularza wyceny */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

:root {
  --ab-primary: hsl(243, 100%, 67%);
  --ab-secondary: hsl(160, 70%, 45%);
}

/* ===== MODAL OVERLAY (wtyczka sama tworzy modal) ===== */
.ab-modal-overlay {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.ab-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.ab-modal {
  position: relative; width: 100%; max-width: 560px; max-height: 90vh;
  overflow-y: auto; border-radius: 1.5rem;
  background: hsl(240,20%,8%); border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

/* Reset WP styles inside form */
#ab-wycena-app,
#ab-wycena-app * {
  box-sizing: border-box !important;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}
#ab-wycena-app {
  color: white;
}
#ab-wycena-app p {
  margin: 0 !important;
  padding: 0 !important;
}
#ab-wycena-app button {
  line-height: 1.4 !important;
}

/* ===== HEADER FORMULARZA ===== */
.ab-wf-header {
  position: sticky; top: 0; z-index: 10;
  background: hsl(240,20%,8%);
  padding: 2rem 2rem 1rem !important;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ab-wf-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.75rem; border: none; cursor: pointer;
  background: transparent; color: rgba(255,255,255,0.4);
  font-size: 1.25rem; line-height: 1; transition: all 0.2s;
}
.ab-wf-close:hover { color: white; background: rgba(255,255,255,0.1); }

.ab-wf-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.875rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: hsla(243,100%,67%,0.1); color: var(--ab-primary);
  margin-bottom: 0.75rem;
}
.ab-wf-badge-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--ab-primary);
  animation: ab-wf-pulse 2s ease-in-out infinite;
}
@keyframes ab-wf-pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }

.ab-wf-progress-bar {
  width: 100%; height: 6px; border-radius: 9999px;
  background: rgba(255,255,255,0.06); overflow: hidden;
}
.ab-wf-progress-fill {
  height: 100%; border-radius: 9999px;
  background: linear-gradient(90deg, var(--ab-primary), var(--ab-secondary));
  transition: width 0.5s ease-out;
}

/* ===== FORM ELEMENTS ===== */
.ab-wf-body { padding: 1.5rem 2rem !important; }
@media (max-width: 640px) {
  .ab-wf-header { padding: 1rem 1rem 0.75rem !important; }
  .ab-wf-body { padding: 1rem !important; }
  .ab-wf-footer { padding: 1rem !important; }
}

.ab-wf-label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.375rem;
  margin-top: 0.75rem;
}

.ab-wf-input {
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  border-radius: 0.75rem !important;
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  font-size: 0.875rem !important;
  color: white !important;
  outline: none;
  transition: border-color 0.2s;
  font-family: 'Inter', sans-serif;
  resize: none;
  box-sizing: border-box !important;
  margin-top: 0.25rem !important;
}
.ab-wf-input::placeholder { color: rgba(255,255,255,0.2); }
.ab-wf-input:focus { border-color: hsla(243,100%,67%,0.4); }

.ab-wf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 480px) {
  .ab-wf-row { grid-template-columns: 1fr; }
}

.ab-wf-btns {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.ab-wf-choice {
  padding: 0.625rem 1.25rem !important;
  border-radius: 0.75rem !important;
  font-size: 0.75rem !important;
  font-weight: 500;
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.5) !important;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box !important;
}
.ab-wf-choice:hover { border-color: rgba(255,255,255,0.2); }
.ab-wf-choice.active {
  background: hsla(243,100%,67%,0.2) !important;
  border-color: hsla(243,100%,67%,0.4) !important;
  color: hsl(243,100%,67%) !important;
}

.ab-wf-type-btn {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  padding: 1rem !important;
  border-radius: 1rem !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  background: rgba(255,255,255,0.02) !important;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 0.75rem !important;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box !important;
}
.ab-wf-type-btn:hover { border-color: rgba(255,255,255,0.2); }
.ab-wf-type-btn.active {
  border-color: hsla(243,100%,67%,0.5) !important;
  background: hsla(243,100%,67%,0.1) !important;
}

/* ===== FOOTER NAV ===== */
.ab-wf-footer {
  padding: 1.25rem 2rem !important;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.ab-wf-nav-back {
  padding: 0.75rem 1.25rem !important;
  border-radius: 0.75rem !important;
  font-size: 0.875rem !important;
  font-weight: 500;
  color: rgba(255,255,255,0.5) !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box !important;
}
.ab-wf-nav-back:hover { color: white; background: rgba(255,255,255,0.06); }

.ab-wf-nav-next,
.ab-wf-nav-submit {
  padding: 0.75rem 1.5rem !important;
  border-radius: 0.75rem !important;
  font-size: 0.875rem !important;
  font-weight: 600;
  background: hsl(243,100%,67%) !important;
  color: white !important;
  border: none !important;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 8px 25px rgba(99,102,241,0.25);
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-sizing: border-box !important;
}
.ab-wf-nav-next:hover,
.ab-wf-nav-submit:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 35px rgba(99,102,241,0.4);
}
.ab-wf-nav-next:disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ===== SUCCESS STATE ===== */
.ab-wf-success {
  text-align: center; padding: 3rem 2rem;
}
.ab-wf-success-icon {
  font-size: 3rem; margin-bottom: 1rem;
}
.ab-wf-success h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem; font-weight: 800; color: white;
}
.ab-wf-success p {
  font-size: 0.875rem; color: rgba(255,255,255,0.4); margin-top: 0.5rem;
}

/* Step titles */
.ab-wf-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}