.form-select,
select.form-select,
select:not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 12px;
  padding-left: 36px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 10px;
  padding-left: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background-color: var(--bg-card);
  color: var(--text-main);
  font-family: 'Cairo', inherit;
  font-size: 14px;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}


.filter-form.filter-form-unified {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.filter-form.filter-form-unified>* {
  flex: 0 0 auto;
}

.filter-form.filter-form-unified .filter-form__search-wrap {
  flex: 1 1 100%;
  max-width: 100%;
}

.filter-form.filter-form-unified select.form-select {
  width: auto !important;
  min-width: 130px;
  max-width: 200px;
}

.filter-form.filter-form-unified .unified-dropdown-wrapper {
  width: auto !important;
  min-width: 130px;
  max-width: 200px;
  flex: 0 0 auto;
}

.filter-form.filter-form-unified .unified-dropdown-wrapper .unified-dropdown-display {
  min-width: 120px;
  box-sizing: border-box;
}


.form-select:focus,
select.form-select:focus,
select:focus {
  z-index: 10000 !important;
  position: relative;
  outline: none;
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.10);
  background-color: rgba(255, 255, 255, 0.95);
}


.glass-card.select-open {
  overflow: visible !important;
  z-index: 9999 !important;
  position: relative;
}


.container.select-open {
  overflow: visible !important;
  position: relative;
}


section.select-open {
  overflow: visible !important;
  position: relative;
}


.select-open {
  overflow: visible !important;
}


select {
  max-height: none !important;
}


select::-webkit-scrollbar {
  width: 8px;
}

select::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

select::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

select::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}


select:focus {
  position: relative;
  z-index: 10000 !important;
}


select option {
  background: #fff !important;
  color: var(--text-main, #000) !important;
  padding: 10px !important;
}


select:hover {
  border-color: rgba(0, 0, 0, 0.15);
  background-color: rgba(255, 255, 255, 0.95);
}




.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-display {
  width: 100%;
  padding: 10px;
  padding-left: 36px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background-color: rgba(245, 245, 245, 0.9);
  color: var(--text-main, #000);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition, all 0.2s ease);
  backdrop-filter: blur(8px);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 12px;
  text-align: right;
  padding-right: 12px;
  position: relative;
}

.custom-select-display.search-mode {
  cursor: text;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M11 10.5L8.5 8C9.4 6.9 10 5.5 10 4C10 1.8 8.2 0 6 0S2 1.8 2 4S3.8 8 6 8C7.5 8 8.9 7.4 10 6.5L12.5 9L11 10.5ZM6 7C4.3 7 3 5.7 3 4S4.3 1 6 1S9 2.3 9 4S7.7 7 6 7Z'/%3E%3C/svg%3E");
}

.custom-select-display.search-mode::after {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M11 10.5L8.5 8C9.4 6.9 10 5.5 10 4C10 1.8 8.2 0 6 0S2 1.8 2 4S3.8 8 6 8C7.5 8 8.9 7.4 10 6.5L12.5 9L11 10.5ZM6 7C4.3 7 3 5.7 3 4S4.3 1 6 1S9 2.3 9 4S7.7 7 6 7Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 12px;
}

.custom-select-display:hover {
  border-color: rgba(0, 0, 0, 0.15);
  background-color: rgba(255, 255, 255, 0.95);
}

.custom-select-display:focus,
.custom-select-display.open {
  outline: none;
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.10);
  background-color: rgba(255, 255, 255, 0.95);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 99999 !important;
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

.custom-select-dropdown.open {
  display: block;
}

.custom-select-wrapper {
  position: relative;
  z-index: 1;
}

.custom-select-wrapper .custom-select-dropdown.open {
  z-index: 99999 !important;
}


.custom-select-options {
  padding: 4px 0;
}

.custom-select-option {
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s;
  color: var(--text-main, #000);
  font-size: 14px;
  display: none;
}

.custom-select-option.visible {
  display: block;
}

.custom-select-option:hover {
  background: rgba(59, 130, 246, 0.08);
}

.custom-select-option.selected {
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary-dark, #0061ff);
}



.custom-select-wrapper select.custom-select-hidden {
  display: none !important;
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  left: -9999px !important;
  visibility: hidden !important;
}


.custom-select-dropdown::-webkit-scrollbar {
  width: 8px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}


.form-block__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-block__fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-block__fields--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.form-block__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-block__field--full {
  grid-column: 1 / -1;
}


.form-block__label,
.challenge-update-form .form-block__label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted, #e2e8f0);
}

.challenge-update-form .form-block__label {
  font-weight: 600;
}

.form-block__title,
.challenge-update-form .form-block__title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main, #f1f5f9);
  margin-bottom: 20px;
}

.form-block__readonly {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.12));
  color: var(--text-main);
  font-size: 15px;
}

