@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* Admin panel (uyeportal) ile aynı siyah-beyaz + sıcak arka plan */
  --auth-bg: #ffffff;
  --auth-bg-soft: #ffffff;
  --auth-bg-gradient: #ffffff;
  --auth-logo-watermark-opacity: 0.028;
  --panel-border: rgba(0, 0, 0, 0.25);
  --panel-bg: #ffffff;
  --panel-shadow: 0 0 24px rgba(24, 27, 44, 0.06);
  --section-border: transparent;
  --field-border: rgba(17, 17, 17, 0.44);
  --field-border-filled: rgba(17, 17, 17, 0.58);
  --text-primary: #111111;
  --text-secondary: #374151;
  --text-muted: #666666;
  --text-hint: #888888;
  --divider: rgba(0, 0, 0, 0.22);
  --surface-input: #ffffff;
  --surface-muted: #f3f4f6;
  --brand: #111111;
  --link: #111111;
  --success: #262626;
  --focus-ring: rgba(0, 0, 0, 0.14);
  --radius-panel: 10px;
  --radius-panel-compact: 10px;
  --radius-control: 10px;
  --radius-sm: 10px;
  --error: #b42318;
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5 10 12.5 15 7.5' stroke='%23333333' stroke-opacity='0.75' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

body.membership-page {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  width: 100%;
  background: var(--auth-bg-gradient);
  color: var(--text-primary);
}

.membership-page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
}

.auth-canvas {
  position: relative;
  z-index: 1;
  height: 100dvh;
  max-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(0.5rem, 1.5vh, 1.25rem) clamp(0.75rem, 2vw, 1.5rem);
  color: var(--text-primary);
  overflow: hidden;
  background: transparent;
}

.auth-logo-watermark {
  pointer-events: none;
  position: absolute;
  z-index: 0;
  width: min(380px, 55vw);
  height: min(380px, 55vw);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: var(--auth-logo-watermark-opacity);
  filter: brightness(0);
  background-image: url("/assets/public/tabips.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.auth-logo-watermark::before {
  content: none;
  display: none;
}

.membership-shell,
.membership-shell--wizard {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: clamp(0.45rem, 1vh, 0.65rem);
}

html.membership-wizard-flow,
body.membership-page.membership-wizard-flow {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.auth-canvas--wizard {
  box-sizing: border-box;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  justify-content: flex-start;
  align-items: center;
  padding-top: calc(100px + env(safe-area-inset-top, 0px));
  padding-right: clamp(0.75rem, 2vw, 1.5rem);
  padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px));
  padding-left: clamp(0.75rem, 2vw, 1.5rem);
}

.membership-shell--wizard {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  justify-content: flex-start;
  flex-shrink: 1;
  gap: clamp(0.45rem, 0.9vh, 0.65rem);
}

.membership-shell--wizard .membership-panel--wizard {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
}

.membership-footer--outside {
  margin: 0;
  flex-shrink: 0;
  text-align: center;
  padding: 0 clamp(0.5rem, 2vw, 1rem);
}

.membership-panel,
.membership-panel--wizard {
  border: none;
  border-radius: var(--radius-panel);
  background: var(--panel-bg);
  box-shadow: var(--panel-shadow);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  gap: 0;
  padding: 0;
}

.membership-panel__head {
  flex-shrink: 0;
  z-index: 3;
  background: linear-gradient(135deg, #f7f7f7 0%, #ffffff 55%);
  padding: clamp(0.75rem, 1.6vh, 1rem) clamp(0.75rem, 1.8vw, 1.25rem) clamp(0.45rem, 0.95vh, 0.65rem);
  border-bottom: 1px solid var(--divider);
}

.membership-panel__head.membership-header--wizard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: none;
  box-sizing: border-box;
  min-height: clamp(3.75rem, 9vh, 4.5rem);
  padding: clamp(0.65rem, 1.4vh, 0.85rem) clamp(0.75rem, 1.8vw, 1.25rem);
}

