/* xShopum Bayi Sistemi – başvuru formu ve modallar */
/* ===== Form düzeni ===== */
.xsb {
  --xsb-pink: #e91e63;
  --xsb-wine: #8a0045;
  --xsb-wine-dark: #5e002f;
  --xsb-ink: #242424;
  --xsb-muted: #6b6b6b;
  --xsb-line: #e4dfe1;
  --xsb-bg: #ffffff;
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  max-width: 1180px;
  margin: 40px auto 60px;
  background: var(--xsb-bg);
  border: 1px solid var(--xsb-line);
  border-radius: 20px;
  overflow: hidden;
  color: var(--xsb-ink);
}

/* Sol panel */
.xsb-side {
  background: var(--xsb-wine);
  background-image: radial-gradient(circle at 110% -10%, var(--xsb-pink) 0, transparent 55%);
  color: #fff;
  padding: 44px 36px;
}
.xsb-side-title { color: #fff; font-size: 30px; line-height: 1.15; margin: 0 0 12px; }
.xsb-side-lead { color: rgba(255,255,255,.82); font-size: 16px; line-height: 1.55; margin: 0 0 32px; }
.xsb-perks, .xsb-steps { list-style: none; margin: 0; padding: 0; }
.xsb-perks li { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.18); }
.xsb-perks strong, .xsb-steps strong { display: block; font-size: 15px; color: #fff; }
.xsb-perks span, .xsb-steps span { display: block; font-size: 14px; color: rgba(255,255,255,.72); margin-top: 3px; line-height: 1.45; }
.xsb-steps { counter-reset: xsb; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); }
.xsb-steps li { counter-increment: xsb; position: relative; padding: 0 0 18px 46px; }
.xsb-steps li::before {
  content: counter(xsb);
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; color: var(--xsb-wine);
  font-weight: 700; display: grid; place-items: center;
}

