/* ==========================================================================
   Application Form — custom page styles
   Renk paleti: #082638 (navy hero), #384F57 (primary), #3E7882 (teal accent)
   ========================================================================== */

.app-form-page {
  background: #fff;
  color: #1a1a1a;
}

/* --- Hero --- */
.app-form-hero {
  background: #082638;
  color: #fff;
  min-height: 360px;
  padding: 140px 24px 72px;
  display: flex;
  align-items: flex-end;
  position: relative;
}

.app-form-hero__inner {
  width: 100%;
  max-width: 1350px; /* Elementor boxed container ile hizalı (logo'nun bulunduğu kapsayıcı) */
  margin: 0 auto;
}

/* Başvuru dönemi uyarı banner'ı — form pasifken form yerine gösterilir */
.app-form__notice {
  background: #082638;
  color: #fff;
  text-align: center;
  font-family: "Source Sans 3", Sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  padding: 24px 32px;
  border-radius: 6px;
  margin: 8px 0 4px;
}

@media (max-width: 600px) {
  .app-form__notice {
    font-size: 15px;
    padding: 20px 20px;
  }
}

/* Sarı başvuru-dönemi banner'ı — form pasifken form yerine gösterilir.
   (Stil careers-custom.css ile aynı; form sayfası o CSS'i yüklemediğinden tekrar.) */
.internship-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #FDECA8;
  border: 1px solid #F2C94C;
  border-left: 5px solid #E0A800;
  border-radius: 4px;
  padding: 18px 24px;
  color: #082638;
  font-family: "Source Sans 3", Sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  margin: 8px 0 4px;
}
.internship-notice__icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #E0A800;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
}
@media (max-width: 600px) {
  .internship-notice { font-size: 16px; padding: 16px 18px; }
}

/* KVKK aydınlatma onayı — submit'in üstünde zorunlu checkbox */
/* Onay kutuları sarmalayıcısı: .app-form'un 28px gap'i kutular arasında çok açık
   durduğu için kutuları tek flex-child olarak grupla ve içeride dar gap uygula. */
.app-form__consents {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}
.app-form__consent input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #384F57;
}
.app-form__consent label {
  font-family: "Source Sans 3", Sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #333333;
}
.app-form__consent a {
  color: #384F57;
  text-decoration: underline;
  position: relative;
  z-index: 2;
}
.app-form__consent span {
  color: #b00;
}

/* Kutu 2 alt alanları — checkbox seçilince açılan blok.
   Kutular arası dikey boşluk .app-form__consents gap'i ile yönetilir. */
.app-form__subfields {
  margin: 0;
  padding: 16px 18px;
  background: #f6f7f8;
  border-left: 3px solid #384F57;
  border-radius: 4px;
}
.app-form__subfields--static {
  background: transparent;
  border-left: none;
  padding: 0 2px;
  margin: 0;
}
.app-form__subfields-text,
.app-form__subfields-note {
  font-family: "Source Sans 3", Sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: #333333;
  margin: 0 0 10px;
}
.app-form__subfields-note {
  font-size: 12.5px;
  color: #666666;
}
.app-form__subfields-note:last-child {
  margin-bottom: 0;
}
.app-form__checkbox-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 4px 0 14px;
}
.app-form__check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-family: "Source Sans 3", Sans-serif;
  font-size: 13.5px;
  line-height: 1.45;
  color: #333333;
  cursor: pointer;
}
.app-form__check input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #384F57;
}

@media (max-width: 767px) {
  .app-form__checkbox-list {
    grid-template-columns: 1fr;
  }
}

/* Back link — form altında, açık zemine uygun text link */
.app-form__back-row {
  margin-top: 32px;
}

.app-form__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Source Sans 3", Sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #384F57;
  text-decoration: none;
  padding: 12px 22px;
  border: 1px solid #d9dfe2;
  border-radius: 2px;
  background: #fff;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.app-form__back:hover {
  background: #384F57;
  color: #fff;
  border-color: #384F57;
  transform: translateX(-2px);
}