.form-block__hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0 0;
}

.form-block__error {
  color: var(--danger, #f87171);
  font-size: 13px;
  margin-top: 8px;
}

.form-block__notice {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  font-size: 14px;
  color: var(--text-main);
}

.form-error-block {
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: var(--danger, #f87171);
  font-size: 14px;
}


.form-block__field input,
.form-block__field select,
.form-block__field textarea,
.form-block__field .unified-dropdown-display,
.challenge-update-form .form-block__field input,
.challenge-update-form .form-block__field select,
.challenge-update-form .form-block__field textarea,
.challenge-update-form .form-block__field .unified-dropdown-display {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.18));
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font-family: inherit;
  font-size: 15px;
  width: 100%;
  transition: var(--transition, border-color 0.2s, box-shadow 0.2s);
}

.challenge-update-form .form-block__field input,
.challenge-update-form .form-block__field select,
.challenge-update-form .form-block__field textarea,
.challenge-update-form .form-block__field .unified-dropdown-display {
  padding: 14px 18px;
}

.form-block__field input::placeholder,
.form-block__field textarea::placeholder,
.form-block__field .unified-dropdown-display::placeholder,
.challenge-update-form .form-block__field input::placeholder,
.challenge-update-form .form-block__field textarea::placeholder,
.challenge-update-form .form-block__field .unified-dropdown-display::placeholder {
  color: rgba(148, 163, 184, 0.95);
}

.form-block__field textarea,
.challenge-update-form .form-block__field textarea {
  min-height: 140px;
  line-height: 1.65;
  resize: vertical;
}

.challenge-update-form .form-block__field textarea {
  min-height: 200px;
  padding: 16px 18px;
}

.form-block__field input:focus,
.form-block__field select:focus,
.form-block__field textarea:focus,
.form-block__field .unified-dropdown-display:focus,
.form-block__field .unified-dropdown-display.open {
  outline: none;
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
  background: rgba(255, 255, 255, 0.12);
}

.form-block__field input:hover,
.form-block__field select:hover,
.form-block__field textarea:hover,
.form-block__field .unified-dropdown-display:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.11);
}


.form-block__field>ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
}

.form-block__field>ul>li {
  list-style: none;
  break-inside: avoid;
  padding: 0;
  margin-bottom: 4px;
}

.form-block__field .form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.form-block__field .form-check:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.form-block__field .form-check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-main);
  width: 100%;
}

.form-block__field .form-check-input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--primary, #3b82f6);
  cursor: pointer;
}

.form-block__field .form-check-input:checked+.form-check-label,
.form-block__field .form-check:has(input:checked) {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
}

@media (max-width: 640px) {
  .form-block__field>ul {
    columns: 1;
  }
}


.form-block__support-list,
.form-block__option-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-block__support-item,
.form-block__option-item {
  width: 100%;
  min-width: 0;
}

.form-block__support-item label,
.form-block__option-label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.form-block__support-item label:hover,
.form-block__option-label:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.form-block__option-input-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  width: 20px;
  height: 20px;
}

.form-block__support-item input[type="checkbox"],
.form-block__option-input-wrap input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary);
  margin: 0;
}

.form-block__support-item label,
.form-block__option-text {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.45;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  text-align: right;
}


.form-block__file-zone {
  position: relative;
}

.form-block__file-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.form-block__file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 160px;
  padding: 28px;
  border: 2px dashed var(--glass-border, rgba(255, 255, 255, 0.2));
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.form-block__file-label:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.06);
}