/* Form alanı */
.xsb-form { padding: 44px 48px; }
.xsb-title { font-size: 28px; margin: 0 0 6px; color: var(--xsb-ink); }
.xsb-sub { color: var(--xsb-muted); font-size: 14px; margin: 0 0 28px; }
.xsb-group { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.xsb-group legend {
  font-size: 17px; font-weight: 700; color: var(--xsb-wine);
  padding: 0 0 12px; margin-bottom: 16px; width: 100%;
  border-bottom: 2px solid var(--xsb-line);
}
.xsb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.xsb-full { grid-column: 1 / -1; }
.xsb-field, .xsb-label { display: block; font-size: 14px; font-weight: 600; color: var(--xsb-ink); }
.xsb-field > .xsb-label { margin-bottom: 10px; }
.xsb-field + .xsb-field:not(.xsb-grid .xsb-field) { margin-top: 18px; }
.xsb-field small { display: block; font-weight: 400; color: var(--xsb-muted); margin-top: 6px; font-size: 13px; }
.xsb .wpcf7-form-control-wrap { display: block; margin-top: 7px; }

.xsb input.custom-input,
.xsb select.custom-input,
.xsb textarea.custom-input {
  width: 100%;
  border: 1.5px solid var(--xsb-line);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--xsb-ink);
  box-shadow: none;
  transition: border-color .15s;
}
.xsb input.custom-input, .xsb select.custom-input { height: 48px; }
.xsb textarea.custom-input { min-height: 96px; resize: vertical; }
.xsb .custom-input:focus { border-color: var(--xsb-pink); outline: 3px solid rgba(233,30,99,.15); outline-offset: 0; }
.xsb .wpcf7-not-valid { border-color: #d32f2f !important; }
.xsb .wpcf7-not-valid-tip { font-size: 13px; margin-top: 5px; }

/* Seçim çipleri */
.xsb-chips .wpcf7-form-control { display: flex; flex-wrap: wrap; gap: 8px; }
.xsb-chips .wpcf7-list-item { margin: 0; }
.xsb-chips .wpcf7-list-item label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 1.5px solid var(--xsb-line); border-radius: 999px;
  font-weight: 500; font-size: 14px; cursor: pointer; user-select: none;
}
.xsb-chips input { accent-color: var(--xsb-pink); margin: 0; }
.xsb-chips label:has(input:checked) { border-color: var(--xsb-pink); background: #fdeef3; color: var(--xsb-wine); }
.xsb-chips label:has(input:focus-visible) { outline: 3px solid rgba(233,30,99,.3); }

/* Onay ve gönder */
.xsb-consent { font-size: 14px; color: var(--xsb-muted); margin: 6px 0 22px; }
.xsb-consent label { display: flex; gap: 10px; align-items: flex-start; }
.xsb-consent input { accent-color: var(--xsb-pink); margin-top: 3px; }
.xsb-consent a { color: var(--xsb-pink); text-decoration: underline; }
.xsb-consent .wpcf7-list-item { margin: 0; }
.xsb .custom-button {
  width: 100%; height: 54px; border: 0; border-radius: 12px;
  background: var(--xsb-pink); color: #fff; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: background .15s;
}
.xsb .custom-button:hover { background: var(--xsb-wine); }
.xsb .custom-button:disabled { opacity: .5; cursor: not-allowed; }

/* Mobil */
@media (max-width: 900px) {
  .xsb { grid-template-columns: 1fr; margin: 16px; border-radius: 16px; }
  .xsb-side { padding: 30px 24px; }
  .xsb-steps { display: none; }
  .xsb-form { padding: 28px 20px; }
  .xsb-grid { grid-template-columns: 1fr; }
}

/* Modallar */
/* Form içi düzeltmeler: yazılar ve placeholder kalın görünmesin */
.xsb .custom-input { font-weight: 400 !important; }
.xsb .custom-input::placeholder { font-weight: 400; color: #9a9a9a; }
/* Başarılı gönderimde alttaki yeşil kutuyu gizle, modal gösterilecek */
.wpcf7 form.sent .wpcf7-response-output { display: none !important; }

html:has(.xsb-modal[open]) { overflow: hidden; }
.xsb-modal { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 32px); }
.xsb-modal::backdrop { background: rgba(40, 0, 20, .55); backdrop-filter: blur(3px); }
.xsb-modal-box { background: #fff; border-radius: 20px; color: #242424; box-shadow: 0 30px 80px rgba(60,0,30,.35); }
.xsb-modal h2 { margin: 0; font-size: 24px; color: #242424; }

.xsb-modal-success { width: 480px; max-width: 100%; padding: 40px 36px 32px; text-align: center; }
.xsb-check { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: #e91e63; color: #fff; display: grid; place-items: center; animation: xsbPop .45s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes xsbPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .xsb-check { animation: none; } }
.xsb-modal-text { font-size: 16px; line-height: 1.55; color: #555; margin: 10px 0 20px; }
.xsb-modal-next { list-style: none; margin: 0 0 26px; padding: 16px 18px; background: #fdf2f6; border-radius: 12px; text-align: left; }
.xsb-modal-next li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.5; color: #444; }
.xsb-modal-next li + li { margin-top: 8px; }
.xsb-modal-next li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: #e91e63; }
.xsb-modal-next strong { color: #8a0045; word-break: break-all; }
.xsb-modal-actions { display: flex; flex-direction: column; gap: 10px; }

.xsb-btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 22px; border-radius: 12px; font-size: 15px; font-weight: 700; text-decoration: none !important; cursor: pointer; border: 1.5px solid transparent; }
.xsb-btn-primary { background: #e91e63; color: #fff !important; }
.xsb-btn-primary:hover { background: #8a0045; }
.xsb-btn-ghost { background: #fff; color: #8a0045 !important; border-color: #e4dfe1; }
.xsb-btn-ghost:hover { border-color: #8a0045; }
.xsb-btn:focus-visible, .xsb-x:focus-visible { outline: 3px solid rgba(233,30,99,.35); outline-offset: 2px; }

.xsb-modal-kvkk { width: 760px; max-width: 100%; display: flex; flex-direction: column; max-height: 86vh; }
.xsb-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; border-bottom: 1px solid #eee; }
.xsb-x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #f3f0f1; font-size: 24px; line-height: 1; cursor: pointer; color: #555; }
.xsb-kvkk-body { padding: 22px 26px; overflow-y: auto; font-size: 14px; line-height: 1.65; color: #444; }
.xsb-kvkk-body h1, .xsb-kvkk-body h2, .xsb-kvkk-body h3 { font-size: 17px; margin: 18px 0 8px; }
.xsb-modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 26px; border-top: 1px solid #eee; }
@media (max-width: 600px) {
	.xsb-modal-success { padding: 32px 22px 24px; }
	.xsb-modal-foot { flex-direction: column-reverse; }
	.xsb-modal-foot .xsb-btn { width: 100%; }
}
.xsb-modal-text strong { color: #242424; }
.xsb-modal-actions .xsb-btn { width: 100%; }
