/* INCEIT – Apply Online webform, modern look.
   Paste into: Structure > Webforms > (Apply Online) > Settings > CSS/JS > Custom CSS
   Everything is scoped to the webform, so the rest of the site is untouched. */

.webform-submission-form{
  --wf-navy:#1d2758; --wf-gold:#f6b11f; --wf-ink:#1f2433; --wf-muted:#6b7280;
  --wf-line:#d5dbe7; --wf-bg:#f5f7fb; --wf-focus:rgba(29,39,88,.15);
  max-width:960px; margin:10px auto 40px; font-size:15px; color:var(--wf-ink);
}

/* ---------- Sections (PART 1, PART 2 ...) ---------- */
.webform-submission-form fieldset.webform-type-fieldset,
.webform-submission-form .webform-section,
.webform-submission-form details.webform-type-details{
  background:#fff; border:1px solid #e3e7ef; border-radius:14px;
  padding:26px 28px 10px; margin:0 0 24px; box-shadow:0 2px 10px rgba(29,39,88,.05);
}
.webform-submission-form .webform-section-title,
.webform-submission-form fieldset.webform-type-fieldset > legend,
.webform-submission-form details.webform-type-details > summary{
  display:block; width:100%; float:none; font-size:20px; font-weight:500; color:var(--wf-navy);
  margin:0 0 20px; padding:0 0 12px; border:0; border-bottom:1px solid #e3e7ef; position:relative; text-transform:none;
}
.webform-submission-form .webform-section-title::after,
.webform-submission-form fieldset.webform-type-fieldset > legend::after{
  content:""; position:absolute; left:0; bottom:-1px; width:56px; height:3px; background:var(--wf-gold); border-radius:2px;
}
.webform-submission-form fieldset.webform-type-fieldset > legend{ padding-top:8px; }
.webform-submission-form fieldset.webform-type-fieldset > legend .fieldset-legend{ font:inherit; color:inherit; }
.webform-submission-form .webform-section hr,
.webform-submission-form fieldset hr{ display:none; }