.form-block__file-input:focus+.form-block__file-label {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.form-block__file-icon {
  font-size: 32px;
  opacity: 0.8;
}

.form-block__file-text {
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  padding-inline: 8px;
  box-sizing: border-box;
}

.form-block__file-zone.has-file .form-block__file-text {
  color: var(--primary);
  font-weight: 500;
}

.form-block__attachment-slots {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.attachment-slot--optional.attachment-slot--hidden {
  display: none !important;
}

.form-block__attachment-add-wrap {
  margin-top: 12px;
}

/* ── مؤشر رفع الملف (file-upload-ui.js) ─────────────────── */

/* badge "تم الاختيار" يظهر أسفل اسم الملف */
.rabt-file-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 12px;
  font-weight: 700;
  animation: rabt-badge-pop 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.rabt-file-badge__icon {
  font-size: 13px;
  line-height: 1;
  color: #4ade80;
}

.rabt-file-badge__size {
  opacity: 0.9;
  font-size: 11px;
  font-weight: 600;
}

@keyframes rabt-badge-pop {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* حالة الخطأ: إطار أحمر على الـ zone */
.form-block__file-zone.rabt-file-zone--error .form-block__file-label {
  border-color: rgba(248, 113, 113, 0.65);
  background: rgba(248, 113, 113, 0.06);
  animation: rabt-shake 0.35s ease;
}

.rabt-file-size-error {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.10);
  border: 1px solid rgba(248, 113, 113, 0.30);
  color: #f87171;
  font-size: 13px;
  font-weight: 600;
  animation: rabt-badge-pop 0.2s ease both;
}

.rabt-file-size-error::before {
  content: '⚠';
  font-size: 14px;
  flex-shrink: 0;
}

/* حالة الـ zone بعد الاختيار الصحيح */
.form-block__file-zone.has-file .form-block__file-label {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.05);
}

/* اهتزاز بسيط عند الخطأ */
@keyframes rabt-shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-5px);
  }

  60% {
    transform: translateX(4px);
  }

  80% {
    transform: translateX(-3px);
  }
}



.form-block--actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 28px;
}

.form-block__actions-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.form-block__actions-btns .btn {
  padding: 12px 24px;
  font-size: 15px;
}

.form-block--actions .btn-ghost {
  padding: 12px 20px;
  font-size: 15px;
}


.challenge-create-intro,
.solution-submit-intro {
  margin-bottom: 28px;
}

.challenge-create-intro__title,
.solution-submit-intro__title {
  font-size: 28px;
}

.challenge-create-intro__desc,
.solution-submit-intro__desc {
  font-size: 16px;
  line-height: 1.6;
}


@media (max-width: 900px) {

  .form-block__grid,
  .form-block__fields--grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}


@media (max-width: 768px) {
  .challenge-create-section {
    padding-top: 100px;
    padding-bottom: 48px;
  }

  .container--form {
    padding-inline: 16px;
  }

  .challenge-create-intro,
  .solution-submit-intro {
    padding: 22px 18px;
    margin-bottom: 24px;
  }

  .challenge-create-intro__title,
  .solution-submit-intro__title {
    font-size: 22px;
  }

  .challenge-create-intro__desc,
  .solution-submit-intro__desc {
    font-size: 15px;
  }

  .challenge-create-form,
  .form-block__fields {
    gap: 20px;
  }

  .challenge-create-form .form-block,
  .form-block {
    padding: 20px 18px;
    border-radius: 14px;
  }

  .form-block__title {
    font-size: 17px;
  }

  .form-select,
  select.form-select,
  select:not([multiple]) {
    font-size: 16px;
  }

  .form-block__field input,
  .form-block__field select,
  .form-block__field textarea,
  .form-block__field .unified-dropdown-display {
    min-height: 48px;
    font-size: 16px;
  }

  .form-block__field textarea {
    min-height: 120px;
  }

  .form-block__support-list,
  .form-block__option-list {
    gap: 10px;
  }

  .form-block__support-item label,
  .form-block__option-label {
    min-height: 48px;
    padding: 14px 16px;
  }

  .form-block__support-item input[type="checkbox"],
  .form-block__option-input-wrap input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
  }

  .declaration-ack__label {
    min-height: 48px;
    align-items: center;
    padding: 14px 16px;
  }

  .declaration-ack__input-wrap {
    margin-top: 0;
  }

  .form-block__file-label {
    min-height: 152px;
    padding: 24px 16px;
    -webkit-tap-highlight-color: rgba(59, 130, 246, 0.15);
  }

  .form-block--actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 20px 18px;
  }

  .form-block__actions-btns {
    flex-direction: column;
    gap: 10px;
  }

  .form-block__actions-btns .btn,
  .form-block--actions .btn-ghost {
    width: 100%;
    min-height: 48px;
  }

  .form-block__option-item {
    flex: 1 1 100%;
  }
}

