/* Google font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

.sdpof-wrapper {
  font-family: 'Poppins', Arial, sans-serif !important;
  display: flex;
  justify-content: center;
  padding: 24px 12px;
  background: #ffffff !important;
}

.sdpof-card {
  width: 100%;
  max-width: 720px;
  background: #ffffff !important;
  border-radius: 20px !important;
  padding: 20px 18px 22px;
}

/* Header */
.sdpof-header {
  margin-bottom: 16px;
  border-bottom: 1px solid #000000 !important;
  padding-bottom: 10px;
}

.sdpof-title {
  font-size: 20px !important;
  margin: 0 0 4px;
  font-weight: 600 !important;
}

.sdpof-subtitle {
  margin: 0;
  font-size: 12px !important;
  color: #555555 !important;
}

/* Progress */
.sdpof-progress {
  margin-bottom: 16px;
}

.sdpof-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.sdpof-progress-label {
  font-size: 11px !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #333333 !important;
}

.sdpof-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: #f3f3f3 !important;
  overflow: hidden;
  position: relative;
}

.sdpof-progress-bar-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #26a65b !important;
  transition: width 0.25s ease;
}

/* Loading */
.sdpof-step-loading {
  display: none;
  text-align: center;
  margin-bottom: 8px;
}

.sdpof-step-loading.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sdpof-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #e3e3e3;
  border-top-color: #26a65b;
  border-radius: 50%;
  animation: sdpof-spin 0.75s linear infinite;
}

@keyframes sdpof-spin {
  to { transform: rotate(360deg); }
}

/* Form */
.sdpof-form { margin: 0; }

/* Steps */
.sdpof-step { display: none; }
.sdpof-step-active { display: block; }

.sdpof-step-title {
  font-size: 16px !important;
  margin: 0 0 8px;
  font-weight: 500 !important;
}

.sdpof-step-help {
  margin: 0 0 10px;
  font-size: 12px !important;
  color: #666666 !important;
}

/* Fields */
.sdpof-field-group { margin-bottom: 12px; }

.sdpof-label {
  display: block;
  font-size: 12px !important;
  margin-bottom: 4px;
  color: #111111 !important;
}

.sdpof-label span { color: #d0021b !important; }

.sdpof-input,
.sdpof-textarea {
  width: 100% !important;
  font-family: 'Poppins', Arial, sans-serif !important;
  font-size: 1rem !important;
  border-radius: 2px !important;
  border: 1px solid #666 !important;
  padding: 11px 14px !important;
  background: #ffffff !important;
  outline: none !important;
  box-shadow: none !important;
}

.sdpof-input:focus,
.sdpof-textarea:focus {
  border-color: #26a65b !important;
}

.sdpof-textarea { resize: vertical !important; }

/* Normalize iOS date & time inputs */
.sdpof-input[type="date"],
.sdpof-input[type="time"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  line-height: normal !important;
  height: 48px !important;
  padding: 0 14px !important;
  font-size: 16px !important;
}

.sdpof-input[type="date"]::-webkit-date-and-time-value,
.sdpof-input[type="time"]::-webkit-date-and-time-value {
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

.sdpof-input[type="date"]::-webkit-calendar-picker-indicator,
.sdpof-input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 0.8;
  padding: 0 !important;
  margin: 0 !important;
  height: 20px !important;
  width: 20px !important;
}

/* Option grids */
.sdpof-option-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-top: 6px;
}

@media (max-width: 520px) {
  .sdpof-option-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Buttons */
.sdpof-btn-option,
.sdpof-btn {
  font-family: 'Poppins', Arial, sans-serif !important;
  border-radius: 2px !important;
  border: 1px solid #000000 !important;
  background: #ffffff !important;
  color: #000000 !important;
  font-size: 12px !important;
  padding: 15px 15px !important;
  cursor: pointer !important;
  outline: none !important;
  box-shadow: none !important;
  transition: background 0.16s ease, transform 0.12s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.sdpof-btn-option:hover,
.sdpof-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) !important;
}

/* Selected */
.sdpof-btn-option.is-selected {
  border-color: #26a65b !important;
  background: rgba(38,166,91,0.15) !important;
  box-shadow: 0 0 0 1px rgba(38,166,91,0.4) !important;
  animation: sdpof-pulse 0.2s ease-out;
}

@keyframes sdpof-pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* Small price badge on buttons */
.sdpof-badge {
  display: block;
  font-size: 10px !important;
  color: #666 !important;
  margin-top: 3px;
}

/* Nav */
.sdpof-nav {
  display: flex;
  gap: 10px;
  margin-top: 50px;
}

.sdpof-btn-back { flex: 1 1 50%; }
.sdpof-btn-next { flex: 1 1 50%; }
.sdpof-btn-submit {
  flex: 1 1 100%;
  display: none;
}

.sdpof-btn {
  text-align: center !important;
  text-transform: none !important;
}

.sdpof-btn-next,
.sdpof-btn-submit,
.sdpof-btn-done {
  background: #000000 !important;
  color: #ffffff !important;
}

.sdpof-btn-next:hover,
.sdpof-btn-submit:hover,
.sdpof-btn-done:hover {
  background: #26a65b !important;
  border-color: #26a65b !important;
  color: #ffffff !important;
}

.sdpof-btn-back[disabled] {
  opacity: 0.35 !important;
  cursor: default !important;
  box-shadow: none !important;
}

/* Error message */
.sdpof-error-msg {
  margin-top: 8px;
  font-size: 11px !important;
  color: #d0021b !important;
  padding: 6px 9px;
  border-radius: 8px;
  background: #ffe6e9 !important;
  border: 1px solid #d0021b !important;
}

/* Success */
.sdpof-success { padding-top: 8px; }
.sdpof-success-inner { text-align: center; }

.sdpof-success-icon {
  text-align: center !important;
  margin-bottom: 10px !important;
  min-height: 150px !important;
}

.sdpof-success-icon lottie-player {
  display: block !important;
  width: 140px !important;
  height: 140px !important;
  margin: 0 auto 12px !important;
}

.sdpof-success-title {
  font-size: 18px !important;
  margin: 0 0 6px;
}

.sdpof-success-text {
  font-size: 13px !important;
  margin: 0 0 14px;
  color: #444444 !important;
}

.sdpof-btn-done {
  margin-top: 6px;
  width: 100%;
}

/* Mobile */
@media (max-width: 480px) {
  .sdpof-card {
    padding: 16px 14px 18px;
  }

  .sdpof-title {
    font-size: 18px !important;
  }
}