.app-form__back-icon {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
}

.app-form-hero__eyebrow {
  font-family: "Source Sans 3", Sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7fa4ad;
  margin: 0 0 14px;
}

.app-form-hero__title {
  font-family: "freight-display-pro", Sans-serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 16px;
}

.app-form-hero__lead {
  font-family: "Source Sans 3", Sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #cbd5d9;
  max-width: 640px;
  margin: 0;
}

/* --- Form body --- */
.app-form-body {
  padding: 80px 24px 120px;
}

.app-form-body__inner {
  width: 100%;
  max-width: 1350px; /* Logo container ile aynı kenarlık */
  margin: 0 auto;
}

/* Form'un kendisi container içinde sol-hizalı, hero başlığıyla aynı x'ten başlasın */
.app-form-body__inner > .app-form,
.app-form-body__inner > .app-form__success,
.app-form-body__inner > .app-form__back-row {
  width: 100%;
  max-width: 720px;
  margin-left: 0;
  margin-right: auto;
}

/* Internship gibi 12+ alanlı uzun formlar için 2 sütun grid'e nefes alacak yer. */
.app-form-body__inner--wide > .app-form,
.app-form-body__inner--wide > .app-form__success,
.app-form-body__inner--wide > .app-form__back-row {
  max-width: 1100px;
}

/* --- Form --- */
.app-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.app-form__grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.app-form__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-form__label {
  font-family: "Source Sans 3", Sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #384F57;
  margin: 0;
}

.app-form__label span {
  color: #c0392b;
  margin-left: 2px;
}

/* Input/select/textarea ortak görünüm — specificity Hello Elementor reset'ini (input[type=text]) yenmek için .app-form parent ile artırıldı */
.app-form .app-form__input,
.app-form .app-form__textarea,
.app-form-page .app-form__input,
.app-form-page .app-form__textarea {
  font-family: "Source Sans 3", Sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1a1a1a;
  padding: 14px 16px;
  border: 1px solid #d9dfe2;
  border-radius: 2px;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.app-form .app-form__input:focus,
.app-form .app-form__textarea:focus,
.app-form-page .app-form__input:focus,
.app-form-page .app-form__textarea:focus {
  outline: none;
  border-color: #384F57;
  box-shadow: 0 0 0 3px rgba(56, 79, 87, 0.12);
}

.app-form__textarea {
  min-height: 160px;
  resize: vertical;
  font-family: inherit;
}

/* Select dropdown styling — input ile birebir aynı görünüm */
.app-form .app-form__select,
.app-form-page .app-form__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23384F57' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 44px;
  cursor: pointer;
  height: auto;
}

/* Tek satıra tam genişlik alan (textarea) için grid override */
.app-form__grid-2 .app-form__row--full {
  grid-column: 1 / -1;
}

/* File input styling */
.app-form__file {
  padding: 10px 14px;
  cursor: pointer;
  background: #f3f3f0;
  border: 1px dashed #a7b3b8;
}

.app-form__file::-webkit-file-upload-button {
  background: #384F57;
  color: #fff;
  border: 0;
  padding: 8px 18px;
  margin-right: 16px;
  border-radius: 2px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
}

.app-form__file::-webkit-file-upload-button:hover {
  background: #082638;
}

.app-form__file::file-selector-button {
  background: #384F57;
  color: #fff;
  border: 0;
  padding: 8px 18px;
  margin-right: 16px;
  border-radius: 2px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
}

.app-form__file::file-selector-button:hover {
  background: #082638;
}

/* Submit */
.app-form__actions {
  margin-top: 12px;
}

