/* =====================================================================
   FORM OLUŞTURUCU - SİTEDE GÖSTERİLEN FORMUN TASARIMI
   form_olustur::yazdir() çıktısının görünümü (alanlar, radio, checkbox, açılır menü, cep numarası,
   dosya yükleme, bölüm başlığı, hata gösterimi). Formu gösteren her site bu dosyayı yükler; sitenin
   kendi CSS'i bundan sonra yüklenir (sayfa düzeni, gönder butonu, KVKK kutusu vb. sitededir).
   Yükleme: $this->view->css['head'][] = array('dir' => 'libs/form-olustur/form-yazdir.css');

   Form <form id="form"> içinde basılır; form üstündeki hata kutusu: <div class="error" id="top_error">.
   Radio / checkbox işareti kutuda flex ile ortalanır (kutular border-box: 24 px, iç alan 20 px).
   ===================================================================== */

/* Ölçüler border-box varsayar (sitenin genel sıfırlaması olmasa da aynı görünsün) */
.el,
.el *,
form #top_error {
	box-sizing:border-box;
}

.el,
.el .tit {
	display:block;
}

.el .input input,
.el .input textarea {
	width:100%;
	padding:10px;
	color:#0078d7;
}

.el .input input,
.el .input textarea,
.el select {
	background-color:transparent;
	outline:0;
}

.el .checkbox label div.box,
.el .radio label div.box {
	background-position:0 0;
	margin:0 10px 0 0;
	padding:0;
	float:left;
}

.el .checkbox label #tik {
	margin:0;
	flex:0 0 auto;
	vertical-align:top;
	background-repeat:no-repeat;
}

.el,
form #top_error {
	background-color:#f3f5fa;
	padding:20px;
}

.add_file,
a.radio_secim_sil {
	text-decoration:none;
}

.el {
	border-radius:4px;
	-webkit-border-radius:4px;
	border-left:5px solid #0078d7;
	margin-top:25px;
}

.el .input,
.el .selectbox,
.files,
.files .info {
	margin-top:10px;
}

.el .tit {
	padding-bottom:10px;
}

.el.b_red {
	border-left-color:red;
}

.el .checkbox label input,
.el .radio label input,
.el.sart,
.files input {
	display:none;
}

.el * {
	color:#444;
}

.el .here,
.el .ques {
	font-size:18px;
	line-height:28px;
	font-weight:400;
}

.el .here span {
	font-size:14px;
	line-height:28px;
	font-weight:300;
}

.el .des {
	font-size:14px;
	line-height:24px;
	font-weight:400;
}

.add_file,
.el .input input,
.el .input textarea,
.el select,
.el.cep .input .cep_kod {
	font-size:15px;
	line-height:25px;
}

.el .input {
	width:100%;
	display:block;
}

.el .input input {
	border:1px solid #949494;
	display:block;
	border-radius:4px;
	-webkit-border-radius:4px;
}

.el.cep .input {
	position:relative;
}

.el.cep .input input {
	padding-left:45px!important;
	width:calc(100% - 65px)!important;
}

.el.cep .input .cep_kod {
	position:absolute;
	left:10px;
	top:11px;
}

.el .input input.full,
.el .input textarea.full {
	border:1px solid #0078d7;
}

.el .input textarea {
	border:1px solid #949494;
	display:block;
	border-radius:4px;
	-webkit-border-radius:4px;
	resize:none;
	overflow:hidden;
}

.el .checkbox,
.el .radio {
	display:block;
	margin-top:10px;
}

.el .checkbox label,
.el .radio label {
	line-height:20px;
	font-weight:400;
	display:inline-block;
}

.el .checkbox label div.box {
	width:24px;
	height:24px!important;
	display:inline-flex!important;
	align-items:center;
	justify-content:center;
	border:2px solid #949494;
	border-radius:2px;
	vertical-align:top;
}

.el .checkbox .check div.box,
.el .radio .check div.box {
	border:2px solid #0078d7;
}

.el .checkbox label #tik {
	width:14px;
	height:14px;
}

.el .checkbox label #txt {
	font-size:15px;
	line-height:24px;
	display:inline;
	user-select:none;
}

.el .checkbox .check #txt,
.el .radio .check #txt {
	color:#0078d7;
}