.membership-panel__body {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(0.55rem, 1.1vh, 0.75rem) clamp(0.75rem, 1.8vw, 1.25rem);
}

.membership-panel__action {
  flex-shrink: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  background: var(--panel-bg);
  padding: 0.55rem clamp(0.75rem, 1.8vw, 1.25rem) 0;
  border-top: none;
  box-sizing: border-box;
}

.membership-panel__action .btn-membership {
  margin: 0;
  flex-shrink: 0;
}

.membership-panel__action-gap {
  flex-shrink: 0;
  height: 20px;
  width: 100%;
}

.membership-panel__foot {
  flex-shrink: 0;
  z-index: 3;
  background: var(--panel-bg);
  padding: 0.35rem clamp(0.75rem, 1.8vw, 1.25rem) calc(0.65rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--divider);
}

.membership-panel__foot .membership-footer {
  margin: 0;
  padding: 0;
}

.membership-panel--wizard {
  background: transparent;
  box-shadow: none;
}

.membership-panel--wizard .membership-panel__head {
  background: transparent;
  border-bottom: none;
}

.membership-panel--wizard .membership-panel__action,
.membership-panel--wizard .membership-panel__foot {
  background: transparent;
  border-top: none;
}

.membership-panel--wizard .membership-form-compact {
  flex: none;
  min-height: 0;
  overflow: visible;
}

.membership-panel--wizard .membership-header {
  border-bottom: none;
  padding-bottom: 0;
}

.membership-footer {
  flex-shrink: 0;
  position: relative;
  z-index: 0;
}

.membership-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.55rem, 1.2vw, 0.85rem);
  margin-bottom: 0;
  flex-shrink: 0;
  padding-bottom: clamp(0.45rem, 0.95vh, 0.65rem);
  border-bottom: 1px solid var(--divider);
}

.membership-header.membership-header--wizard {
  padding-bottom: 0;
  border-bottom: none;
}

.membership-logo {
  width: clamp(44px, 5.8vh, 60px);
  height: clamp(44px, 5.8vh, 60px);
  object-fit: contain;
  object-position: center center;
  margin: 0;
  flex-shrink: 0;
  display: block;
  /* tabips.png beyaz çizim — light temada görünür koyu siluet */
  filter: brightness(0);
}

.membership-header--wizard .membership-logo {
  width: clamp(40px, 5.2vh, 52px);
  height: clamp(40px, 5.2vh, 52px);
  object-position: 50% 46%;
}

.membership-header-text {
  min-width: 0;
  margin-left: auto;
  text-align: right;
}

