/* =========================================================
   SABANCI – WIDE MODERN WEBFORM + COMPACT "EXCEL" MULTI ROWS
   Paste as the ONLY Custom CSS for this webform
   ========================================================= */

/* ---------- Tokens ---------- */
html body .webform-submission-form{
  --su-navy:#002f6c;
  --su-blue:#1f4fa3;
  --su-cyan:#00a3d9;

  --su-bg1:#eef4ff;
  --su-bg2:#f7fbff;

  --su-card:rgba(255,255,255,.94);
  --su-text:#0f172a;
  --su-muted:#475569;

  --su-border:rgba(0,47,108,.18);
  --su-border-soft:rgba(0,47,108,.12);

  --su-shadow:0 22px 60px rgba(0,47,108,.16), 0 2px 10px rgba(0,0,0,.06);
  --row:#f8fbff;
}

/* ---------- 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,#eef4ff 0%,#f7fbff 55%,#ffffff 100%);
}

/* =========================================================
   1) MAKE THE WHOLE FORM AREA WIDER (real page width)
   ========================================================= */

/* Webform sometimes sits inside narrow containers; widen common ones */
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: 1400px !important;
  width: min(1400px, 96vw) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ---------- Main form card ---------- */
html body .webform-submission-form{
  max-width: 1400px !important;
  width: min(1400px, 96vw) !important;
  margin: 18px auto 40px !important;
  padding: 26px 28px 18px !important;
  border-radius: 22px;
  background: var(--su-card);
  border: 1px solid rgba(255,255,255,.60);
  box-shadow: var(--su-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  color: var(--su-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 / labels ---------- */
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 .form-item{ margin: 0 0 14px 0; }

html body .webform-submission-form label{
  display:inline-block;
  font-weight:750;
  color:var(--su-navy);
  margin-bottom:6px;
  letter-spacing:.1px;
}

html body .webform-submission-form .description,
html body .webform-submission-form .form-item--description{
  color: var(--su-muted);
  font-size: .92rem;
  margin-top: 6px;
}

/* ---------- Section fieldsets ---------- */
html body .webform-submission-form > fieldset,
html body .webform-submission-form .form-wrapper > fieldset{
  margin: 16px 0;
  padding: 14px 14px 10px;
  border-radius: 16px;
  background: rgba(248,250,252,.92);
  border: 1px solid var(--su-border-soft);
}

/* =========================================================
   2) INPUTS / SELECTS (global)
   ========================================================= */

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;
  padding: 12px 14px;
  border: 2px solid var(--su-border);
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  color: var(--su-text);
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}

html body .webform-submission-form textarea{ min-height: 140px; }
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 fix (text never disappears) */
html body .webform-submission-form select,
html body .webform-submission-form select.form-select,
html body .webform-submission-form .form-select{
  all: revert;
  font: inherit;

  width: 100% !important;
  box-sizing: border-box !important;
  height: 46px !important;
  line-height: 44px !important;
  padding: 0 14px !important;

  border: 2px solid var(--su-border) !important;
  border-radius: 14px !important;
  background: #ffffff !important;

  color: var(--su-text) !important;
  -webkit-text-fill-color: var(--su-text) !important;

  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !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;
}

/* =========================================================
   3) COMPACT "EXCEL-LIKE" MULTI ROWS (Article / E-Book)
   - Goal: fit columns WITHOUT wrapping
   ========================================================= */

/* Multi wrapper scroll OFF by default (we try to fit). If still narrow, it will scroll on small screens */
html body .webform-submission-form .webform-multiple,
html body .webform-submission-form .js-webform-multiple,
html body .webform-submission-form [data-webform-multiple],
html body .webform-submission-form .webform-multiple-wrapper{
  overflow-x: visible !important;
}

/* Neutralize nested cards inside multi */
html body .webform-submission-form .webform-multiple fieldset,
html body .webform-submission-form .js-webform-multiple fieldset,
html body .webform-submission-form [data-webform-multiple] fieldset,
html body .webform-submission-form .webform-multiple-wrapper fieldset{
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Make each multi row a tight grid:
   Article columns (7):
   title 2.2fr | author 1.4fr | journal 2.2fr | volume .9fr | issue .9fr | pages .9fr | link 1.5fr
*/
html body .webform-submission-form .webform-multiple-item,
html body .webform-submission-form .webform-multiple-row,
html body .webform-submission-form .webform-multiple-items > .form-wrapper,
html body .webform-submission-form .webform-multiple-items > .js-form-wrapper{
  display: grid !important;
  grid-template-columns: 2.2fr 1.4fr 2.2fr .9fr .9fr .9fr 1.5fr !important;
  gap: 8px 8px !important;
  align-items: start;
  padding: 10px 10px !important;
  border-bottom: 1px solid rgba(0,47,108,.10) !important;
  background: rgba(255,255,255,.92) !important;
}

/* Zebra */
html body .webform-submission-form .webform-multiple-items > *:nth-child(even){
  background: var(--row) !important;
}
html body .webform-submission-form .webform-multiple-items > *:last-child{
  border-bottom: 0 !important;
}

/* Remove margins that cause "wrapping feel" */
html body .webform-submission-form .webform-multiple-item .form-item,
html body .webform-submission-form .webform-multiple-row .form-item,
html body .webform-submission-form .webform-multiple-items > * .form-item{
  margin: 0 !important;
}

/* Compact inputs inside multi rows (THIS is the main fix for “hücreler büyük”) */
html body .webform-submission-form .webform-multiple input[type="text"],
html body .webform-submission-form .webform-multiple input[type="url"],
html body .webform-submission-form .webform-multiple input[type="email"],
html body .webform-submission-form .webform-multiple input[type="number"],
html body .webform-submission-form .webform-multiple select{
  width: 100% !important;
  box-sizing: border-box !important;
  height: 34px !important;            /* daha kısa */
  line-height: 32px !important;
  padding: 6px 8px !important;        /* daha dar */
  border-radius: 10px !important;
  border-width: 2px !important;
  font-size: 0.92rem !important;      /* yazıyı küçült */
}

/* If your multi rows are built with extra wrappers, flatten them */
html body .webform-submission-form .webform-multiple .form-items,
html body .webform-submission-form .webform-multiple .fieldset-wrapper,
html body .webform-submission-form .webform-multiple .form-wrapper{
  display: contents !important;
}

/* =========================================================
   4) 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);
}

/* =========================================================
   5) Responsive: if the page is still narrow, allow horizontal scroll
   ========================================================= */
@media (max-width: 1100px){
  html body .webform-submission-form{
    width: min(98vw, 1100px) !important;
    padding: 18px 14px 14px !important;
  }
  /* In small viewports, don't wrap columns—scroll instead of breaking rows */
  html body .webform-submission-form .webform-multiple,
  html body .webform-submission-form .js-webform-multiple,
  html body .webform-submission-form [data-webform-multiple],
  html body .webform-submission-form .webform-multiple-wrapper{
    overflow-x: auto !important;
  }
  html body .webform-submission-form .webform-multiple-items{
    min-width: 980px !important;
  }
}
