/* =========================================================
   SKANSOL — HERO STEP FORM (hf-*)
   Scoped CSS for shortcode output.
   ========================================================= */

.skansol-hf-hero-form {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.skansol-hf-hero-form {
  --hf-primary: #e45225;
  --hf-primary-dark: #e45225;
  --hf-primary-foreground: #ffffff;
  --hf-text: #ffffff;
  --hf-text-muted: rgba(255,255,255,0.8);
  --hf-border: rgba(255,255,255,0.3);
  --hf-bg-glass: rgba(255,255,255,0.10);
  --hf-bg-input: rgba(255,255,255,0.20);
  --hf-radius: 12px;
  --hf-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

/* ---------- FORM CARD ---------- */
.skansol-hf-hero-form .hf-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--hf-bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--hf-radius);
  padding: 32px;
  box-shadow: var(--hf-shadow);
  color: var(--hf-text);
  animation: hfSlideIn .6s ease-out both;
}

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

@keyframes hfFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mascot bubble */
.skansol-hf-hero-form .hf-card__mascot {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 10;
}
.skansol-hf-hero-form .hf-card__mascot-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--hf-primary);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  font-size: 24px;
}
.skansol-hf-hero-form .hf-card__mascot-bubble {
  position: absolute;
  top: 100%; right: 0;
  margin-top: 6px;
  width: 144px;
  background: #fff;
  color: #1f2937;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.skansol-hf-hero-form .hf-card__mascot-bubble::before {
  content: "";
  position: absolute;
  top: -6px; right: 16px;
  width: 12px; height: 12px;
  background: #fff;
  transform: rotate(45deg);
}

/* Header */
.skansol-hf-hero-form .hf-card__header {
  text-align: center;
  margin-bottom: 24px;
}
.skansol-hf-hero-form .hf-card__title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}
.skansol-hf-hero-form .hf-card__subtitle {
  color: var(--hf-text-muted);
  margin: 0;
  font-size: 15px;
}

/* Progress dots */
.skansol-hf-hero-form .hf-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.skansol-hf-hero-form .hf-progress__dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: background-color .3s;
}
.skansol-hf-hero-form .hf-progress__dot--active   { background: var(--hf-primary); }
.skansol-hf-hero-form .hf-progress__dot--complete { background: rgba(228,82,37,0.6); }

/* Steps */
.skansol-hf-hero-form .hf-step {
  animation: hfFadeIn .35s ease-out both;
}
.skansol-hf-hero-form .hf-step[hidden] { display: none; }