.membership-brand {
  margin: 0 0 0.12rem;
  font-size: clamp(0.72rem, 1.35vh, 0.8125rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.2;
}

.membership-title {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vh, 1.125rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.35;
}

.membership-subtitle {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.membership-form-compact {
  display: flex;
  flex-direction: column;
  gap: clamp(0.55rem, 1.05vh, 0.8rem);
  flex-shrink: 1;
  min-height: 0;
}

.form-section {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: clamp(0.45rem, 0.95vh, 0.65rem) 0;
}

.form-section + .form-section {
  border-top: 1px solid var(--divider);
  margin-top: clamp(0.25rem, 0.5vh, 0.4rem);
  padding-top: clamp(0.65rem, 1.15vh, 0.9rem);
}

.form-section-title {
  margin: 0 0 clamp(0.45rem, 0.85vh, 0.6rem);
  padding-bottom: 0;
  border-bottom: none;
  font-size: clamp(0.64rem, 1.15vh, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-hint);
}

.form-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(0.65rem, 1.5vw, 1rem);
  row-gap: clamp(0.5rem, 0.95vh, 0.72rem);
}

.field-span-2 {
  grid-column: 1 / -1;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: clamp(0.28rem, 0.55vh, 0.4rem);
  min-width: 0;
}

.field-group--pad-top {
  padding-top: clamp(0.55rem, 1.1vh, 0.85rem);
}

.field-label {
  font-size: clamp(0.72rem, 1.35vh, 0.8125rem);
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.2;
}

.field-control {
  width: 100%;
  min-height: clamp(38px, 4.6vh, 44px);
  border-radius: var(--radius-control);
  border: 1px solid var(--field-border);
  background: var(--surface-input);
  color: var(--text-primary);
  padding: 0 12px;
  font: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

textarea.field-control {
  min-height: 120px;
  padding-top: 12px;
  padding-bottom: 12px;
  resize: vertical;
}

.field-control::placeholder {
  color: var(--text-hint);
}

.field-control:focus {
  color: var(--text-primary);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.field-control:not(:placeholder-shown):not(.custom-select-trigger) {
  color: var(--text-primary);
  border-color: var(--field-border-filled);
  background: var(--surface-input);
}

.custom-select.is-empty .custom-select-trigger {
  color: var(--text-hint);
  font-weight: 400;
  border-color: var(--field-border);
  background: var(--surface-input);
}

.custom-select:not(.is-empty) .custom-select-trigger {
  color: var(--text-primary);
  border-color: var(--field-border-filled);
}

.field-control--sicil {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.field-control--sicil:invalid:not(:placeholder-shown) {
  border-color: rgba(180, 35, 24, 0.45);
}

.field-control.is-invalid,
.field-control--tc.is-invalid {
  border-color: rgba(180, 35, 24, 0.65);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.14);
}

.field-hint--error {
  color: var(--error);
}

.field-hint--tc-error {
  min-height: 1.15rem;
  margin: 0.12rem 0 0;
  line-height: 1.15;
  visibility: hidden;
}

.field-hint--tc-error.is-visible {
  visibility: visible;
}

.field-control:-webkit-autofill,
.field-control:-webkit-autofill:hover,
.field-control:-webkit-autofill:focus,
.field-control:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text-primary) !important;
  caret-color: var(--text-primary);
  border: 1px solid var(--field-border-filled);
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  transition: background-color 99999s ease-out 0s;
}

.btn-membership {
  width: 100%;
  min-height: clamp(40px, 4.8vh, 46px);
  margin-top: clamp(0.35rem, 0.75vh, 0.6rem);
  border-radius: var(--radius-control);
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-membership:hover:not(:disabled) {
  background: #000000;
  border-color: #000000;
  color: #fff;
  box-shadow: none;
}

.alert-membership {
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  font-size: 0.75rem;
  margin: 0;
  flex-shrink: 0;
}

.alert-membership--success {
  background: #f5f5f5;
  border: 1px solid #d4d4d4;
  color: var(--success);
}

.alert-membership--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--error);
}

.membership-footer {
  margin: 0;
  padding: 0 clamp(0.5rem, 2vw, 1rem);
  text-align: center;
  font-size: clamp(0.62rem, 1.05vh, 0.7rem);
  font-weight: 400;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.38);
  flex-shrink: 0;
}

.membership-footer a {
  color: inherit;
  text-decoration: none;
}

.membership-footer a:hover {
  color: rgba(0, 0, 0, 0.58);
  text-decoration: underline;
}

.membership-footer-sep {
  margin: 0 0.35em;
  opacity: 0.65;
}

.field-hint {
  margin: 0;
  font-size: clamp(0.62rem, 1.1vh, 0.72rem);
  color: var(--text-hint);
  line-height: 1.15;
}

.field-group--locked,
.form-section.field-group--locked {
  opacity: 0.72;
  filter: saturate(0.85);
}

.field-group--locked .field-control,
.field-group--locked select.field-control,
.field-group--locked .choice-grid,
.form-section.field-group--locked .field-control,
.form-section.field-group--locked select.field-control,
.form-section.field-group--locked .choice-grid {
  pointer-events: none;
}

.phone-field-shell {
  display: flex;
  align-items: center;
  min-height: clamp(38px, 4.6vh, 44px);
  border-radius: var(--radius-control);
  border: 1px solid var(--field-border);
  background: var(--surface-input);
  padding: 0 6px 0 12px;
  gap: 8px;
  transition: border-color 0.15s ease;
}