/* ---------- Labels: always visible, above the field ---------- */
.webform-submission-form .form-item{ margin:0 0 18px; }
.webform-submission-form .form-item > label,
.webform-submission-form .form-item > label.visually-hidden,
.webform-submission-form .form-composite > legend,
.webform-submission-form .webform-type-radios > legend,
.webform-submission-form .webform-type-checkboxes > legend{
  position:static !important; clip:auto !important; width:auto !important; height:auto !important; overflow:visible !important;
  display:block; float:none; margin:0 0 6px; padding:0; border:0;
  font-size:13px; font-weight:600; letter-spacing:.02em; text-transform:none; color:var(--wf-ink);
}
.webform-submission-form .form-composite > legend .fieldset-legend{ font:inherit; }
.webform-submission-form .form-required::after{ content:" *"; color:#d9272d; background:none; width:auto; height:auto; }
.webform-submission-form .description,
.webform-submission-form .form-item__description{ font-size:12.5px; color:var(--wf-muted); margin-top:5px; }

/* ---------- Inputs ---------- */
.webform-submission-form input[type="text"],
.webform-submission-form input[type="email"],
.webform-submission-form input[type="tel"],
.webform-submission-form input[type="number"],
.webform-submission-form input[type="date"],
.webform-submission-form input[type="url"],
.webform-submission-form select,
.webform-submission-form textarea{
  width:100% !important; max-width:none; box-sizing:border-box; height:48px;
  padding:0 14px; background:var(--wf-bg); border:1.5px solid var(--wf-line); border-radius:10px;
  font-size:15px; color:var(--wf-ink); box-shadow:none; transition:border-color .15s, box-shadow .15s, background .15s;
}
.webform-submission-form textarea{ height:auto; min-height:110px; padding:12px 14px; line-height:1.5; }
.webform-submission-form select{
  -webkit-appearance:none; appearance:none; padding-right:40px; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231d2758' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center; background-size:12px;
}
.webform-submission-form input:hover, .webform-submission-form select:hover, .webform-submission-form textarea:hover{ border-color:#aab4c8; }
.webform-submission-form input:focus, .webform-submission-form select:focus, .webform-submission-form textarea:focus{
  outline:0; background:#fff; border-color:var(--wf-navy); box-shadow:0 0 0 4px var(--wf-focus);
}
.webform-submission-form ::placeholder{ color:#9aa3b5; }
.webform-submission-form .error, .webform-submission-form input.error, .webform-submission-form select.error{ border-color:#d9272d !important; background:#fff6f6; }
.webform-submission-form .form-item--error-message{ color:#d9272d; font-size:13px; margin-top:5px; }

/* ---------- Rows (webform flexbox) ---------- */
.webform-submission-form .webform-flexbox{ display:flex; flex-wrap:wrap; gap:0 18px; margin:0; }
.webform-submission-form .webform-flex{ flex:1 1 220px; margin:0 !important; min-width:0; }
.webform-submission-form .webform-flex--container{ margin:0; }
/* inline date labels ("FROM WHICH YEAR") go on top too */
.webform-submission-form .form-item.webform-element--title-inline > label{ display:block; float:none; }

/* ---------- Radios / checkboxes as pill choices ---------- */
.webform-submission-form .webform-options-display-side-by-side,
.webform-submission-form .form-radios, .webform-submission-form .form-checkboxes{ display:flex; flex-wrap:wrap; gap:10px; }
.webform-submission-form .form-type-radio, .webform-submission-form .form-type-checkbox{ position:relative; margin:0 !important; }
.webform-submission-form .form-type-radio input, .webform-submission-form .form-type-checkbox input{ position:absolute; opacity:0; inset:0; margin:0; cursor:pointer; }
.webform-submission-form .form-type-radio label.option, .webform-submission-form .form-type-checkbox label.option{
  display:inline-flex; align-items:center; gap:8px; margin:0; padding:10px 18px 10px 14px; border:1.5px solid var(--wf-line); border-radius:30px;
  background:#fff; font-size:14px; font-weight:500; text-transform:none; letter-spacing:0; color:var(--wf-ink); cursor:pointer; transition:.15s;
}
.webform-submission-form .form-type-radio label.option::before{ content:""; width:14px; height:14px; border:2px solid #aab4c8; border-radius:50%; box-sizing:border-box; }
.webform-submission-form .form-type-checkbox label.option::before{ content:""; width:14px; height:14px; border:2px solid #aab4c8; border-radius:4px; box-sizing:border-box; }
.webform-submission-form .form-type-radio input:checked + label.option,
.webform-submission-form .form-type-checkbox input:checked + label.option{ border-color:var(--wf-navy); background:#eef1fa; color:var(--wf-navy); }
.webform-submission-form .form-type-radio input:checked + label.option::before{ border:4px solid var(--wf-navy); }
.webform-submission-form .form-type-checkbox input:checked + label.option::before{ border-color:var(--wf-navy); background:var(--wf-navy); }
.webform-submission-form .form-type-radio input:focus-visible + label.option,
.webform-submission-form .form-type-checkbox input:focus-visible + label.option{ box-shadow:0 0 0 4px var(--wf-focus); }
.webform-submission-form .webform-type-radios, .webform-submission-form .webform-type-checkboxes{ border:0; padding:0; margin:0 0 18px; background:none; box-shadow:none; }

/* ---------- Notes / markup inside the form ---------- */
.webform-submission-form .webform-type-webform-markup,
.webform-submission-form .form-item .webform-element-help{ font-size:14px; }
.webform-submission-form .webform-type-webform-markup p:first-child:where(:not(:empty)){
  margin:0 0 18px; padding:12px 16px; background:#fff8e6; border-left:4px solid var(--wf-gold); border-radius:8px; color:#5a4300;
}

/* ---------- File upload ---------- */
.webform-submission-form .form-managed-file{ padding:18px; border:2px dashed var(--wf-line); border-radius:12px; background:var(--wf-bg); }

/* ---------- Submit ---------- */
.webform-submission-form .form-actions{ text-align:center; margin:30px 0 0; }
.webform-submission-form .webform-button--submit,
.webform-submission-form .form-actions .form-submit{
  min-width:220px; height:52px; padding:0 34px; border:0; border-radius:30px; background:var(--wf-navy); color:#fff;
  font-size:14px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; cursor:pointer;
  box-shadow:0 6px 18px rgba(29,39,88,.25); transition:transform .15s, background .15s;
}
.webform-submission-form .webform-button--submit:hover{ background:#2c3a7e; transform:translateY(-1px); }

@media (max-width:640px){
  .webform-submission-form fieldset.webform-type-fieldset,
  .webform-submission-form .webform-section{ padding:20px 16px 6px; border-radius:10px; }
  .webform-submission-form .webform-button--submit{ width:100%; }
}
