:root {
  --accent: #e8a41c;
  --card-bg: #ffffff;
  --muted: #7a8a99;
  --border: #e6e9ee;
  --shadow: 0 6px 20px rgba(31, 51, 71, 0.08);
}
body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(180deg, #f6f8fb 0%, #ffffff 100%);
  color: #12202f;
}

.container {
  max-width: 980px;
  margin: 0 auto;
}
.card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
h1 {
  margin: 0 0 14px 0;
  font-size: 20px;
  font-weight: 700;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .row-flex {
    flex-wrap: wrap !important;
  }
}

/* Floating label */
.floating-group {
  position: relative;
}
.floating-group input,
.floating-group textarea,
.floating-group select {
  width: 100%;
  padding: 14px 12px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  background: white;
  box-sizing: border-box;
}
.floating-group textarea {
  min-height: 110px;
  resize: vertical;
  padding-top: 16px;
}
.floating-group label {
  position: absolute;
  left: 12px;
  top: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  padding: 0 6px;
  transition: all 0.18s ease;
  pointer-events: none;
}
.floating-group input:focus,
.floating-group textarea:focus,
.floating-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(232, 164, 28, 0.12);
}
.floating-group input:focus + label,
.floating-group textarea:focus + label,
.floating-group select.filled + label,
.floating-group input:not(:placeholder-shown) + label,
.floating-group textarea:not(:placeholder-shown) + label {
  top: -8px;
  left: 10px;
  font-size: 11px;
  color: #0d1b26;
  background: var(--card-bg);
}

.birthdate-wrapper {
  display: flex;
  gap: 10px;
}

/* Full width single column groups */
.full {
  grid-column: 1 / -1;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #06222b;
  font-weight: 600;
  cursor: pointer;
}
.btn.ghost {
  background: #180000;
  border: 1px solid var(--border);
  color: white;
}

/* Photo preview */
.photo-box {
  border: 4px dotted #d9d9d9;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  background: #fbfbfc;
  padding: 50px 10px;
}
.photo-box img {
  max-width: 160px;
  max-height: 160px;
  border-radius: 8px;
  display: block;
  margin: 8px auto 0;
}

.small {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

/* Experience / language groups */
.row-flex {
  border: 1px solid #e5e5e5;
  flex-wrap: nowrap;
  padding: 20px 5px;
  border-radius: 5px;
  margin: 10px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.row-flex > * {
  flex: 1 1 220px;
  min-width: 180px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: linear-gradient(45deg, #f1f1f1, transparent);
  margin: 12px 0;
  padding: 5px 10px;
  border-radius: 5px;
  height: 35px;
}

.formItem label.error {
  color: red;
  font-size: 12px;
  padding: 5px;
}

.select2-containers {
  width: 100%;
  padding: 14px 12px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  background: white;
  box-sizing: border-box;
}

h1 img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
}

.military {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 15px;
  /* border: 1px solid; */
  padding: 3px 10px 0px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  background: white;
}

.military input {
  width: 20px;
  height: 30px;
}

/* Progress bar container */
.progress {
  width: 100%;
  background-color: #e9ecef;
  border-radius: 8px;
  height: 18px;
  margin-top: 10px;
  overflow: hidden;
}

/* Progress bar */
.progress-bar {
  background: linear-gradient(90deg, #007bff, #0056b3);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  height: 100%;
  line-height: 18px;
  border-radius: 8px 0 0 8px;
  transition: width 0.3s ease;
}

/* Sonuç alanı */
#result {
  margin-top: 15px;
  font-size: 14px;
  color: #28a745;
  font-weight: bold;
}

#result img {
  width: 100%;
}

/* Wrapper */
.floating-select {
  position: relative;
  width: 100%;
}

.floating-select label {
  position: absolute;
  top: -12px;
  left: 10px;
  font-size: 11px;
  color: #0d1b26;
  background: var(--card-bg);
  z-index: 1;
  padding: 5px;
}

/* Select2 aktif olduğunda label yukarı çıkar */
.floating-select.filled label,
.floating-select.focused label {
  top: -8px;
  left: 10px;
  background: #fff;
  padding: 0 4px;
  font-size: 12px;
  color: #333;
}

/* Select2 için margin */
.select2-container--default .select2-selection--single {
  height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e6e9ee;
}

.select2-selection__rendered {
  line-height: 32px !important;
}
.select2-selection__arrow {
  height: 46px !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: #444;
  line-height: 28px;
  font-size: 12px;
  padding-left: 2px;
}

.drop-zone {
  border: 4px dotted #cecece;
  border-radius: 6px;
  padding: 30px;
  margin: 10px;
  cursor: pointer;
}

.floating-select.error {
  border: 1px solid red;
  border-radius: 5px;
}

span.error {
  color: red;
}

.refinput {
  display: flex;
  gap: 5px;
  margin: 10px 0;
}

.mt {
  margin-top: 10px;
}

.mb {
  margin-bottom: 10px;
}

textarea#pcprograms {
  padding-top: 25px;
}

.flex {
  display: flex;
  gap: 10px;
}

#popupOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 1;
}

#popupText {
  margin-top: 12px;
  color: #333;
  overflow: auto;
}

#popupHeader {
  height: 28px;
  width: 100%;
  display: flex;
  margin: 0;
}

.popIn {
  max-width: 780px;
  background: white;
  padding: 18px;
  border-radius: 10px;
  max-height: 80vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.flex.error {
  color: red;
}

.divLabel {
  margin-bottom: 15px;
  margin-left: 5px;
  font-size: 11px;
}

.experienceDateArea {
  display: flex;
  gap: 9px;
}

.row-flex.experienceGroup {
    display: flex;
    align-items: flex-end;
}

.birthDayArea label.error {
    display: none !important;
}

.checkPoint {
    pointer-events: none;
    opacity: 0.5;
}

.formItem.birthDayArea .error {
    border-radius: 10px;
}