/* =====================================================================
   Anka Prisberegner - Frontend styles
   All rules scoped under .anka-pb to avoid bleeding into the host theme.
   ===================================================================== */
.anka-pb {
  --pink: #FF2CA8;
  --pink-light: #ff5cba;
  --white: #FFFFFF;
  --grey: #54595F;
  --grey-light: #888c91;
  --bg-card: #0a0a0a;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;

  font-family: var(--font-body);
  color: var(--white);
  background: transparent;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px;
  position: relative;
}
.anka-pb *, .anka-pb *::before, .anka-pb *::after { box-sizing: border-box; }

/* Container card */
.anka-pb__card {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 36px;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
              0 0 60px rgba(255, 44, 168, 0.08);
}
@media (max-width: 600px) {
  .anka-pb { padding: 16px 0; }
  .anka-pb__card { padding: 22px 20px; min-height: 600px; border-radius: 16px; }
}

/* Header */
.anka-pb__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.anka-pb__logo { display: flex; align-items: baseline; gap: 1px; }
.anka-pb__logo-letter {
  color: var(--pink);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -1px;
  text-shadow: 0 0 14px rgba(255, 44, 168, 0.6);
}
.anka-pb__logo-sub {
  color: var(--white);
  font-size: 8px;
  letter-spacing: 2px;
  font-weight: 700;
  margin-right: 2px;
}
.anka-pb__step-indicator {
  font-size: 11.5px;
  color: var(--grey-light);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Progress bar */
.anka-pb__progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 22px;
}
.anka-pb__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--pink-light));
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(255, 44, 168, 0.7);
  border-radius: 3px;
}

/* Step container */
.anka-pb__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.anka-pb__title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: var(--white);
}
.anka-pb__subtitle {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--grey);
  margin: 0 0 22px;
  line-height: 1.45;
}

/* Summary chips */
.anka-pb__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.anka-pb__chip {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(255, 44, 168, 0.12);
  border: 1px solid rgba(255, 44, 168, 0.3);
  color: var(--pink-light);
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
  font-family: var(--font-body);
}

/* Option cards (regular choice) */
.anka-pb__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.anka-pb__option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
  color: var(--white);
  font-family: inherit;
  opacity: 0;
  animation: anka-pb-slide-in 0.35s ease forwards;
}
.anka-pb__option:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 44, 168, 0.3);
}
.anka-pb__option.is-selected {
  background: linear-gradient(135deg, rgba(255, 44, 168, 0.18), rgba(255, 44, 168, 0.05));
  border-color: var(--pink);
  box-shadow: 0 0 20px rgba(255, 44, 168, 0.25);
}
.anka-pb__option-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(255, 44, 168, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  flex-shrink: 0;
}
.anka-pb__option.is-selected .anka-pb__option-icon {
  background: rgba(255, 44, 168, 0.25);
  box-shadow: 0 0 14px rgba(255, 44, 168, 0.4);
}
.anka-pb__option-text { flex: 1; min-width: 0; }
.anka-pb__option-label {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--white);
}
.anka-pb__option-desc {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--grey-light);
  line-height: 1.3;
}
.anka-pb__option-arrow {
  color: #444;
  font-size: 20px;
  transition: all 0.2s;
}
.anka-pb__option:hover .anka-pb__option-arrow { color: #888; transform: translateX(2px); }
.anka-pb__option.is-selected .anka-pb__option-arrow { color: var(--pink); }

/* Yes/No - square cards */
.anka-pb__yesno {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex: 0 0 auto;
  align-self: flex-start;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}
.anka-pb__yesno .anka-pb__option {
  flex-direction: column;
  text-align: center;
  padding: 0;
  gap: 14px;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}
.anka-pb__yesno .anka-pb__option-text { padding: 0; margin: 0; flex: 0 0 auto; }
.anka-pb__yesno .anka-pb__option-arrow { display: none; }
.anka-pb__yesno .anka-pb__option-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 44, 168, 0.12);
  border: 2px solid rgba(255, 44, 168, 0.3);
}
.anka-pb__yesno .anka-pb__option:hover .anka-pb__option-icon {
  background: rgba(255, 44, 168, 0.2);
  box-shadow: 0 0 20px rgba(255, 44, 168, 0.3);
}
.anka-pb__yesno .anka-pb__option.is-selected .anka-pb__option-icon {
  background: rgba(255, 44, 168, 0.25);
  border-color: var(--pink);
  box-shadow: 0 0 16px rgba(255, 44, 168, 0.4);
}
.anka-pb__yesno .anka-pb__option-label {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 0;
}