.phone-field-shell:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.phone-prefix {
  color: var(--text-secondary);
  font-size: 0.875rem;
  white-space: nowrap;
  padding-right: 8px;
  border-right: 1px solid var(--divider);
}

.phone-field-shell input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 0.875rem;
  outline: none;
  padding: 0;
}

.phone-field-shell input::placeholder {
  color: var(--text-hint);
}

.phone-field-shell input:-webkit-autofill,
.phone-field-shell input:-webkit-autofill:hover,
.phone-field-shell input:-webkit-autofill:focus,
.phone-field-shell input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text-primary) !important;
  caret-color: var(--text-primary);
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  transition: background-color 99999s ease-out 0s;
}

.btn-sms-send {
  flex-shrink: 0;
  border: 1px solid var(--field-border-filled);
  background: #fff;
  color: var(--brand);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-sms-send:hover:not(:disabled) {
  background: var(--surface-muted);
  border-color: #000000;
  color: #000000;
}

.btn-sms-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: rgba(17, 17, 17, 0.28);
  background: var(--surface-muted);
}

.otp-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
}

.otp-input {
  width: 100%;
  aspect-ratio: 1;
  max-height: clamp(38px, 4.6vh, 44px);
  text-align: center;
  font-size: clamp(0.95rem, 1.8vh, 1.05rem);
  font-weight: 600;
  border-radius: var(--radius-control);
  border: 1px solid var(--field-border);
  background: var(--surface-input);
  color: var(--text-primary);
  outline: none;
}

.otp-input:disabled {
  opacity: 0.45;
  background: var(--surface-muted);
}

.otp-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.choice-option {
  position: relative;
}

.choice-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(38px, 4.6vh, 44px);
  border-radius: var(--radius-control);
  border: 1px solid var(--field-border);
  color: var(--text-secondary);
  background: var(--surface-input);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.choice-option input:checked + span {
  border-color: var(--brand);
  background: rgba(0, 0, 0, 0.06);
  color: var(--brand);
}

