/* =========================================================
   SABANCI – MODERN WEBFORM (RADIO LABELS SIDE-BY-SIDE FIX)
   Paste as the ONLY Custom CSS for this webform.
   ========================================================= */

/* ---------- Color tokens ---------- */
:root{
  --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 area (helps long forms) ---------- */
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));
}

/* ---------- Headings ---------- */
html body .webform-submission-form h1,
html body .webform-submission-form h2,
html body .webform-submission-form h3,
html body .webform-submission-form 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;
  margin-top: 6px;
}

/* ---------- Default labels (normal fields) ---------- */
html body .webform-submission-form label{
  display:block;
  font-weight: 750;
  color: var(--su-navy);
  margin: 0 0 6px 0;
  letter-spacing: .1px;
}

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: 150px;
  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);
}

/* ---------- SELECT visibility (term/province etc.) ---------- */
html body .webform-submission-form select,
html body .webform-submission-form select.form-select,
html body .webform-submission-form .form-select{
  width: 100% !important;
  box-sizing: border-box !important;
  height: 46px !important;
  line-height: 44px !important;
  padding: 0 14px !important;
  border: 2px solid var(--border) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
  opacity: 1 !important;
  font: inherit !important;
  appearance: auto !important;
  -webkit-appearance: menulist !important;
  -moz-appearance: menulist !important;
}

html body .webform-submission-form select:focus{
  outline:none !important;
  border-color:var(--su-blue) !important;
  box-shadow:0 0 0 4px rgba(31,79,163,.18) !important;
}

/* ---------- Fieldsets as cards ---------- */
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);
}

/* =========================================================
   RADIO / CHECKBOX: FORCE SIDE-BY-SIDE (THE FIX)
   Works with BOTH structures:
   1) <input> + <label for=...>
   2) <label><input> Text</label>
   ========================================================= */

/* option container */
html body .webform-submission-form .form-radios,
html body .webform-submission-form .form-checkboxes{
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 0 !important;
  margin: 8px 0 0 0 !important;
}

/* if theme outputs UL/LI */
html body .webform-submission-form .form-radios ul,
html body .webform-submission-form .form-checkboxes ul{
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
html body .webform-submission-form .form-radios li,
html body .webform-submission-form .form-checkboxes li{
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* each option row (catch all common wrappers) */
html body .webform-submission-form .form-radios > .form-item,
html body .webform-submission-form .form-radios > .form-type-radio,
html body .webform-submission-form .form-radios > .js-form-type-radio,
html body .webform-submission-form .form-radios .form-item,
html body .webform-submission-form .form-radios .form-type-radio,
html body .webform-submission-form .form-radios .js-form-type-radio,
html body .webform-submission-form .form-checkboxes > .form-item,
html body .webform-submission-form .form-checkboxes > .form-type-checkbox,
html body .webform-submission-form .form-checkboxes > .js-form-type-checkbox,
html body .webform-submission-form .form-checkboxes .form-item,
html body .webform-submission-form .form-checkboxes .form-type-checkbox,
html body .webform-submission-form .form-checkboxes .js-form-type-checkbox{
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !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;
}

/* radio/checkbox control */
html body .webform-submission-form .form-radios input[type="radio"],
html body .webform-submission-form .form-checkboxes input[type="checkbox"]{
  margin: 0 !important;
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 auto !important;
  accent-color: var(--su-blue) !important;

  /* fallback: if theme stacks, float helps too */
  float: none !important;
  position: relative !important;
  top: 0 !important;
}

/* OVERRIDE the global label:block inside radios/checkboxes */
html body .webform-submission-form .form-radios label,
html body .webform-submission-form .form-radios label.option,
html body .webform-submission-form .form-checkboxes label,
html body .webform-submission-form .form-checkboxes label.option{
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;

  margin: 0 !important;
  padding: 0 !important;

  font-weight: 750 !important;
  color: var(--text) !important;
  line-height: 1.25 !important;

  width: auto !important;
  max-width: 100% !important;
}

/* if structure is <input> + <label for>, ensure label doesn’t drop */
html body .webform-submission-form .form-radios input[type="radio"] + label,
html body .webform-submission-form .form-checkboxes input[type="checkbox"] + label{
  display: inline-flex !important;
}

/* if structure is <label><input>Text</label>, make label be the row */
html body .webform-submission-form .form-radios label.option,
html body .webform-submission-form .form-checkboxes label.option{
  width: 100% !important; /* click area full row */
}

/* =========================================================
   Buttons
   ========================================================= */
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,
html body .webform-submission-form .form-actions a.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;
  text-decoration: none;
}

html body .webform-submission-form .form-actions input[type="submit"]:hover,
html body .webform-submission-form .form-actions button:hover,
html body .webform-submission-form .form-actions a.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,
html body .webform-submission-form .form-actions a.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;
  }
}
