/* =========================================================
   SABANCI – SUKids WEBFORM (FIXED CHECKBOX/RADIO ALIGNMENT)
   Paste as the ONLY Custom CSS for this webform.
   ========================================================= */

/* ---------- Tokens ---------- */
.webform-submission-form{
  --su-navy:#002f6c;
  --su-blue:#1f4fa3;
  --su-cyan:#00a3d9;

  --bg1:#eef4ff;
  --bg2:#f7fbff;

  --card:rgba(255,255,255,.94);
  --text:#0f172a;
  --muted:#475569;

  --border:rgba(0,47,108,.18);
  --border-soft:rgba(0,47,108,.12);

  --shadow:0 22px 60px rgba(0,47,108,.16), 0 2px 10px rgba(0,0,0,.06);
  --shadow-soft:0 10px 28px rgba(0,47,108,.10);
}

/* ---------- Page background ---------- */
html body{
  background:
    radial-gradient(900px 450px at 15% 15%, rgba(0,47,108,.12), rgba(0,0,0,0) 60%),
    radial-gradient(900px 450px at 85% 10%, rgba(0,163,217,.12), rgba(0,0,0,0) 60%),
    linear-gradient(180deg,var(--bg1) 0%,var(--bg2) 55%,#ffffff 100%);
}

/* ---------- Wider content container (centered) ---------- */
html body .region-content,
html body .layout-content,
html body main .container,
html body main .container-fluid,
html body .page__content,
html body .node__content{
  max-width: 1200px !important;
  width: min(1200px, 96vw) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ---------- Main form card ---------- */
html body .webform-submission-form{
  max-width: 1200px !important;
  width: min(1200px, 96vw) !important;
  margin: 18px auto 40px !important;
  padding: 24px 26px 18px !important;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.60);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  color: var(--text);
  box-sizing: border-box;
}

html body .webform-submission-form::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:6px;
  border-radius:22px 22px 0 0;
  background:linear-gradient(90deg,var(--su-navy),var(--su-blue),var(--su-cyan));
}

/* ---------- Typography ---------- */
html body .webform-submission-form h1,
html body .webform-submission-form h2,
html body .webform-submission-form h3,
html body .webform-submission-form legend,
html body .webform-submission-form .fieldset-legend{
  color: var(--su-navy);
  font-weight: 850;
}

html body .webform-submission-form .description,
html body .webform-submission-form .form-item--description{
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
  margin-top: 6px;
}

/* ---------- Default labels (NOT checkbox/radio labels) ---------- */
html body .webform-submission-form .form-item > label{
  display:block;
  font-weight: 750;
  color: var(--su-navy);
  margin: 0 0 6px 0;
  letter-spacing: .1px;
}

/* ---------- Spacing ---------- */
html body .webform-submission-form .form-item{
  margin: 0 0 14px 0;
}

/* ---------- Inputs ---------- */
html body .webform-submission-form input[type="text"],
html body .webform-submission-form input[type="email"],
html body .webform-submission-form input[type="number"],
html body .webform-submission-form input[type="tel"],
html body .webform-submission-form input[type="url"],
html body .webform-submission-form input[type="search"],
html body .webform-submission-form input[type="password"],
html body .webform-submission-form textarea{
  width: 100%;
  box-sizing: border-box;
  height: 46px;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  color: var(--text);
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}

html body .webform-submission-form textarea{
  height:auto;
  min-height: 140px;
  padding: 12px 14px;
  resize: vertical;
}