select.field-control {
  appearance: none;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

select.field-control:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.custom-select {
  position: relative;
  width: 100%;
  z-index: 1;
}

.custom-select.is-open {
  z-index: 120;
}

.field-group:has(.custom-select.is-open) {
  position: relative;
  z-index: 120;
}

.custom-select-trigger {
  width: 100%;
  text-align: left;
  cursor: pointer;
  appearance: none;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select.is-disabled .custom-select-trigger {
  opacity: 0.45;
  cursor: not-allowed;
}

.custom-select-panel {
  border: 1px solid var(--field-border);
  border-radius: var(--radius-control);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: min(280px, 50vh);
  pointer-events: auto;
  box-sizing: border-box;
  padding: 0.45rem;
}

.custom-select-panel[hidden] {
  display: none !important;
}

.custom-select-search {
  margin: 0 0 0.35rem;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  pointer-events: auto;
  position: relative;
  z-index: 2;
  touch-action: manipulation;
  cursor: text;
}

.custom-select-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.custom-select-option {
  padding: 0.45rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.25;
  color: var(--text-primary);
  cursor: pointer;
}

.custom-select-option:hover,
.custom-select-option.is-selected {
  background: var(--surface-muted);
}

.custom-select-option[hidden] {
  display: none;
}

.form-status {
  min-height: 0;
  font-size: clamp(0.62rem, 1.1vh, 0.72rem);
  color: var(--text-muted);
  line-height: 1.15;
}

.form-status:not(:empty) {
  min-height: 0.85rem;
}

@media (max-height: 760px) {
  .field-hint:not(.phone-hint) {
    display: none;
  }

  .membership-form-compact {
    gap: clamp(0.4rem, 0.85vh, 0.55rem);
  }

  .form-section-grid {
    row-gap: clamp(0.4rem, 0.75vh, 0.55rem);
  }
}

@media (max-width: 720px) {
  html.membership-wizard-flow,
  body.membership-page.membership-wizard-flow {
    height: auto;
    max-height: none;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .auth-canvas--wizard {
    align-items: stretch;
    height: auto;
    max-height: none;
    min-height: 100dvh;
    overflow: visible;
    padding-top: calc(72px + env(safe-area-inset-top, 0px));
    padding-left: max(0.65rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.65rem, env(safe-area-inset-right, 0px));
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  .membership-shell--wizard {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .membership-shell--wizard .membership-panel--wizard {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
  }

  .membership-panel--wizard {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .membership-panel__body {
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
  }

  .form-section-grid {
    grid-template-columns: 1fr;
  }

  .field-span-2 {
    grid-column: auto;
  }

  .membership-panel,
  .membership-panel--wizard {
    border-radius: var(--radius-panel-compact);
    padding: clamp(0.85rem, 2vh, 1.35rem) clamp(0.7rem, 1.8vw, 1.25rem);
  }

  .membership-panel--wizard {
    padding-top: 0;
  }

  .membership-panel--wizard .membership-panel__head.membership-header--wizard {
    padding-left: clamp(0.7rem, 1.8vw, 1.25rem);
    padding-right: clamp(0.7rem, 1.8vw, 1.25rem);
    border-radius: var(--radius-panel-compact) var(--radius-panel-compact) 0 0;
  }

  .istifa-modal__panel {
    border-radius: var(--radius-panel-compact);
  }

  .membership-header--wizard {
    gap: 0.5rem;
  }

  .membership-title {
    font-size: clamp(1.05rem, 4.5vw, 1.35rem);
  }

  .membership-panel__foot .membership-footer {
    line-height: 1.45;
  }

  .signature-block__frame {
    grid-template-columns: 1fr;
  }

  .signature-block__hint--wide {
    display: none;
  }

  .signature-block__hint--narrow {
    display: block;
  }
}

.form-status.is-error,
.phone-hint.is-error {
  color: var(--error);
}

.form-status.is-success,
.phone-hint.is-success {
  color: var(--success);
}

.phone-hint.is-success strong {
  color: #111111;
  font-weight: 600;
}

.btn-membership:disabled {
  background: #d4d4d4;
  border-color: #d4d4d4;
  color: #fff;
  box-shadow: none;
  cursor: not-allowed;
}

.membership-header--wizard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.membership-header-left {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  align-self: center;
  line-height: 0;
}

.wizard-back {
  color: var(--link);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
}

.wizard-back:hover {
  color: var(--brand);
}

.form-section--signature {
  padding-bottom: 0;
}

.signature-block {
  display: flex;
  flex-direction: column;
  gap: clamp(0.45rem, 0.85vh, 0.65rem);
}

.signature-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.signature-block__head .field-label {
  margin: 0;
}

.signature-block__frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(0.65rem, 1.2vw, 1rem);
  padding: clamp(0.75rem, 1.4vh, 1rem);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-control);
  background: var(--panel-bg);
}

.signature-block__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.45rem, 0.8vh, 0.65rem);
  min-width: 0;
}

.signature-block__declaration {
  margin: 0;
  font-size: clamp(0.72rem, 1.25vh, 0.82rem);
  line-height: 1.45;
  color: var(--text-secondary);
}

.signature-block__date {
  margin: 0;
  font-size: clamp(0.68rem, 1.15vh, 0.75rem);
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.signature-block__name {
  margin: 0;
  font-size: clamp(0.82rem, 1.4vh, 0.92rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.signature-pad {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(140px, 22vh, 200px);
  padding: clamp(0.45rem, 0.8vh, 0.6rem);
  border: 1px dashed var(--field-border);
  border-radius: var(--radius-control);
  background: var(--surface-input);
}

.signature-pad__label {
  flex-shrink: 0;
  margin-bottom: 0.25rem;
  font-size: clamp(0.65rem, 1.05vh, 0.72rem);
  color: var(--text-hint);
}

#signature-canvas {
  display: block;
  flex: 1;
  width: 100%;
  min-height: 120px;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
  border-radius: var(--radius-sm);
}

.signature-block__hint {
  margin: 0;
  font-size: clamp(0.62rem, 1.1vh, 0.72rem);
  color: var(--text-hint);
  line-height: 1.35;
}

.signature-block__hint--narrow {
  display: none;
}

.signature-block__kvkk {
  margin-bottom: 0;
}

.signature-block__kvkk strong {
  font-weight: 600;
}

.signature-block__kvkk.is-kvkk-error span,
.signature-block__kvkk.is-kvkk-error a,
.signature-block__kvkk.is-kvkk-error strong {
  animation: field-attention-blink 0.9s ease-in-out infinite;
}

@keyframes field-attention-blink {
  0%,
  100% {
    color: var(--error);
  }
  50% {
    color: var(--text-primary);
  }
}

.signature-pad.is-imza-error {
  background-color: var(--surface-input);
  animation: imza-border-blink 0.9s ease-in-out infinite;
}

.signature-pad.is-imza-error .signature-pad__label {
  animation: imza-label-blink 0.9s ease-in-out infinite;
}

@keyframes imza-border-blink {
  0%,
  100% {
    border-color: var(--error);
  }
  50% {
    border-color: var(--text-primary);
  }
}

@keyframes imza-label-blink {
  0%,
  100% {
    color: var(--error);
  }
  50% {
    color: var(--text-primary);
  }
}

@keyframes field-border-blink {
  0%,
  100% {
    border-color: var(--error);
  }
  50% {
    border-color: var(--text-primary);
  }
}

.field-control.is-field-error,
.phone-field-shell.is-field-error,
.custom-select.is-field-error .custom-select-trigger,
.choice-grid.is-field-error,
.otp-grid.is-field-error .otp-input {
  animation: field-border-blink 0.9s ease-in-out infinite;
}

.choice-grid.is-field-error {
  box-sizing: border-box;
  padding: 6px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius-control);
}

.btn-signature-clear {
  margin: 0;
  padding: 0.15rem 0.35rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font: inherit;
  font-size: clamp(0.72rem, 1.2vh, 0.82rem);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.btn-signature-clear:hover {
  color: var(--brand);
}

.checkbox-membership {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: clamp(0.68rem, 1.2vh, 0.78rem);
  line-height: 1.35;
  margin-bottom: 0.45rem;
  color: var(--text-secondary);
}

.checkbox-membership a {
  color: var(--link);
}

.membership-success-body {
  width: 100%;
  padding-top: 50px;
  text-align: center;
}

.membership-success {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(0.85rem, 1.35vh, 1.1rem);
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: center;
}

.membership-success.form-section {
  padding-left: 0;
  padding-right: 0;
}

.membership-success__status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.55rem, 1vh, 0.75rem);
  width: 100%;
}

.membership-success__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.75rem, 5.5vh, 3.25rem);
  height: clamp(2.75rem, 5.5vh, 3.25rem);
  border-radius: 50%;
  border: 1px solid var(--field-border);
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-muted) 100%);
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.membership-success__check {
  display: block;
}