/* Form inputs */
.anka-pb__form-fields {
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}
.anka-pb__input {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--white);
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
  font-family: var(--font-body);
  width: 100%;
}
.anka-pb__input::placeholder { color: #666; }
.anka-pb__input:focus {
  border-color: var(--pink);
  background: rgba(255, 44, 168, 0.05);
  box-shadow: 0 0 0 3px rgba(255, 44, 168, 0.1);
}

.anka-pb__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 11px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12.5px;
  line-height: 1.45;
  margin: 4px 0;
}
.anka-pb__checkbox:hover { background: rgba(255, 255, 255, 0.06); }
.anka-pb__checkbox.is-checked {
  background: rgba(255, 44, 168, 0.08);
  border-color: rgba(255, 44, 168, 0.4);
}
.anka-pb__checkbox-mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  margin-top: 1px;
}
.anka-pb__checkbox.is-checked .anka-pb__checkbox-mark {
  background: var(--pink);
  border-color: var(--pink);
}
.anka-pb__checkbox-mark svg { display: none; }
.anka-pb__checkbox.is-checked .anka-pb__checkbox-mark svg { display: block; }
.anka-pb__checkbox-text { flex: 1; color: #ccc; }
.anka-pb__checkbox-text strong {
  display: block;
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 13px;
  margin-bottom: 2px;
}
.anka-pb__checkbox-text small {
  display: block;
  color: var(--grey);
  font-size: 11px;
  line-height: 1.4;
}
.anka-pb__form-note {
  font-size: 11px;
  color: var(--grey);
  line-height: 1.5;
  margin-top: 4px;
  padding: 0 2px;
}
.anka-pb__form-note a,
.anka-pb__form-note a:link,
.anka-pb__form-note a:visited,
.anka-pb__form-note a:hover,
.anka-pb__form-note a:active {
  color: var(--pink);
  text-decoration: none;
  font-size: inherit !important;
  font-weight: inherit !important;
  font-family: inherit !important;
  line-height: inherit !important;
}
.anka-pb__form-note a:hover { text-decoration: underline; }

/* Nav */
.anka-pb__nav {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-shrink: 0;
}
.anka-pb__btn-back {
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
}
.anka-pb__btn-back:hover { background: rgba(255, 255, 255, 0.1); }

.anka-pb__btn-submit {
  flex: 1;
  padding: 14px;
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  border: none;
  color: var(--white);
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 44, 168, 0.4);
  transition: all 0.2s;
  letter-spacing: 0.2px;
}
.anka-pb__btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 44, 168, 0.5);
}
.anka-pb__btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Loader */
.anka-pb__loader {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: anka-pb-spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

/* Success screen */
.anka-pb__success {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: anka-pb-fade-in 0.5s ease;
  padding: 20px 10px;
}
.anka-pb__success-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 0 50px rgba(255, 44, 168, 0.5);
  animation: anka-pb-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.anka-pb__success h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
  color: var(--white);
}
.anka-pb__success p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--grey-light);
  margin: 0 0 20px;
  line-height: 1.5;
  max-width: 420px;
}
.anka-pb__success-info {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 22px;
  margin-bottom: 24px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--grey-light);
}
.anka-pb__success-info strong {
  color: var(--pink);
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

/* Thankyou page (uses [anka_prisberegner_done] shortcode) */
.anka-pb--done .anka-pb__card {
  min-height: 0;
  padding: 48px 36px;
}
.anka-pb__done-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 8px 0 18px;
}
.anka-pb__btn-done {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.anka-pb__btn-done--primary,
.anka-pb__btn-done--primary:link,
.anka-pb__btn-done--primary:visited,
.anka-pb__btn-done--primary:hover,
.anka-pb__btn-done--primary:focus,
.anka-pb__btn-done--primary:active {
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  color: #ffffff !important;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(255, 44, 168, 0.4);
}
.anka-pb__btn-done--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 44, 168, 0.55);
}
.anka-pb__btn-done--secondary,
.anka-pb__btn-done--secondary:link,
.anka-pb__btn-done--secondary:visited,
.anka-pb__btn-done--secondary:hover,
.anka-pb__btn-done--secondary:focus,
.anka-pb__btn-done--secondary:active {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  text-decoration: none;
}
.anka-pb__btn-done--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}
.anka-pb__done-help {
  font-size: 12px !important;
  color: var(--grey) !important;
  margin-top: 14px !important;
  max-width: 420px;
}
@media (max-width: 480px) {
  .anka-pb__done-buttons { flex-direction: column; align-items: stretch; }
  .anka-pb__btn-done { width: 100%; }
}

/* Error message */
.anka-pb__error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  margin-bottom: 12px;
  font-family: var(--font-body);
}

/* Animations */
@keyframes anka-pb-slide-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes anka-pb-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes anka-pb-pop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}
@keyframes anka-pb-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
@keyframes anka-pb-spin {
  to { transform: rotate(360deg); }
}
.anka-pb__shake { animation: anka-pb-shake 0.4s; }
