html {
  font-size: 14px;
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: #f4f4f4;
  color: #111827;
  font-family: "Open Sans", Arial, sans-serif;
}

.page-shell {
  width: min(1110px, calc(100% - 30px));
  margin: 30px auto 60px;
}

.form-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 34px 18px;
  background: #fff;
  border-bottom: 3px solid #1b2b6b;
  border-radius: 6px 6px 0 0;
}

.form-header-copy {
  flex: 1;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.brand-logo {
  width: auto;
  height: 60px;
  object-fit: contain;
  flex: 0 0 auto;
}

.form-header h1 {
  margin: 0 0 4px;
  color: #1b2b6b;
  font-size: 24px;
  font-weight: 650;
}

.form-header p {
  margin: 0;
  color: #555;
  font-size: 13px;
}

.form-body {
  padding: 30px 35px 35px;
  background: #fff;
  border: 1px solid #ddd;
  border-top: 0;
  border-radius: 0 0 6px 6px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1b2b6b;
  color: #1b2b6b;
  font-size: 14px;
  font-weight: 700;
}

.section-icon {
  width: 10px;
  overflow: hidden;
  color: #1b2b6b;
  font-size: 18px;
  line-height: 1;
}

.document-title {
  margin-top: 28px;
}

.form-row--upload {
  display: block;
}

.form-row--upload .control-label {
  text-align: left;
  margin-bottom: 6px;
  padding-top: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  margin-bottom: 16px;
}

.control-label {
  padding-top: 7px;
  text-align: right;
  font-weight: 700;
}

.identity-number-label {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.identity-number-info {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  font-size: 7px;
  line-height: 1;
  border: 0;
  flex: 0 0 auto;
}

.required {
  color: #e7505a;
}

.form-control {
  min-height: 34px;
  border-color: #ccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgb(0 0 0 / 7.5%);
  font-size: 14px;
}

.form-control:focus {
  border-color: #1b2b6b;
  box-shadow: inset 0 1px 1px rgb(0 0 0 / 7.5%), 0 0 0 0.2rem rgb(27 43 107 / 14%);
}

.file-control {
  padding: 5px 12px;
}

.upload-widget {
  display: grid;
  gap: 12px;
}

.upload-dropzone {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 100px;
  padding: 16px 20px;
  border: 2px dashed #9ca3af;
  border-radius: 6px;
  background: #f9fafb;
  color: #1f2937;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.upload-dropzone:has([data-file-list]:not([hidden])) {
  display: block;
  padding: 8px;
  min-height: unset;
}

.upload-empty-state {
  display: contents;
}

.upload-dropzone:hover,
.upload-dropzone:focus-within,
.upload-widget.is-dragover .upload-dropzone {
  border-color: #1b2b6b;
  background: #f3f6ff;
  box-shadow: 0 0 0 3px rgb(27 43 107 / 10%);
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e8ecf8;
  color: #1b2b6b;
}

.upload-icon svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.upload-title,
.upload-note {
  display: block;
}

.upload-title {
  color: #111827;
  font-weight: 700;
}

.upload-note {
  color: #6b7280;
  font-size: 12px;
}

.upload-feedback {
  min-height: 18px;
  color: #b42318;
  font-size: 12px;
}

.upload-file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upload-file-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #d8deea;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 6px rgb(17 24 39 / 5%);
}

.pdf-thumbnail {
  display: grid;
  place-items: center;
  gap: 2px;
  width: 52px;
  height: 64px;
  border: 1px solid #dbe1ee;
  border-radius: 5px;
  background: #f8fafc;
  color: #1b2b6b;
  font-size: 11px;
  font-weight: 800;
}

.pdf-thumbnail svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.upload-file-info {
  min-width: 0;
}

.upload-file-info strong,
.upload-file-info span {
  display: block;
}

.upload-file-info strong {
  overflow-wrap: anywhere;
  color: #111827;
  font-size: 14px;
}

.upload-file-info span {
  color: #6b7280;
  font-size: 12px;
}

.upload-remove-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.upload-remove-btn:hover,
.upload-remove-btn:focus {
  background: #fee2e2;
  color: #dc2626;
}

.help-block {
  display: block;
  margin-top: 5px;
  color: #777;
  font-size: 11px;
}

.text-danger {
  display: block;
  margin-top: 5px;
  font-size: 12px;
}

.validation-summary ul {
  margin-bottom: 16px;
}

.section-title small {
  font-size: 13px;
  font-weight: 400;
  color: #555;
  letter-spacing: 0;
}

.dormitory-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.dormitory-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #111827;
  margin: 0;
}

.dormitory-option input[type="radio"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #1b2b6b;
  cursor: pointer;
}

