/* Öğretmen talep wizard */
.ogretmen-wizard {
  --ow-accent: var(--color-primary, #03a87c);
  --ow-border: #e3efe9;
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.ogretmen-wizard__progress {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.ogretmen-wizard__step-dot {
  flex: 1;
  min-width: 4rem;
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
  transition: background 0.2s;
}

.ogretmen-wizard__step-dot.is-active,
.ogretmen-wizard__step-dot.is-done {
  background: var(--ow-accent);
}

.ogretmen-wizard__panel {
  display: none;
  background: #fff;
  border: 1px solid var(--ow-border);
  border-radius: calc(var(--radius, 0.5rem) * 2);
  padding: 1.5rem;
}

.ogretmen-wizard__panel.is-active {
  display: block;
}

.ogretmen-wizard__actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.ogretmen-wizard__grade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
  gap: 0.75rem;
}

.ogretmen-wizard__grade-btn {
  border: 2px solid var(--ow-border);
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.ogretmen-wizard__grade-btn.is-selected {
  border-color: var(--ow-accent);
  background: #f4faf7;
  color: var(--ow-accent);
}

.ogretmen-wizard__tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ogretmen-wizard__tab {
  border: 1px solid var(--ow-border);
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.ogretmen-wizard__tab.is-active {
  background: var(--ow-accent);
  border-color: var(--ow-accent);
  color: #fff;
}

.ogretmen-wizard__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ogretmen-wizard__filters input[type="search"] {
  flex: 1;
  min-width: 12rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--ow-border);
  border-radius: 0.375rem;
}

.ogretmen-wizard__filters--story select {
  flex: 1;
  min-width: 10rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--ow-border);
  border-radius: 0.375rem;
  background: #fff;
}

.ogretmen-wizard__product-unite {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  line-height: 1.2;
  color: #6c757d;
}

.ogretmen-wizard__catalog {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-height: 420px;
  overflow-y: auto;
  padding: 0.25rem;
}

.ogretmen-wizard__product {
  border: 1px solid var(--ow-border);
  border-radius: 0.5rem;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.85rem;
}

.ogretmen-wizard__product img {
  max-width: 100%;
  height: auto;
  margin-bottom: 0.5rem;
}

.ogretmen-wizard__product-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.ogretmen-wizard__list-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0.65rem;
  border: 1px solid var(--ow-border);
  border-radius: 0.375rem;
  background: #fff;
  min-width: 0;
}

.ogretmen-wizard__list-item-main {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

.ogretmen-wizard__list-item-thumb {
  width: 40px;
  height: 56px;
  object-fit: cover;
  border-radius: 0.25rem;
  flex-shrink: 0;
  border: 1px solid var(--ow-border);
  background: #fff;
}

.ogretmen-wizard__list-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 56px;
  border-radius: 0.25rem;
  flex-shrink: 0;
  border: 1px solid var(--ow-border);
  background: #f4faf7;
  color: var(--ow-accent);
}

.ogretmen-wizard__list-item-title {
  word-break: break-word;
  font-size: 0.85rem;
  line-height: 1.35;
}

.ogretmen-wizard__list-item .btn {
  width: 100%;
  min-height: 36px;
  padding: 0.35rem 0.5rem;
  font-size: 0.78rem;
}

.ow-list-preview,
.ogretmen-wizard__list-group-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .ow-list-preview,
  .ogretmen-wizard__list-group-items {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ogretmen-wizard__list-group + .ogretmen-wizard__list-group {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ow-border);
}

.ogretmen-wizard__list-group-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a2e28;
}

.ogretmen-wizard__list-group-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ow-accent);
  background: #f4faf7;
  border: 1px solid var(--ow-border);
  border-radius: 2rem;
  padding: 0.1rem 0.55rem;
}

.ogretmen-wizard__list-group-count:empty {
  display: none;
}

.ogretmen-wizard__list-group-empty {
  padding: 0.5rem 0 0.25rem;
}

.ogretmen-wizard__list-item.is-new {
  animation: ow-list-enter 0.4s ease-out;
}

@keyframes ow-list-enter {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.ogretmen-wizard__list-box {
  margin-top: 1.5rem;
  border: 2px dashed var(--ow-border);
  border-radius: 0.5rem;
  padding: 1rem;
  background: #f8faf9;
  transition: border-color 0.3s, box-shadow 0.3s;
  scroll-margin-bottom: 5rem;
}

.ogretmen-wizard__list-box.has-items {
  border-style: solid;
  border-color: var(--ow-accent);
  box-shadow: 0 2px 8px rgba(3, 168, 124, 0.08);
}

.ogretmen-wizard__list-box.is-highlight {
  box-shadow: 0 0 0 3px rgba(3, 168, 124, 0.25);
}

.ogretmen-wizard__list-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.ogretmen-wizard__list-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.ogretmen-wizard__list-actions .ow-btn-clear-list {
  min-height: 36px;
  flex-shrink: 0;
  cursor: pointer;
}

.ogretmen-wizard__list-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ow-accent);
  background: #f4faf7;
  border: 1px solid var(--ow-border);
  border-radius: 2rem;
  padding: 0.15rem 0.65rem;
  white-space: nowrap;
}