.membership-success__title {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vh, 1.28rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.25;
}

.membership-success__lead {
  margin: 0 auto 10px;
  max-width: 28rem;
  font-size: clamp(0.82rem, 1.45vh, 0.92rem);
  line-height: 1.55;
  color: var(--text-secondary);
}

.membership-success__next {
  width: 100%;
  box-sizing: border-box;
  padding: clamp(0.7rem, 1.15vh, 0.9rem) clamp(0.75rem, 1.4vw, 1rem);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-control);
  background: #ffffff;
  text-align: left;
}

.membership-success__next-kicker {
  margin: 0 0 clamp(0.55rem, 0.9vh, 0.7rem);
  font-size: clamp(0.68rem, 1.15vh, 0.76rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-muted);
}

.membership-success__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(0.65rem, 1.05vh, 0.85rem);
}

.membership-success__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem 0.75rem;
  align-items: start;
  text-align: left;
}

.membership-success__step-n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.05rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  background: var(--surface-muted);
  border: 1px solid var(--divider);
}

.membership-success__step-body {
  min-width: 0;
}

.membership-success__step-title {
  margin: 0 0 0.2rem;
  font-size: clamp(0.78rem, 1.3vh, 0.86rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
}

.membership-success__step-text {
  margin: 0;
  font-size: clamp(0.72rem, 1.2vh, 0.8rem);
  line-height: 1.5;
  color: var(--text-secondary);
}

.membership-success__info {
  width: 100%;
  box-sizing: border-box;
  padding: clamp(0.65rem, 1.1vh, 0.85rem) clamp(0.75rem, 1.4vw, 0.95rem);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-control);
  background: var(--surface-muted);
  text-align: center;
}