.el .checkbox .check #tik {
	background-image:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE4LjEuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJDYXBhXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMTc0LjIzOSAxNzQuMjM5IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxNzQuMjM5IDE3NC4yMzk7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwYXRoIGZpbGw9IiMwMDc4ZDciIGQ9Ik03NC40MzksMTU3LjUxOWMtMS41OSwxLjg0OC00LjM0LDEuOTg5LTYuMTExLDAuMzEzTDEuMzgsOTQuNDY4Yy0xLjc3MS0xLjY3Ni0xLjg0OC00LjQ5Ni0wLjE3My02LjI2N2wyMS4zMy0yMi41MzkNCgljMS42NzYtMS43NzEsNC40OTYtMS44NDgsNi4yNjctMC4xNzNsMzYuNTcxLDM0LjYxMWMxLjc3MSwxLjY3Niw0LjUyMSwxLjUzNSw2LjExMS0wLjMxM2w3MS40NDctODMuMDE1DQoJYzEuNTktMS44NDgsNC40MDQtMi4wNTksNi4yNTEtMC40NjhsMjMuNTE4LDIwLjI0MmMxLjg0OCwxLjU5LDIuMDU5LDQuNDA0LDAuNDY4LDYuMjUyTDc0LjQzOSwxNTcuNTE5eiIvPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPC9zdmc+DQo=");
}

.el .radio label div.box {
	border:2px solid #949494;
	width:24px;
	height:24px!important;
	-webkit-border-radius:50%;
	-moz-border-radius:50%;
	border-radius:50%;
	display:inline-flex;
	align-items:center;
	justify-content:center;
}

.el .radio label #txt {
	font-size:15px;
	line-height:24px;
	display:inline;
	vertical-align:top;
	user-select:none;
}

.el .radio div.box #tik {
	width:14px;
	height:14px;
	margin:0;
	flex:0 0 auto;
	-webkit-border-radius:50%;
	-moz-border-radius:50%;
	border-radius:50%;
}

.el .radio .check #tik {
	background-color:#0078d7;
}

.el select {
	border:1px solid #949494;
	border-radius:2px;
	padding:5px 8px;
	max-width:100%;
}

.el select.full {
	border:1px solid #0078d7;
	color:#0078d7;
}

.el .error {
	color:red;
	font-size:15px;
	line-height:25px;
}

.files .info,
.selected_files div,
a.radio_secim_sil {
	font-size:14px;
	line-height:22px;
}

a.radio_secim_sil:hover {
	text-decoration:underline;
}

form #top_error {
	display:block;
	border-radius:4px;
	-webkit-border-radius:4px;
	border-left:5px solid red;
	margin:25px 0;
	color:red;
	font-size:17px;
	line-height:27px;
}

a.radio_secim_sil {
	color:#c36;
}

.add_file {
	border:1px solid #dadce0;
	-webkit-box-sizing:border-box;
	box-sizing:border-box;
	color:#1a73e8;
	border-radius:4px;
	padding:7px 20px;
	display:inline-block;
}

.add_file:hover {
	background-color:#f7faff;
}

.files .info {
	font-style:italic;
	padding:0!important;
}

.selected_files div.tit {
	margin-top:20px;
	color:#09c;
}

/* Sayı alanlarında (cep numarası) artırma / azaltma okları gösterilmez */
.el input::-webkit-inner-spin-button,
.el input::-webkit-outer-spin-button {
	-webkit-appearance:none;
	margin:0;
}

.el input[type=number] {
	-moz-appearance:textfield;
}

/* Ülke kodlu cep numarası */
.el.cep_ulke .input {
	display:flex;
	gap:10px;
}

.el.cep_ulke .ulke_kod select {
	border:1px solid #949494;
	border-radius:4px;
	outline:0;
	font-size:15px;
	line-height:25px;
	padding:10px 8px;
	background-color:transparent;
	max-width:160px;
}

.el.cep_ulke .input input {
	flex:1 1 auto;
}

/* Bölüm başlığı */
form#form .sec {
	margin-top:35px;
}

form#form .sec h2 {
	font-size:22px;
	line-height:30px;
	font-weight:600;
	margin:0;
	font-family:"Ubuntu Condensed",sans-serif;
}

form#form .sec .des {
	font-size:14px;
	line-height:24px;
	margin-top:5px;
	color:#444;
}