/* Customer type cards (Step 1) */
.skansol-hf-hero-form .hf-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.skansol-hf-hero-form .hf-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px !important;
  border-radius: 12px !important;
  border: 2px solid var(--hf-border);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: all .25s;
  font-family: inherit;
  text-transform: none !important;
  letter-spacing: normal !important;
}
.skansol-hf-hero-form .hf-type:hover {
  border-color: var(--hf-primary);
  background: rgba(255,255,255,0.10);
}
.skansol-hf-hero-form .hf-type__icon { width: 48px; height: 48px; color: #fff; transition: color .25s; }
.skansol-hf-hero-form .hf-type:hover .hf-type__icon { color: var(--hf-primary); }
.skansol-hf-hero-form .hf-type__label { font-weight: 600; font-size: 18px; }
.skansol-hf-hero-form .hf-type__desc  { font-size: 13px; color: rgba(255,255,255,0.6); }

/* Form fields */
.skansol-hf-hero-form .hf-field { margin-bottom: 16px; }
.skansol-hf-hero-form .hf-label {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}
.skansol-hf-hero-form .hf-input,
.skansol-hf-hero-form .hf-select,
.skansol-hf-hero-form .hf-textarea {
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--hf-border);
  background: var(--hf-bg-input);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
}
.skansol-hf-hero-form .hf-native-select--hidden {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Custom dropdown (so option hover can be styled consistently) */
.skansol-hf-hero-form .hf-custom-select {
  position: relative;
}
.skansol-hf-hero-form .hf-custom-select__trigger {
  width: 100%;
  height: 40px;
  padding: 8px 38px 8px;
  padding-left: 15px !important;
  border-radius: 8px !important;
  border: 1px solid var(--hf-border);
  background: var(--hf-bg-input);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.skansol-hf-hero-form .hf-custom-select__trigger:focus {
  outline: none;
  border-color: #DC4B1F;
}
.skansol-hf-hero-form .hf-custom-select__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 999;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.25);
  padding: 6px;
  margin: 0;
  max-height: 260px;
  overflow: auto;
  display: none;
}
.skansol-hf-hero-form .hf-custom-select--open .hf-custom-select__list {
  display: block;
}
.skansol-hf-hero-form .hf-custom-select__option {
  width: 100%;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 12px !important;
  line-height: 1.2;
  padding: 10px 10px;
  padding-left: 15px !important;
  border-radius: 8px !important;
  cursor: pointer;
  text-align: left;
}
.skansol-hf-hero-form .hf-custom-select__option:hover,
.skansol-hf-hero-form .hf-custom-select__option:focus {
  background: #222A39;
  color: #fff;
  outline: none;
}
.skansol-hf-hero-form .hf-custom-select__option[aria-selected="true"] {
  background: rgba(228,82,37,0.12);
}
.skansol-hf-hero-form .hf-textarea {
  height: auto;
  min-height: 84px;
  resize: none;
  padding: 10px 12px;
}
.skansol-hf-hero-form .hf-input::placeholder,
.skansol-hf-hero-form .hf-textarea::placeholder { color: rgba(255,255,255,0.5); }
.skansol-hf-hero-form .hf-input:focus,
.skansol-hf-hero-form .hf-select:focus,
.skansol-hf-hero-form .hf-textarea:focus {
  outline: none;
  border-color: var(--hf-primary);
  box-shadow: 0 0 0 2px rgba(22,163,74,0.4);
}
.skansol-hf-hero-form .hf-select option { color: #111827; background: #fff; }

.skansol-hf-hero-form .hf-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Buttons */
.skansol-hf-hero-form .hf-actions {
  display: flex;
  gap: 12px;
  padding-top: 8px;
}
.skansol-hf-hero-form .hf-btn {
  flex: 1;
  height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s;
}
.skansol-hf-hero-form .hf-btn--primary {
  background: linear-gradient(135deg, var(--hf-primary), var(--hf-primary-dark));
  color: var(--hf-primary-foreground);
  box-shadow: 0 6px 16px rgba(22,163,74,0.35);
}
.skansol-hf-hero-form .hf-btn--primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(22,163,74,0.45); }
.skansol-hf-hero-form .hf-btn--primary:disabled { opacity: .5; cursor: not-allowed; }

.skansol-hf-hero-form .hf-btn--ghost {
  background: rgba(255,255,255,0.10);
  border-color: var(--hf-border);
  color: #fff;
}
.skansol-hf-hero-form .hf-btn--ghost:hover { background: rgba(255,255,255,0.20); }

.skansol-hf-hero-form .hf-btn__icon { width: 16px; height: 16px; }

/* Toast */
.skansol-hf-hero-form .hf-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  background: #16a34a;
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  font-size: 14px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.skansol-hf-hero-form .hf-toast--visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 640px) {
  .skansol-hf-hero-form .hf-card { padding: 24px; margin: 0 auto; }
  .skansol-hf-hero-form .hf-grid-2 { grid-template-columns: 1fr; }
  .skansol-hf-hero-form .hf-card__mascot { top: auto; bottom: -12px; right: -8px; }
  .skansol-hf-hero-form .hf-card__mascot-bubble { top: auto; bottom: 100%; margin: 0 0 6px 0; }
  .skansol-hf-hero-form .hf-card__mascot-bubble::before { top: auto; bottom: -6px; }
}