.private-instution-field {
  display: grid;
  gap: 10px;
  padding-top: 6px;
}

.private-instution-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
}

.private-instution-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1b2b6b;
  cursor: pointer;
}

.private-instution-select[hidden] {
  display: none;
}

.private-instution-document {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.private-instution-document[hidden] {
  display: none;
}

.private-instution-document-label {
  font-weight: 700;
}

.kvkk-consent-block {
  margin-top: 28px;
  border: 1px solid #d0d5e8;
  border-radius: 6px;
  background: #f8f9fc;
  padding: 20px 24px 16px;
}

.kvkk-consent-text {
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid #c8cfe0;
  border-radius: 4px;
  background: #fff;
  padding: 14px 16px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 14px;
}

.kvkk-consent-text p {
  margin: 0 0 10px;
}

.kvkk-consent-text p:last-child {
  margin-bottom: 0;
}

.kvkk-consent-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.kvkk-checkbox {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #1b2b6b;
}

.kvkk-checkbox-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #1b2b6b;
  cursor: pointer;
  margin: 0;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #d0d5e8;
}

.phone-input-group {
  display: flex;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgb(0 0 0 / 7.5%);
  background: #fff;
}
.phone-input-group:focus-within {
  border-color: #1b2b6b;
  box-shadow: inset 0 1px 1px rgb(0 0 0 / 7.5%), 0 0 0 0.2rem rgb(27 43 107 / 14%);
}
/* Select2 için telefon kodu override */
.phone-input-group .select2-container {
  flex: 0 0 auto;
  width: auto !important;  /* Select2'nin inline style="width:0" hesaplamasını eze */
  min-width: 95px;
}
.phone-input-group .select2-selection--single {
  height: 34px !important;
  border: 0 !important;
  border-right: 1px solid #ccc !important;
  border-radius: 4px 0 0 4px !important;
  background: #f5f7fa !important;
  display: flex !important;
  align-items: center !important;
}
.phone-input-group .select2-container--focus .select2-selection--single,
.phone-input-group .select2-container--open .select2-selection--single {
  outline: none !important;
  box-shadow: none !important;
}
.phone-input-group .select2-selection__rendered {
  padding-left: 8px !important;
  padding-right: 24px !important;
  font-size: 14px !important;
  color: #111827 !important;
  line-height: normal !important;
  font-weight: 600;
}
.phone-input-group .select2-selection__arrow {
  height: 100% !important;
  top: 0 !important;
}
.phone-code-select {
  border: 0 !important;
  border-right: 1px solid #ccc !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #f5f7fa;
  flex: 0 0 auto;
  padding: 6px 4px 6px 8px;
  font-size: 14px;
  cursor: pointer;
  color: #111827;
}
.phone-code-select:focus {
  outline: none;
  box-shadow: none !important;
}
.phone-number-input.form-control {
  border: 0 !important;
  border-radius: 0 4px 4px 0 !important;
  box-shadow: none !important;
  flex: 1;
  min-width: 0;
}
.phone-number-input.form-control:focus {
  border: 0 !important;
  box-shadow: none !important;
}

.btn {
  border-radius: 4px;
  padding: 10px 22px;
  font-size: 14px;
}

.btn-light {
  background: #e9ecef;
  border-color: #ced4da;
  color: #212529;
}

.btn-light:hover,
.btn-light:focus {
  background: #d3d8de;
  border-color: #b9bfc6;
  color: #212529;
}

.submit-button {
  background: #1b2b6b;
  border-color: #142055;
}

.submit-button:hover,
.submit-button:focus {
  background: #142055;
  border-color: #142055;
}

.submit-progress {
  margin-top: 20px;
  height: 6px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.submit-progress-bar {
  height: 100%;
  width: 35%;
  background: #1b2b6b;
  border-radius: 4px;
  animation: progress-indeterminate 1.5s ease-in-out infinite;
}

@keyframes progress-indeterminate {
  0%   { transform: translateX(-200%); }
  100% { transform: translateX(400%); }
}

@media (max-width: 767px) {
  .page-shell {
    width: min(100% - 20px, 1110px);
    margin-top: 15px;
  }

  .form-header {
    align-items: flex-start;
    padding: 18px;
  }

  .form-header-copy {
    text-align: left;
    align-items: flex-start;
  }

  .brand-logo {
    height: 48px;
  }

  .form-body {
    padding: 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .control-label {
    padding-top: 0;
    text-align: left;
  }

  .identity-number-label {
    justify-content: flex-start;
  }

  .actions {
    flex-direction: column-reverse;
  }

  .actions .btn {
    width: 100%;
  }

}