button.app-form__submit,
.app-form button.app-form__submit,
.app-form-page .app-form__submit {
  display: inline-block !important;
  padding: 18px 44px !important;
  min-height: 56px !important;
  line-height: 1.2 !important;
  background: #384F57 !important;
  color: #fff !important;
  font-family: "Source Sans 3", Sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  border: 1px solid #384F57 !important;
  border-radius: 2px !important;
  cursor: pointer !important;
  text-align: center !important;
  box-sizing: border-box !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

button.app-form__submit:hover,
.app-form button.app-form__submit:hover,
.app-form-page .app-form__submit:hover {
  background: #fff !important;
  color: #384F57 !important;
}

.app-form__note {
  font-family: "Source Sans 3", Sans-serif;
  font-size: 14px;
  color: #6a7479;
  margin: 8px 0 0;
}

.app-form__note a {
  color: #384F57;
  text-decoration: underline;
}

.app-form__error {
  font-family: "Source Sans 3", Sans-serif;
  font-size: 14px;
  color: #8a1f1f;
  background: #fbecec;
  border-left: 3px solid #c0392b;
  padding: 12px 14px;
  margin: 8px 0 0;
}

/* Success state */
.app-form__success {
  text-align: center;
  padding: 48px 24px;
  background: #f3f3f0;
  border-left: 4px solid #3E7882;
}

.app-form__success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #3E7882;
  color: #fff;
  font-size: 36px;
  line-height: 72px;
  margin: 0 auto 20px;
  font-weight: 700;
}

.app-form__success-title {
  font-family: "freight-display-pro", Sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: #082638;
  margin: 0 0 12px;
}

.app-form__success-lead {
  font-family: "Source Sans 3", Sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #4a4a4a;
  max-width: 480px;
  margin: 0 auto 28px;
}

.app-form__success-back {
  display: inline-block;
  padding: 12px 28px;
  color: #384F57;
  font-family: "Source Sans 3", Sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-left: 5px solid #385C70;
  padding-left: 20px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.app-form__success-back:hover {
  color: #000;
}

/* Responsive */
@media (max-width: 767px) {
  .app-form-hero {
    min-height: 280px;
    padding: 120px 20px 56px;
  }
  .app-form-hero__title { font-size: 36px; }
  .app-form-hero__lead { font-size: 16px; }

  .app-form-body { padding: 56px 20px 80px; }
  .app-form__grid-2 { grid-template-columns: 1fr; gap: 20px; }

  .app-form__submit { width: 100%; }

  .app-form__success-title { font-size: 28px; }
}

/* --- Son onay pop-up'ı (CV özel nitelikli veri beyanı işaretlenmediğinde) --- */
.app-modal[hidden] { display: none; }
.app-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.app-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 38, 56, 0.55);
}
.app-modal__dialog {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 520px;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(8, 38, 56, 0.28);
  padding: 32px 32px 28px;
  box-sizing: border-box;
}
.app-modal__text {
  margin: 0 0 16px;
  font-family: "Source Sans 3", Sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: #082638;
}
.app-modal__list {
  margin: 0 0 24px;
  padding-left: 20px;
  list-style: disc outside;
  font-family: "Source Sans 3", Sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #384F57;
}
.app-modal__list li { margin: 0 0 4px; }
.app-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.app-modal .app-modal__btn {
  font-family: "Source Sans 3", Sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 12px 24px;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
/* Tema global'i [type=button]:hover/:focus'u kırmızıya boyuyor; .app-modal +
   :hover/:focus ile specificity'yi geçip marka renklerini sabitliyoruz. */
.app-modal .app-modal__btn--ghost,
.app-modal .app-modal__btn--ghost:focus {
  background: transparent;
  color: #384F57;
  border-color: #c2cdd1;
}
.app-modal .app-modal__btn--ghost:hover { background: #eef2f3; color: #384F57; }
.app-modal .app-modal__btn--primary,
.app-modal .app-modal__btn--primary:focus {
  background: #3E7882;
  color: #fff;
  border-color: #3E7882;
}
.app-modal .app-modal__btn--primary:hover { background: #082638; color: #fff; border-color: #082638; }

@media (max-width: 600px) {
  .app-modal__dialog { padding: 24px 20px 20px; }
  .app-modal__btn { flex: 1 1 100%; text-align: center; }
}