@media (max-width: 380px) {
  .container--form {
    padding-inline: 12px;
  }

  .challenge-create-form .form-block,
  .form-block {
    padding: 16px 14px;
  }
}


/* إقرار الفرصة — عنوان في المنتصف، صف شيك + نص، شريط تنبيه كريمي */
.declaration-ack__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.declaration-ack__item {
  margin: 0;
}

.declaration-ack__title {
  text-align: center;
  font-weight: 800;
  font-size: 19px;
  color: var(--heading-indigo, #1e3a5f);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.declaration-ack__title.d-section__title {
  text-align: center;
}

.dashboard-wrap .declaration-ack__title,
.dashboard-wrap .declaration-ack .form-block__title.declaration-ack__title {
  color: var(--d-text, #f1f5f9);
}

.declaration-ack__label {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  direction: rtl;
  margin: 0;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.declaration-ack__label:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.dashboard-wrap .declaration-ack__label {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-wrap .declaration-ack__label:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
}

.declaration-ack__input-wrap {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.declaration-ack__checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  margin: 0;
  border-radius: 5px;
  border: 2px solid #94a3b8;
  background: #ffffff;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-wrap .declaration-ack__checkbox {
  border-color: rgba(203, 213, 225, 0.55);
  background: rgba(15, 23, 42, 0.45);
}

.declaration-ack__checkbox:hover {
  border-color: var(--primary, #3b82f6);
}

.declaration-ack__checkbox:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.75);
  outline-offset: 2px;
}

.declaration-ack__checkbox:checked {
  background-color: var(--primary, #2568d4);
  border-color: var(--primary, #2568d4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

.declaration-ack__text {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
  color: #0f172a;
  text-align: right;
  overflow-wrap: break-word;
}

.dashboard-wrap .declaration-ack__text {
  color: var(--d-text, #f1f5f9);
}

.declaration-ack__notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  direction: rtl;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 14px;
  line-height: 1.55;
  box-sizing: border-box;
}

.dashboard-wrap .declaration-ack__notice {
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.38);
  color: #fef3c7;
}

.declaration-ack__notice-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: #b45309;
}

.dashboard-wrap .declaration-ack__notice-icon {
  color: #fbbf24;
}

.declaration-ack__notice-text {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .challenge-create-section {
    padding-top: 100px;
    padding-bottom: 48px;
  }

  .container--form {
    padding-inline: 16px;
  }

  .challenge-create-intro,
  .solution-submit-intro {
    padding: 22px 18px;
    margin-bottom: 24px;
  }

  .challenge-create-intro__title,
  .solution-submit-intro__title {
    font-size: 22px;
  }

  .challenge-create-intro__desc,
  .solution-submit-intro__desc {
    font-size: 15px;
  }

  .challenge-create-form,
  .form-block__fields {
    gap: 20px;
  }

  .challenge-create-form .form-block,
  .form-block {
    padding: 20px 18px;
    border-radius: 14px;
  }

  .form-block__title {
    font-size: 17px;
  }

  .form-select,
  select.form-select,
  select:not([multiple]) {
    font-size: 16px;
  }

  .form-block__field input,
  .form-block__field select,
  .form-block__field textarea,
  .form-block__field .unified-dropdown-display {
    min-height: 48px;
    font-size: 16px;
  }

  .form-block__field textarea {
    min-height: 120px;
  }

  .form-block__support-list,
  .form-block__option-list {
    gap: 10px;
  }

  .form-block__support-item label,
  .form-block__option-label {
    min-height: 48px;
    padding: 14px 16px;
  }

  .form-block__support-item input[type="checkbox"],
  .form-block__option-input-wrap input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
  }

  .declaration-ack__label {
    min-height: 48px;
    align-items: center;
    padding: 14px 16px;
  }

  .declaration-ack__input-wrap {
    margin-top: 0;
  }

  .form-block__file-label {
    min-height: 152px;
    padding: 24px 16px;
    -webkit-tap-highlight-color: rgba(59, 130, 246, 0.15);
  }

  .form-block--actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 20px 18px;
  }

  .form-block__actions-btns {
    flex-direction: column;
    gap: 10px;
  }

  .form-block__actions-btns .btn,
  .form-block--actions .btn-ghost {
    width: 100%;
    min-height: 48px;
  }

  .form-block__option-item {
    flex: 1 1 100%;
  }
}

@media (max-width: 380px) {
  .container--form {
    padding-inline: 12px;
  }

  .challenge-create-form .form-block,
  .form-block {
    padding: 16px 14px;
  }
}


/* إقرار الفرصة — عنوان في المنتصف، صف شيك + نص، شريط تنبيه كريمي */
.declaration-ack__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.declaration-ack__item {
  margin: 0;
}

.declaration-ack__title {
  text-align: center;
  font-weight: 800;
  font-size: 19px;
  color: var(--heading-indigo, #1e3a5f);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.declaration-ack__title.d-section__title {
  text-align: center;
}

.dashboard-wrap .declaration-ack__title,
.dashboard-wrap .declaration-ack .form-block__title.declaration-ack__title {
  color: var(--d-text, #f1f5f9);
}

.declaration-ack__label {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  direction: rtl;
  margin: 0;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.declaration-ack__label:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.dashboard-wrap .declaration-ack__label {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-wrap .declaration-ack__label:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
}

.declaration-ack__input-wrap {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.declaration-ack__checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  margin: 0;
  border-radius: 5px;
  border: 2px solid #94a3b8;
  background: #ffffff;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-wrap .declaration-ack__checkbox {
  border-color: rgba(203, 213, 225, 0.55);
  background: rgba(15, 23, 42, 0.45);
}

.declaration-ack__checkbox:hover {
  border-color: var(--primary, #3b82f6);
}

.declaration-ack__checkbox:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.75);
  outline-offset: 2px;
}

.declaration-ack__checkbox:checked {
  background-color: var(--primary, #2568d4);
  border-color: var(--primary, #2568d4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

.declaration-ack__text {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
  color: #0f172a;
  text-align: right;
  overflow-wrap: break-word;
}

.dashboard-wrap .declaration-ack__text {
  color: var(--d-text, #f1f5f9);
}

.declaration-ack__notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  direction: rtl;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 14px;
  line-height: 1.55;
  box-sizing: border-box;
}

.dashboard-wrap .declaration-ack__notice {
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.38);
  color: #fef3c7;
}

.declaration-ack__notice-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: #b45309;
}

.dashboard-wrap .declaration-ack__notice-icon {
  color: #fbbf24;
}

.declaration-ack__notice-text {
  flex: 1;
  min-width: 0;
}

.dashboard-wrap .declaration-ack__notice-text {
  color: rgba(254, 243, 199, 0.96);
}

/* budget-currency-row: العملة و الميزانية في سطر واحد */
.budget-currency-row {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 12px;
  align-items: start;
}
@media (max-width: 640px) {
  .budget-currency-row {
    grid-template-columns: 120px 1fr;
  }
  .budget-currency-row .budget-currency-row__amount:nth-child(3) {
    grid-column: 1 / -1;
  }
}

.budget-currency-row__currency,
.budget-currency-row__amount {
  min-width: 0;
  width: 100%;
}

.budget-currency-row__currency .form-select,
.budget-currency-row__currency .custom-select-display,
.budget-currency-row__currency .unified-dropdown-wrapper,
.budget-currency-row__currency .unified-dropdown-display {
  width: 100% !important;
  min-width: 0 !important;
}