/* Sağlıklı Toplum Hayatı Vakfı — Gönüllü Başvuru Formu
   Sade, erişilebilir, tema-bağımsız stiller. Renkleri kurumsal palete göre
   :root değişkenlerinden düzenleyebilirsiniz. */

.sth-gb {
	--sth-accent: #1f7a53;        /* kurumsal yeşil — değiştirilebilir */
	--sth-accent-dark: #155c3e;
	--sth-border: #d8dee4;
	--sth-bg: #ffffff;
	--sth-muted: #6b7280;
	--sth-error-bg: #fdecec;
	--sth-error: #b42318;
	--sth-success-bg: #e9f7f0;

	max-width: 760px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.6;
	color: #1f2937;
}

.sth-gb .sth-gb-intro {
	color: var(--sth-muted);
	margin-bottom: 1.5rem;
}

.sth-gb fieldset {
	border: 1px solid var(--sth-border);
	border-radius: 10px;
	padding: 1.25rem 1.25rem 0.5rem;
	margin: 0 0 1.5rem;
}

.sth-gb legend {
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--sth-accent-dark);
	padding: 0 0.5rem;
}

.sth-gb .sth-row {
	margin-bottom: 1.1rem;
}

.sth-gb label,
.sth-gb .sth-label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.sth-gb input[type="text"],
.sth-gb input[type="email"],
.sth-gb input[type="tel"],
.sth-gb input[type="date"],
.sth-gb input[type="file"],
.sth-gb select,
.sth-gb textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--sth-border);
	border-radius: 8px;
	background: var(--sth-bg);
	font: inherit;
	color: inherit;
}

.sth-gb input:focus,
.sth-gb select:focus,
.sth-gb textarea:focus {
	outline: none;
	border-color: var(--sth-accent);
	box-shadow: 0 0 0 3px rgba(31, 122, 83, 0.15);
}

.sth-gb textarea {
	resize: vertical;
	min-height: 96px;
}

/* Satır içi (radio / checkbox grupları) */
.sth-gb .sth-inline {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 400;
	margin-right: 1.25rem;
	margin-bottom: 0.4rem;
}
.sth-gb .sth-inline input {
	width: auto;
	margin: 0;
}

/* Tam genişlik checkbox satırları (etki alanları, onaylar) */
.sth-gb .sth-check {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-weight: 400;
	margin-bottom: 0.85rem;
}
.sth-gb .sth-check input[type="checkbox"] {
	width: auto;
	margin-top: 0.25rem;
	flex: 0 0 auto;
}
.sth-gb .sth-check span {
	flex: 1;
}

.sth-gb a {
	color: var(--sth-accent-dark);
	text-decoration: underline;
}

.sth-gb .sth-req { color: var(--sth-error); }
.sth-gb .sth-opt { color: var(--sth-muted); font-weight: 400; font-size: 0.9em; }
.sth-gb .sth-hint { display: block; color: var(--sth-muted); font-size: 0.875rem; margin-top: 0.3rem; }

.sth-gb .sth-submit {
	margin: 1rem 0 2rem;
}
.sth-gb .sth-submit button {
	background: var(--sth-accent);
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 0.85rem 2rem;
	font-size: 1.05rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease;
}
.sth-gb .sth-submit button:hover { background: var(--sth-accent-dark); }

/* Honeypot — gizli */
.sth-gb .sth-gb-hp {
	position: absolute !important;
	left: -9999px !important;
	height: 0;
	overflow: hidden;
}

/* Hata / başarı kutuları */
.sth-gb-errors {
	background: var(--sth-error-bg);
	border: 1px solid var(--sth-error);
	color: var(--sth-error);
	border-radius: 8px;
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
}
.sth-gb-errors ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }

.sth-gb-success {
	background: var(--sth-success-bg);
	border: 1px solid var(--sth-accent);
	border-radius: 10px;
	padding: 1.5rem 1.75rem;
	text-align: center;
}
.sth-gb-success h3 { margin-top: 0; color: var(--sth-accent-dark); }

/* Pop-up modal (başvuru gönderildi) */
.sth-gb-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(17, 24, 39, 0.55);
	align-items: center;
	justify-content: center;
	padding: 1rem;
}
.sth-gb-modal-overlay.is-open {
	display: flex;
	animation: sth-gb-fade 0.2s ease;
}
.sth-gb-modal-box {
	background: #fff;
	border-radius: 14px;
	max-width: 420px;
	width: 100%;
	padding: 2rem 1.75rem;
	text-align: center;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
	animation: sth-gb-pop 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
	font-family: inherit;
	color: #1f2937;
}
.sth-gb-modal-icon { font-size: 3rem; line-height: 1; margin-bottom: 0.5rem; }
.sth-gb-modal-box h3 {
	margin: 0 0 0.5rem;
	color: #155c3e;
	font-size: 1.4rem;
}
.sth-gb-modal-box p { margin: 0 0 1.5rem; color: #4b5563; line-height: 1.55; }
.sth-gb-modal-close {
	background: #1f7a53;
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 0.7rem 2.5rem;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease;
}
.sth-gb-modal-close:hover { background: #155c3e; }

@keyframes sth-gb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sth-gb-pop {
	from { opacity: 0; transform: translateY(12px) scale(0.96); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Etik Kuralları sayfası */
.sth-gb-ethics h1 { color: var(--sth-accent-dark); }
.sth-gb-ethics h2 {
	color: var(--sth-accent-dark);
	margin-top: 1.75rem;
	font-size: 1.25rem;
}
.sth-gb-ethics p { margin-bottom: 1rem; }

@media (max-width: 600px) {
	.sth-gb { font-size: 15px; }
	.sth-gb fieldset { padding: 1rem 1rem 0.25rem; }
}