.ogretmen-wizard__list-count:empty {
  display: none;
}

.ogretmen-wizard__form .form-label {
  font-weight: 600;
}

.ogretmen-wizard__status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.375rem;
  display: none;
}

.ogretmen-wizard__status.is-error {
  display: block;
  background: #fde8e8;
  color: #9b1c1c;
}

.ogretmen-wizard__status.is-success {
  display: block;
  background: #def7ec;
  color: #03543f;
}

.ogretmen-wizard__summary-meta {
  background: #f8faf9;
  border: 1px solid var(--ow-border);
  border-radius: 0.5rem;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}

.ogretmen-wizard__summary-intro {
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.25rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(3, 168, 124, 0.22);
  background: linear-gradient(135deg, #f4faf7 0%, #fff 100%);
  box-shadow: 0 2px 10px rgba(3, 168, 124, 0.06);
}

.ogretmen-wizard__summary-greeting {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: #2d3748;
}

.ogretmen-wizard__summary-greeting strong {
  color: var(--ow-accent);
  font-weight: 700;
}

.ogretmen-wizard__summary-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.35rem 0;
  font-size: 0.9rem;
}

.ogretmen-wizard__summary-meta-row + .ogretmen-wizard__summary-meta-row {
  border-top: 1px solid var(--ow-border);
}

.ogretmen-wizard__summary-meta-row span {
  color: #6c757d;
  flex-shrink: 0;
}

.ogretmen-wizard__summary-meta-row strong {
  text-align: right;
  font-weight: 600;
  word-break: break-word;
}

.ogretmen-wizard__summary-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.ogretmen-wizard__summary-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ow-accent);
  background: #f4faf7;
  border: 1px solid var(--ow-border);
  border-radius: 2rem;
  padding: 0.1rem 0.55rem;
}

.ogretmen-wizard__summary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ogretmen-wizard__summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 5.75rem;
  text-align: center;
  gap: 0.4rem;
}

.ogretmen-wizard__summary-cover {
  width: 72px;
  height: 100px;
  object-fit: cover;
  border-radius: 0.35rem;
  border: 1px solid var(--ow-border);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ogretmen-wizard__summary-cover--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ow-accent);
  background: #f4faf7;
}

.ogretmen-wizard__summary-title {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ogretmen-wizard__summary-genre {
  font-size: 0.68rem;
  color: #6c757d;
}

.ogretmen-wizard__summary-note {
  margin-top: 1rem;
}

.ogretmen-wizard__recaptcha {
  margin: 1.25rem 0 0.75rem;
  min-height: 78px;
  display: flex;
  justify-content: flex-start;
}

.ogretmen-wizard__panel[data-step="6"]:not(.is-active) .ogretmen-wizard__recaptcha {
  display: none;
}

.ogretmen-wizard__kvkk {
  margin: 1.25rem 0 1rem;
  padding: 0;
  border: 0;
}

.ogretmen-wizard__kvkk-summary {
  font-size: 0.75rem;
  line-height: 1.45;
  color: #000;
  cursor: pointer;
  list-style: none;
}

.ogretmen-wizard__kvkk-summary::-webkit-details-marker {
  display: none;
}

.ogretmen-wizard__kvkk-summary::before {
  content: "› ";
  display: inline-block;
  transition: transform 0.15s ease;
}

.ogretmen-wizard__kvkk[open] .ogretmen-wizard__kvkk-summary::before {
  transform: rotate(90deg);
}

.ogretmen-wizard__kvkk-body {
  margin-top: 0.65rem;
  padding: 0.75rem 0.85rem;
  max-height: 11rem;
  overflow-y: auto;
  font-size: 0.7rem;
  line-height: 1.5;
  color: #6b7280;
  background: #f9fafb;
  border: 1px solid #eef0f2;
  border-radius: var(--ow-radius, 0.375rem);
}

.ogretmen-wizard__kvkk-body p {
  margin: 0 0 0.55rem;
}

.ogretmen-wizard__kvkk-body ul {
  margin: 0 0 0.55rem;
  padding-left: 1.1rem;
}

.ogretmen-wizard__kvkk-body li {
  margin-bottom: 0.2rem;
}

.ogretmen-wizard__kvkk-title {
  font-weight: 600;
  color: #4b5563;
}

.ogretmen-wizard__kvkk-body a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.ogretmen-wizard__success {
  text-align: center;
  padding: 1.5rem 0.5rem 0.5rem;
}

.ogretmen-wizard__success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #def7ec, #ecfdf5);
  color: #03543f;
  box-shadow: 0 4px 14px rgba(3, 168, 124, 0.15);
}

