/* ============================
   FORM REKOMENDASI
   ============================ */

.form-rekomendasi {
  margin-top: 50px;
}

/* ============================
   TAB MENU
   ============================ */

.form-rekomendasi .tab-menu {
  display: flex;
  list-style: none;
  margin-bottom: 20px;
  padding: 0;
  border-bottom: 2px solid #ddd;
}

.form-rekomendasi .tab-menu li {
  padding: 12px 24px;
  background: #f8f9fa;
  margin-right: 2px;
  cursor: pointer;
  border: 1px solid #ddd;
  border-bottom: none;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  font-weight: 600;
  color: #333;
  transition: all 0.3s ease;
}

.form-rekomendasi .tab-menu li:hover {
  background: #e9ecef;
}

.form-rekomendasi .tab-menu li.active {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}

/* ============================
   TAB CONTENT
   ============================ */

.form-rekomendasi .tab-content {
  display: none;
}

.form-rekomendasi .tab-content.active {
  display: block;
}

/* ============================
   FORM LAYOUT
   ============================ */

.form-rekomendasi .row {
  display: flex;
  flex-wrap: wrap;
  /* gap: 20px; */
}

.form-rekomendasi .col-half {
  flex: 1;
  min-width: 300px;
}

.form-rekomendasi label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

.form-rekomendasi input,
.form-rekomendasi select,
.form-rekomendasi textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* ============================
   COUNTER
   ============================ */

.form-rekomendasi .counter {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}

.form-rekomendasi .counter button {
  padding: 5px 10px;
  cursor: pointer;
}

.form-rekomendasi .counter input {
  width: 60px;
  text-align: center;
}

/* ============================
   SUBMIT BUTTON
   ============================ */

.form-rekomendasi .submit-btn {
  margin-top: 20px;
  padding: 10px 20px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.form-rekomendasi .submit-btn:hover {
  background: #0056b3;
}

/* ============================
   RADIO GROUP
   ============================ */

.radio-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 20px;
  width: 100%;
  overflow-x: auto;
}

.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

/* ============================
   BUTTON & LINK STYLE
   ============================ */

a.readon.contact.con-small {
  background-color: #dc3545;
  color: #fff;
  border-color: #dc3545;
}

a.readon.contact.con-small:hover {
  background-color: #b02a37;
  border-color: #b02a37;
  color: #fff;
}

/* ============================
   SLIDER BUTTON
   ============================ */

.slide-des .slider-btn {
  display: inline-block;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  list-style: none;
}

.slide-des .slider-btn li {
  margin-top: 10px;
}

.slide-des .slider-btn a.readon.contact.con-small {
  background-color: #dc3545;
  border: none;
}

.slide-des .slider-btn a.readon.contact.con-small:hover {
  background-color: #b02a37;
}

/* ============================
   REQUIRED LABEL
   ============================ */

label span.required {
  color: #dc3545;
}

/* ============================
   CUSTOM FILE UPLOAD
   ============================ */

.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.upload-box {
  border: 1.5px dashed #bbb;
  border-radius: 6px;
  padding: 10px;
  cursor: pointer;
  transition: 0.2s;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-box:hover {
  border-color: #1976d2;
  background: #f7faff;
}

.upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.3;
}

.upload-title {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 2px;
}

.upload-hint {
  font-size: 11px;
  color: #777;
}

.upload-filename {
  margin-top: 8px;
  font-size: 11px;
  color: #333;
  word-break: break-word;
}

.upload-status {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #888;
}

.upload-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
}

.upload-box.filled {
  border-color: #1976d2;
  background: #f6faff;
}

.upload-box.filled .upload-status {
  color: #1976d2;
}

/* ============================
   MOBILE & RESPONSIVE
   ============================ */

@media (max-width: 768px) {
  .upload-grid {
    grid-template-columns: 1fr;
  }

  .show-mobile {
    display: block;
  }
}

.show-mobile {
  display: none;
}

@media (max-width: 767px) {
  .rs-counter-list-wrapper {
    margin-top: 0 !important;
  }
}



/* ------------------------------------------- */
/* Lokasi Magang/PKL/KKN/PENELITIAN */
/* ------------------------------------------- */

/* ============================
   REGION ROW (KECAMATAN + KELURAHAN)
   ============================ */

.district-row {
  display: grid;
  grid-template-columns: 2fr 2fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  animation: fadeIn 0.2s ease-in-out;
}

/* Form Group */

.district-row .form-group {
  margin-bottom: 0;
}

/* ============================
   BUTTON ACTION
   ============================ */

.btn-action {
  display: flex;
  align-items: center;
  height: 38px;
}

/* Add Button */

.btn-add {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #0d6efd;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.btn-add:hover {
  background: #0b5ed7;
}

/* Remove Button */

.btn-remove {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #dc3545;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.btn-remove:hover {
  background: #bb2d3b;
}

/* ============================
   SELECT & SELECT2
   ============================ */

/* Native Select */

.district-row select {
  width: 100%;
}

/* ============================
   SELECT2 SINGLE
   ============================ */

.select2-container--default .select2-selection--single {
  height: 38px;
}

.select2-container--default
.select2-selection--single
.select2-selection__rendered {
  line-height: 36px;
}

.select2-container--default
.select2-selection--single
.select2-selection__arrow {
  height: 26px;
  position: absolute;
  top: 5px;
  right: 10px !important;
}

/* ============================
   SELECT2 MULTIPLE (SUMMARY MODE)
   ============================ */

.select2-container--default .select2-selection--multiple {
  display: flex;
  align-items: center;
  height: 38px;
  overflow: hidden;
  background: #fff;
}

/* Rendered Summary Text */

.select2-container--default
.select2-selection--multiple
.select2-selection__rendered {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 10px;
  font-size: 14px;
  color: #999;
}

/* Hide Chips */

.select2-selection__choice {
  display: none !important;
}

/* Hide Search Input (Multiple) */

.select2-selection--multiple .select2-search {
  display: none;
}

/* ============================
   DISABLED STATE
   ============================ */

select:disabled,
.select2-container--disabled .select2-selection {
  background: #f5f5f5;
  cursor: not-allowed;
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 768px) {
  .district-row {
    grid-template-columns: 1fr;
  }

  .btn-action {
    justify-content: flex-start;
    margin-top: 4px;
  }
}

/* ============================
   ANIMATION
   ============================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================
   SELECT2 LOADING SPINNER
   ============================ */

.select2-container {
  position: relative;
}

/* Spinner (inline) */

.select2-loading .select2-selection {
  padding-right: 28px;
}

.select2-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 8px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  pointer-events: none;
}

/* Overlay Loading (Text + Spinner) */

.select2-loading-overlay {
  position: absolute;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  padding-left: 12px;
  font-size: 13px;
  color: #666;
  z-index: 3;
  pointer-events: none;
}

.select2-loading-overlay::after {
  content: '';
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border: 2px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Spinner Animation */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}