/* SUGEM Eğitim Başvuru Formu – self-contained styling */
.sgm-widget,
.sgm-modal {
    --sgm-accent: #0f766e;
    --sgm-button: #0d444b;
    --sgm-button-text: #ffffff;
    --sgm-surface: #ffffff;
    --sgm-stroke: #d7e2e6;
    --sgm-ink: #132b36;
    --sgm-muted: #627680;
    --sgm-card-width: 760px;
    font-family: inherit;
    color: var(--sgm-ink);
    box-sizing: border-box;
}
.sgm-widget *, .sgm-widget *::before, .sgm-widget *::after,
.sgm-modal *, .sgm-modal *::before, .sgm-modal *::after { box-sizing: border-box; }
.sgm-widget [hidden], .sgm-modal [hidden] { display: none !important; }
.sgm-inline { max-width: var(--sgm-card-width); margin-inline: auto; width: 100%; }
.sgm-card { width: 100%; background: var(--sgm-surface); border-radius: 21px; border: 1px solid var(--sgm-stroke); padding: clamp(22px, 4vw, 39px); box-shadow: 0 15px 45px rgba(15,45,55,.07); }
.sgm-head { margin-bottom: 24px; }
.sgm-eyebrow { display: inline-flex; padding: 7px 10px; background: #e5f5f0; color: #176e64; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; line-height: 1.4; }
.sgm-title { font-family: inherit; font-weight: 750; font-size: clamp(23px, 3vw, 30px); letter-spacing: -.9px; margin: 13px 0 9px; color: var(--sgm-ink); line-height: 1.25; }
.sgm-description { color: var(--sgm-muted); line-height: 1.65; font-size: 14px; margin: 0; }
.sgm-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.sgm-field { min-width: 0; }
.sgm-field-wide, .sgm-field:has(.sgm-textarea), .sgm-field:has(.sgm-yesno), .sgm-field:has(.sgm-choices:not(.sgm-yesno)) { grid-column: 1 / -1; }
.sgm-label { display: block; font-size: 13px; font-weight: 700; margin: 0 0 8px; color: var(--sgm-ink); }
.sgm-required { color: #d34848; }
.sgm-input { display: block; width: 100%; min-height: 48px; font: inherit; font-size: 14px; padding: 11px 14px; line-height: 1.5; background: #fbfdfd; border: 1px solid var(--sgm-stroke); color: var(--sgm-ink); border-radius: 10px; outline: none; transition: border-color .16s, box-shadow .16s; box-shadow: none; }
.sgm-input:hover { border-color: #8fabb1; }
.sgm-input:focus { background: #ffffff; border-color: var(--sgm-accent); box-shadow: 0 0 0 3px rgba(15,118,110,.12); }
.sgm-input::placeholder { color: #8b9a9f; opacity: 1; }
.sgm-textarea { min-height: 100px; resize: vertical; }
.sgm-select { cursor: pointer; }
.sgm-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.sgm-choice { margin: 0; padding: 0; cursor: pointer; position: relative; display: flex; min-width: 0; align-items: center; }
.sgm-choice input { position: absolute; width: 18px; height: 18px; top: 50%; left: 14px; margin: 0; transform: translateY(-50%); accent-color: var(--sgm-accent); cursor: pointer; z-index: 1; }
.sgm-choice span { display: block; flex: 1; min-width: 0; padding: 12px 12px 12px 39px; background: #fbfdfd; border: 1px solid var(--sgm-stroke); border-radius: 10px; line-height: 1.35; color: #344c56; font-size: 13px; transition: background .16s, border-color .16s; }
.sgm-choice:hover span { background: #f1f8f7; }
.sgm-choice input:checked + span { background: #edf8f5; border-color: var(--sgm-accent); color: #125b58; font-weight: 700; }
.sgm-choice input:focus-visible + span { outline: 2px solid var(--sgm-accent); outline-offset: 2px; }
.sgm-yesno { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 440px; }
.sgm-followup { background: #e7f5f3; border-left: 3px solid var(--sgm-accent); border-radius: 0 9px 9px 0; padding: 12px 14px; line-height: 1.5; font-size: 13px; margin: 11px 0 0; color: #145b59; }
.sgm-followup a { font-weight: 750; text-decoration: underline; text-underline-offset: 3px; color: inherit; }
.sgm-followup a:hover { color: var(--sgm-button); }
.sgm-consent { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; line-height: 1.6; color: var(--sgm-muted); margin: 23px 0 14px; cursor: pointer; }
.sgm-consent input { flex: none; margin: 3px 0 0; width: 17px; height: 17px; accent-color: var(--sgm-accent); }
.sgm-consent a { color: var(--sgm-accent); font-weight: 700; margin-left: 3px; text-decoration: underline; }
.sgm-submit, .sgm-trigger { border: 0; display: inline-flex; justify-content: center; align-items: center; gap: 10px; background: var(--sgm-button); color: var(--sgm-button-text); border-radius: 11px; padding: 15px 21px; font-size: 14px; font-weight: 750; line-height: 1.3; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; text-decoration: none; font-family: inherit; }
.sgm-submit { width: 100%; min-height: 52px; }
.sgm-trigger { min-height: 51px; }
.sgm-submit:hover, .sgm-trigger:hover { transform: translateY(-1px); filter: brightness(1.12); box-shadow: 0 8px 20px rgba(13,68,75,.17); color: var(--sgm-button-text); }
.sgm-submit:focus-visible, .sgm-trigger:focus-visible, .sgm-close:focus-visible { outline: 3px solid var(--sgm-accent); outline-offset: 3px; }
.sgm-trigger-symbol { font-size: 20px; font-weight: 400; line-height: .8; }
.sgm-trigger-arrow { opacity: .8; }
.sgm-wa-icon { font-size: 20px; font-weight: 700; }
.sgm-hint { margin: 12px 0 0; color: var(--sgm-muted); font-size: 11px; text-align: center; line-height: 1.55; }
.sgm-form-message { padding: 11px; border-radius: 8px; margin-top: 11px; color: #842121; background: #fff1f1; font-size: 13px; }
.sgm-modal:not([hidden]) { position: fixed; z-index: 2147482000; inset: 0; display: flex; align-items: center; justify-content: center; padding: 22px; }
.sgm-backdrop { position: absolute; inset: 0; background: rgba(10, 25, 32, .72); backdrop-filter: blur(4px); }
.sgm-dialog { width: min(100%, var(--sgm-card-width)); max-height: min(94vh, 900px); max-height: min(94dvh, 900px); overflow-y: auto; overscroll-behavior: contain; position: relative; z-index: 1; border-radius: 21px; box-shadow: 0 20px 70px rgba(5,16,19,.3); outline: none; }
.sgm-dialog .sgm-card { box-shadow: none; border: none; border-radius: inherit; padding-top: clamp(36px, 5vw, 44px); }
.sgm-close { position: absolute; display: flex; align-items: center; justify-content: center; right: 13px; top: 12px; border: 0; width: 34px; height: 34px; border-radius: 50%; background: #eff4f4; color: #2a4b50; font-size: 26px; font-family: inherit; line-height: 1; z-index: 2; cursor: pointer; }
.sgm-close:hover { background: #d7e5e4; }
body.sgm-modal-open { overflow: hidden; }
@media (max-width: 640px) {
    .sgm-fields { grid-template-columns: 1fr; gap: 15px; }
    .sgm-field { grid-column: 1 / -1; }
    .sgm-choices { grid-template-columns: 1fr; }
    .sgm-yesno { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .sgm-modal:not([hidden]) { padding: 9px; }
    .sgm-dialog { max-height: calc(100dvh - 18px); border-radius: 14px; }
    .sgm-card { border-radius: 14px; padding: 23px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .sgm-widget *, .sgm-modal * { transition: none !important; }
}