.ogretmen-wizard__success-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: #1a2e28;
}

.ogretmen-wizard__success-text {
  max-width: 28rem;
  margin: 0 auto 1.25rem;
  font-size: 1rem;
  line-height: 1.55;
  color: #4b5563;
}

.ogretmen-wizard__success-promo {
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.15rem;
  text-align: left;
  background: linear-gradient(135deg, #f4faf7 0%, #e8f7f1 100%);
  border: 1px solid #d1e7dd;
  border-radius: var(--ow-radius, 0.5rem);
}

.ogretmen-wizard__success-promo-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #374151;
}

.ogretmen-wizard__success-promo-text strong {
  color: #03543f;
}

.ogretmen-wizard__success-promo-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 600;
  color: var(--color-primary, #03a87c);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.ogretmen-wizard__success-promo-link:hover {
  color: var(--color-primary-dark, #028a66);
}

.ogretmen-wizard__summary-grid--success {
  justify-content: center;
  padding-top: 0.5rem;
  border-top: 1px solid var(--ow-border);
}

.ogretmen-wizard.is-submitting {
  pointer-events: none;
}

.ogretmen-wizard__loading {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(3px);
}

.ogretmen-wizard__loading[hidden] {
  display: none !important;
}

.ogretmen-wizard__loading-inner {
  text-align: center;
  max-width: 18rem;
  padding: 1.5rem 1.25rem;
  background: #fff;
  border: 1px solid var(--ow-border, #e5e7eb);
  border-radius: calc(var(--ow-radius, 0.5rem) * 1.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.ogretmen-wizard__spinner {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  border: 3px solid #e5e7eb;
  border-top-color: var(--color-primary, #03a87c);
  border-radius: 50%;
  animation: ow-spin 0.75s linear infinite;
}

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

.ogretmen-wizard__loading-text {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1a2e28;
}

.ogretmen-wizard__loading-hint {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #6b7280;
}

.ogretmen-wizard.is-submitted .ogretmen-wizard__progress,
.ogretmen-wizard.is-submitted .ogretmen-wizard__progress-label {
  opacity: 0.55;
}

.ogretmen-wizard__progress-label {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6c757d;
  margin: -1.25rem 0 1.5rem;
}

.ogretmen-wizard__step-title-short {
  display: none;
}

.ogretmen-wizard__step-title-full {
  display: inline;
}

.ogretmen-wizard__list-item-title {
  display: block;
}

@media (max-width: 767.98px) {
  .ogretmen-wizard {
    padding: 1rem 0 5.5rem;
  }

  .ogretmen-wizard header .display-6 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }

  .ogretmen-wizard__panel {
    padding: 1rem;
  }

  .ogretmen-wizard__progress {
    margin-bottom: 0.5rem;
  }

  .ogretmen-wizard__step-dot {
    min-width: 0;
  }

  .ogretmen-wizard__progress-label {
    margin: 0 0 1.25rem;
  }

  .ogretmen-wizard__step-title-full {
    display: none;
  }

  .ogretmen-wizard__step-title-short {
    display: inline;
  }

  .ogretmen-wizard__grade-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ogretmen-wizard__grade-btn {
    min-height: 48px;
    font-size: 0.95rem;
  }

  .ogretmen-wizard__filters input[type="search"] {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  .ogretmen-wizard__filters--story select {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  .ogretmen-wizard__form select.form-select {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  .ogretmen-wizard__catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  .ogretmen-wizard__product {
    padding: 0.65rem;
    font-size: 0.8rem;
  }

  .ogretmen-wizard__product-title {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .ogretmen-wizard__product .btn {
    width: 100%;
    min-height: 44px;
    padding: 0.45rem 0.5rem;
    font-size: 0.8rem;
  }

  .ogretmen-wizard__list-item-thumb,
  .ogretmen-wizard__list-item-icon {
    width: 36px;
    height: 50px;
  }

  .ogretmen-wizard__list-item .btn {
    min-height: 44px;
  }

  .ogretmen-wizard__summary-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .ogretmen-wizard__summary-meta-row strong {
    text-align: left;
  }

  .ogretmen-wizard__summary-grid {
    gap: 0.75rem;
  }

  .ogretmen-wizard__summary-item {
    width: calc(50% - 0.375rem);
    max-width: 6.5rem;
  }

  .ogretmen-wizard__success {
    padding-top: 1rem;
  }

  .ogretmen-wizard__success-text {
    font-size: 0.95rem;
  }

  .ogretmen-wizard__actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin-top: 1rem;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    padding: 0.75rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--ow-border);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
    flex-wrap: nowrap;
  }

  .ogretmen-wizard__actions .btn {
    flex: 1;
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ogretmen-wizard__list-item.is-new {
    animation: none;
  }

  .ogretmen-wizard__step-dot,
  .ogretmen-wizard__list-box {
    transition: none;
  }
}