html body .webform-submission-form ::placeholder{ color:#94a3b8; }

html body .webform-submission-form input:focus,
html body .webform-submission-form textarea:focus{
  outline:none;
  border-color:var(--su-blue);
  box-shadow:0 0 0 4px rgba(31,79,163,.18);
}

/* ---------- Date input ---------- */
html body .webform-submission-form input[type="date"],
html body .webform-submission-form .form-date{
  width: 100% !important;
  box-sizing: border-box !important;
  height: 46px !important;
  padding: 10px 14px !important;
  border: 2px solid var(--border) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  color: var(--text) !important;
}

/* =========================================================
   FILE UPLOAD (ID Photo)
   ========================================================= */
html body .webform-submission-form .form-type-managed-file,
html body .webform-submission-form .js-form-type-managed-file{
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: rgba(248,250,252,.92);
  box-shadow: var(--shadow-soft);
}

html body .webform-submission-form input[type="file"]{
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 2px dashed rgba(0,47,108,.22);
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  color: var(--text);
}

html body .webform-submission-form input[type="file"]:focus{
  outline:none;
  border-color: var(--su-blue);
  box-shadow:0 0 0 4px rgba(31,79,163,.18);
}

/* =========================================================
   FIELDSETS (Kid / Parent)
   ========================================================= */
html body .webform-submission-form fieldset{
  margin: 18px 0;
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: rgba(248,250,252,.92);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

/* =========================================================
   🔥 CHECKBOX + RADIO FIX (stops missing letters & weird layout)
   - kills theme pseudo elements
   - forces real input + label side-by-side
   ========================================================= */

/* Neutralize any theme “fake checkbox” decorations */
html body .webform-submission-form .form-type-checkbox label::before,
html body .webform-submission-form .form-type-checkbox label::after,
html body .webform-submission-form .form-type-radio label::before,
html body .webform-submission-form .form-type-radio label::after,
html body .webform-submission-form .form-checkboxes label::before,
html body .webform-submission-form .form-checkboxes label::after,
html body .webform-submission-form .form-radios label::before,
html body .webform-submission-form .form-radios label::after{
  content: none !important;
  display: none !important;
}

/* Make groups wrap nicely */
html body .webform-submission-form .form-checkboxes,
html body .webform-submission-form .form-radios{
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px 14px !important;
  margin-top: 8px !important;
}

/* Each option becomes a pill row (input + label) */
html body .webform-submission-form .form-checkboxes .form-item,
html body .webform-submission-form .form-radios .form-item{
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;

  padding: 10px 12px !important;
  border: 1px solid var(--border-soft) !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 6px 16px rgba(0,47,108,.06) !important;

  overflow: visible !important;
}

/* Inputs: keep native and visible */
html body .webform-submission-form .form-checkboxes input[type="checkbox"],
html body .webform-submission-form .form-radios input[type="radio"]{
  position: static !important;
  margin: 0 !important;
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 auto !important;
  accent-color: var(--su-blue) !important;
}

/* Labels: remove any left padding / indent that causes “missing first letters” */
html body .webform-submission-form .form-checkboxes label,
html body .webform-submission-form .form-radios label,
html body .webform-submission-form label.option{
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  text-indent: 0 !important;
  transform: none !important;

  color: var(--text) !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;

  display: inline-flex !important;
  align-items: center !important;

  /* long texts (Newsletter) wrap nicely instead of clipping */
  white-space: normal !important;
  overflow: visible !important;
  max-width: 100% !important;
}

/* If markup is input + label adjacent */
html body .webform-submission-form input[type="checkbox"] + label,
html body .webform-submission-form input[type="radio"] + label{
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* =========================================================
   Links
   ========================================================= */
html body .webform-submission-form a{
  color: var(--su-blue);
  text-decoration: none;
  font-weight: 650;
}
html body .webform-submission-form a:hover{ text-decoration: underline; }

/* =========================================================
   Submit button
   ========================================================= */
html body .webform-submission-form .form-actions{
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,47,108,.10);
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

html body .webform-submission-form .form-actions input[type="submit"],
html body .webform-submission-form .form-actions button{
  background: linear-gradient(90deg,var(--su-navy),var(--su-blue));
  color:#fff;
  border:none;
  padding: 12px 18px;
  border-radius: 16px;
  font-weight: 850;
  letter-spacing: .2px;
  cursor:pointer;
  box-shadow: 0 10px 22px rgba(0,47,108,.22);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}

html body .webform-submission-form .form-actions input[type="submit"]:hover,
html body .webform-submission-form .form-actions button:hover{
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(0,47,108,.26);
}

html body .webform-submission-form .form-actions input[type="submit"]:active,
html body .webform-submission-form .form-actions button:active{
  transform: translateY(1px);
  box-shadow: 0 8px 16px rgba(0,47,108,.20);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  html body .webform-submission-form{
    padding: 18px 14px 14px !important;
    border-radius: 18px;
  }
  html body .webform-submission-form::before{
    border-radius: 18px 18px 0 0;
  }
}
/* =========================================================
   SUKids – "SU member parent" gibi fieldset’lerde
   seçeneklerin sağa kaçmasını engelle (mother/father fix)
   ========================================================= */

/* Fieldset/Wrapper bazı temalarda flex olabiliyor -> blok yap */
.webform-submission-form fieldset,
.webform-submission-form fieldset > .fieldset-wrapper{
  display: block !important;
}

/* Legend satırı ayrı olsun */
.webform-submission-form fieldset > legend,
.webform-submission-form fieldset .fieldset-legend{
  display: block !important;
  width: 100% !important;
}

/* Checkbox grubu: tam genişlik + sola hizalı */
.webform-submission-form fieldset .form-checkboxes,
.webform-submission-form fieldset .form-radios{
  width: 100% !important;
  justify-content: flex-start !important;
  align-items: center !important;
  float: none !important;
  margin-top: 10px !important;
}

/* Her bir seçenek: sağa kaçıran float/position varsa iptal */
.webform-submission-form fieldset .form-checkboxes .form-item,
.webform-submission-form fieldset .form-radios .form-item{
  float: none !important;
  position: static !important;
}
