/* Popup modal overlay */
.pf-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pf-overlay.pf-visible {
  opacity: 1;
}

/* Modal container */
.pf-modal {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px;
  position: relative;
  transform: translateY(12px);
  transition: transform 0.2s ease;
}

.pf-overlay.pf-visible .pf-modal {
  transform: translateY(0);
}

/* Close button */
.pf-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  padding: 4px;
  line-height: 1;
  font-size: 20px;
  transition: color 0.15s;
}

.pf-close:hover {
  color: #fff;
}

/* Step header */
.pf-header {
  margin-bottom: 24px;
  padding-right: 24px;
}

.pf-step-indicator {
  font-size: 12px;
  font-weight: 600;
  color: #ea580c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.pf-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.3;
}

.pf-header p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.5;
}

/* Form fields */
.pf-field {
  margin-bottom: 16px;
}

.pf-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}

.pf-field input,
.pf-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  color: #fff;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.15s;
}

.pf-field input::placeholder,
.pf-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.pf-field input:focus,
.pf-field textarea:focus {
  border-color: #ea580c;
}

.pf-field input.pf-error,
.pf-field textarea.pf-error {
  border-color: #ef4444;
}

.pf-field .pf-error-msg {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
  display: none;
}

.pf-field .pf-error-msg.pf-show {
  display: block;
}

.pf-field textarea {
  resize: vertical;
  min-height: 90px;
}

/* Google autocomplete dropdown styling */
.pac-container {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  font-family: inherit;
  margin-top: 2px;
  z-index: 10000;
}

.pac-item {
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.pac-item:first-child {
  border-top: none;
}

.pac-item:hover,
.pac-item-selected {
  background: rgba(234, 88, 12, 0.15);
}

.pac-item-query {
  color: #fff;
  font-size: 14px;
}

.pac-icon {
  display: none;
}

/* CTA button */
.pf-btn {
  width: 100%;
  background: #ea580c;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 4px;
  font-family: inherit;
}

.pf-btn:hover:not(:disabled) {
  background: #c2410c;
}

.pf-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Back link */
.pf-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
  font-family: inherit;
  transition: color 0.15s;
}

.pf-back:hover {
  color: #fff;
}

/* Progress dots */
.pf-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}

.pf-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.2s;
}

.pf-dot.pf-active {
  background: #ea580c;
}

.pf-dot.pf-done {
  background: rgba(234, 88, 12, 0.5);
}

/* Success state */
.pf-success {
  text-align: center;
  padding: 16px 0;
}

.pf-success-icon {
  width: 56px;
  height: 56px;
  background: rgba(34, 197, 94, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.pf-success-icon svg {
  color: #22c55e;
}

.pf-success h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}

.pf-success p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.6;
}

/* Trust badge below form */
.pf-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.pf-trust svg {
  flex-shrink: 0;
}

/* Scrollbar styling inside modal */
.pf-modal::-webkit-scrollbar {
  width: 4px;
}

.pf-modal::-webkit-scrollbar-track {
  background: transparent;
}

.pf-modal::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

@media (max-width: 480px) {
  .pf-modal {
    padding: 24px 20px;
    border-radius: 12px;
  }

  .pf-header h2 {
    font-size: 20px;
  }
}