.membership-success__info-title {
  margin: 0 0 0.35rem;
  font-size: clamp(0.72rem, 1.25vh, 0.8rem);
  font-weight: 600;
  color: var(--text-primary);
}

.membership-success__info-text {
  margin: 0;
  font-size: clamp(0.7rem, 1.15vh, 0.78rem);
  line-height: 1.45;
  color: var(--text-secondary);
}

.membership-success__hint {
  margin: 0 auto;
  max-width: 28rem;
  line-height: 1.45;
}

.membership-success__hint a {
  color: var(--link);
}

a.btn-membership {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}

.istifa-modal {
  position: fixed;
  inset: 0;
  z-index: 10100;
  margin: 0;
  padding: 1.25rem;
  width: 100%;
  max-width: none;
  max-height: none;
  height: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.istifa-modal:not([open]) {
  display: none;
}

.istifa-modal::backdrop {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.istifa-modal__panel {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(calc(100vw - 2.5rem), 420px);
  padding: clamp(1.35rem, 3vh, 1.75rem) clamp(1.25rem, 3vw, 1.65rem);
  border-radius: var(--radius-panel);
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  color: var(--text-primary);
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

.istifa-modal__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.05rem, 2.2vh, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.istifa-modal__text {
  margin: 0 0 1.15rem;
  font-size: clamp(0.82rem, 1.6vh, 0.92rem);
  line-height: 1.45;
  color: var(--text-secondary);
}

.istifa-modal__text strong {
  font-weight: 700;
  color: var(--text-primary);
}

.istifa-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.istifa-modal__btn {
  min-height: clamp(40px, 4.8vh, 46px);
  border-radius: var(--radius-control);
  padding: 0.62rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--brand);
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  box-shadow: none;
}

.istifa-modal__btn--no {
  background: var(--panel-bg);
  border-color: var(--field-border);
  color: var(--text-primary);
}

.istifa-modal__btn--no:hover {
  background: var(--surface-muted);
  border-color: var(--field-border-filled);
}

.istifa-modal__btn--yes {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.istifa-modal__btn--yes:hover {
  background: #000000;
  border-color: #000000;
}

.istifa-modal__btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.istifa-modal__legal {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--text-muted);
}

body.istifa-modal-open {
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.basvuru-asistan {
  position: fixed;
  z-index: 10050;
  right: max(0.35rem, env(safe-area-inset-right, 0px));
  top: calc(50dvh - 1.5rem);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  pointer-events: none;
}

.basvuru-asistan__dock {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.basvuru-asistan__dock > * {
  pointer-events: auto;
}

.basvuru-asistan__launcher {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--brand);
  border-radius: 10px;
  background: var(--brand);
  color: #ffffff;
  font: inherit;
  cursor: grab;
  touch-action: none;
  user-select: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.basvuru-asistan__launcher:hover {
  background: #000000;
  border-color: #000000;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.basvuru-asistan__launcher.is-dragging {
  cursor: grabbing;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.basvuru-asistan[data-open="true"] .basvuru-asistan__launcher {
  background: #000000;
  border-color: #000000;
}

.basvuru-asistan__launcher-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  pointer-events: none;
}

.basvuru-asistan__panel[hidden],
.basvuru-asistan[data-open="false"] .basvuru-asistan__panel {
  display: none !important;
}

.basvuru-asistan[data-open="true"] .basvuru-asistan__panel {
  display: flex;
  flex-direction: column;
}

.basvuru-asistan__panel {
  position: absolute;
  right: calc(100% + 0.65rem);
  top: 50%;
  z-index: 2;
  flex-direction: column;
  flex-shrink: 0;
  width: min(calc(100vw - 4.5rem), 22rem);
  height: min(480px, calc(100dvh - 2.5rem));
  max-height: calc(100dvh - 2rem);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-panel-compact);
  background: var(--panel-bg);
  color: var(--text-secondary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transform: translateY(-50%);
  transform-origin: center right;
}

.basvuru-asistan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid var(--divider);
  background: #ffffff;
}

.basvuru-asistan__head-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.basvuru-asistan__head-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--field-border);
  background: var(--surface-muted);
  color: var(--text-primary);
}

.basvuru-asistan__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

.basvuru-asistan__subtitle {
  margin: 0.125rem 0 0;
  font-size: 0.625rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.basvuru-asistan__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--field-border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.basvuru-asistan__close:hover {
  background: var(--surface-muted);
  border-color: rgba(0, 0, 0, 0.22);
  color: var(--text-primary);
}

.basvuru-asistan__messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.75rem;
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
}

.basvuru-asistan__msg-row {
  display: flex;
  margin-bottom: 0.75rem;
}

.basvuru-asistan__msg-row--user {
  justify-content: flex-end;
}

.basvuru-asistan__msg-row--bot {
  justify-content: flex-start;
}

.basvuru-asistan__msg {
  max-width: 92%;
  padding: 0.5rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.basvuru-asistan__msg--bot {
  border-bottom-left-radius: 0.25rem;
  background: var(--surface-muted);
  color: var(--text-secondary);
  border: 1px solid var(--field-border);
  white-space: pre-line;
}

.basvuru-asistan__msg--user {
  border-bottom-right-radius: 0.25rem;
  background: var(--brand);
  color: #ffffff;
  font-weight: 500;
}

.basvuru-asistan__msg p {
  margin: 0 0 0.45rem;
}

.basvuru-asistan__msg p:last-child {
  margin-bottom: 0;
}

.basvuru-asistan__msg ul {
  margin: 0.2rem 0 0.35rem;
  padding-left: 1.05rem;
  line-height: 1.35;
  /* pre-line üst balonda <ul> arası satır sonlarını boş satır yapmasın */
  white-space: normal;
}

.basvuru-asistan__msg li {
  margin: 0;
  padding: 0.06rem 0;
  line-height: 1.35;
  cursor: pointer;
}

.basvuru-asistan__msg li:hover {
  text-decoration: underline;
}

.basvuru-asistan__msg-foot {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.basvuru-asistan__msg a {
  color: var(--link);
  font-weight: 600;
}

.basvuru-asistan__typing {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: var(--text-hint);
}

.basvuru-asistan__composer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem calc(0.625rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--divider);
  background: #ffffff;
}

.basvuru-asistan__input {
  flex: 1;
  min-width: 0;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--field-border);
  border-radius: var(--radius-control);
  background: var(--surface-input);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.875rem;
}

.basvuru-asistan__input::placeholder {
  color: var(--text-hint);
}

.basvuru-asistan__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.basvuru-asistan__send {
  flex-shrink: 0;
  height: 2.5rem;
  padding: 0 0.85rem;
  border: 1px solid var(--brand);
  border-radius: var(--radius-control);
  background: var(--brand);
  color: #ffffff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.basvuru-asistan__send:hover:not(:disabled) {
  background: #000000;
  border-color: #000000;
}

.basvuru-asistan__send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (min-width: 992px) {
  .basvuru-asistan {
    right: max(0.5rem, env(safe-area-inset-right, 0px));
  }
}

@media (max-width: 991px) {
  .basvuru-asistan {
    right: max(0.35rem, env(safe-area-inset-right, 0px));
  }

  .basvuru-asistan__panel {
    width: min(calc(100vw - 3.75rem), 22rem);
    height: min(440px, calc(100dvh - 2rem));
    right: calc(100% + 0.5rem);
  }
}
