/* Neomorphic Form Styles */
.form-control {
  background-color: #f2f6f8;
  border-radius: 2rem;
  border: none;
  box-shadow: 0px 7px 5px rgba(0, 0, 0, 0.11);
  width: 100%;
  box-sizing: border-box;
}
.form-control.thick {
  height: 3.3rem;
  padding: .5rem 3.5rem;
}
.form-control:focus {
  background-color: #f2f6f8;
  border: none;
  box-shadow: 0px 7px 5px rgba(0, 0, 0, 0.11);
  outline: none;
}
.message .form-control {
  padding: .5rem 1.8rem;
  height: 100px;
  border-radius: 1rem;
}
::placeholder {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: #a0aec0;
  font-style: italic;
  letter-spacing: 0.2px;
}
input,
textarea {
  font-family: 'Quicksand', sans-serif;
  color: #212529;
  font-size: 1.1rem;
}
.icon {
  color: #57565c;
  height: 1.3rem;
  position: absolute;
  left: 1.5rem;
  top: 1.1rem;
}

.btn.btn-primary {
  font-family: 'Quicksand', sans-serif;
  font-weight: bold;
  height: 2.5rem;
  line-height: 2.5rem;
  padding: 0 3rem;
  border: 0;
  border-radius: 3rem;
  background-color: #082f8e;
  background-image: linear-gradient(131deg, #082f8e, #113c9e, #1b49ae, #082f8e);
  background-size: 300% 100%;
  transition: all 0.3s ease-in-out;
  color: white;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

.btn.btn-primary:hover:enabled {
  box-shadow: 0 0.5em 0.5em -0.4em #ff923cba;
  background-size: 100% 100%;
  transform: translateY(-0.15em);
}

/* Optional field hint */
.form-hint {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
  padding-left: 2px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.2px;
}

/* ==============================================================
   OSPEK BARU (CALON PENGURUS) SECTION STYLES
   ============================================================== */
.ospekbaru-section {
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding: 90px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* Modern Classic Radio Buttons for Tingkat Kelas */
.tingkat-radio-section {
  margin-bottom: 16px;
}

.tingkat-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.tingkat-section-label svg {
  color: #082f8e;
}

.tingkat-radio-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tingkat-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 12px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  cursor: pointer;
  user-select: none;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.tingkat-radio-label:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Hide native radio input accessibly */
.tingkat-radio-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Custom Radio Circle (Classic Modernized) */
.tingkat-radio-custom {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #94a3b8;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Inner Dot */
.tingkat-radio-custom::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #082f8e;
  transform: scale(0);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Text */
.tingkat-radio-text {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #475569;
  transition: color 0.2s ease;
}

/* Checked State */
.tingkat-radio-input:checked + .tingkat-radio-custom {
  border-color: #082f8e;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(8, 47, 142, 0.12);
}

.tingkat-radio-input:checked + .tingkat-radio-custom::after {
  transform: scale(1);
}

.tingkat-radio-label:has(.tingkat-radio-input:checked) {
  background: #ffffff;
  border-color: #082f8e;
  box-shadow: 0 4px 14px rgba(8, 47, 142, 0.12);
}

.tingkat-radio-label:has(.tingkat-radio-input:checked) .tingkat-radio-text {
  color: #082f8e;
  font-weight: 700;
}

/* Focus ring for accessibility */
.tingkat-radio-input:focus-visible + .tingkat-radio-custom {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* 2-Column Responsive Grid */
.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 4px;
}

@media (max-width: 600px) {
  .form-row-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Custom Select Dropdown with Neomorphic Styling */
.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper select.neomorphic-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 42px;
  background-color: #f4f7fa;
}

.select-wrapper select.neomorphic-select optgroup {
  font-weight: 700;
  color: #082f8e;
  background-color: #ffffff;
}

.select-wrapper select.neomorphic-select option {
  font-weight: 400;
  color: #1e293b;
  background-color: #ffffff;
  padding: 8px;
}

.select-wrapper .select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #64748b;
  transition: transform 0.25s ease, color 0.25s ease;
}

.select-wrapper select.neomorphic-select:focus + .select-arrow {
  color: #082f8e;
  transform: translateY(-50%) rotate(180deg);
}

/* Left Showcase Showcase Card */
.ospekbaru-badge-showcase {
  background: #082f8e;
  border-radius: 24px;
  padding: 44px 32px;
  color: white;
  box-shadow: 0 16px 36px rgba(8, 47, 142, 0.22);
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ospekbaru-card-glow {
  display: none !important;
}

.ospekbaru-crest-wrap {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
}

.ospekbaru-crest-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
  animation: crestFloat 4s ease-in-out infinite;
}

@keyframes crestFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.ospekbaru-showcase-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #ffffff;
  margin-bottom: 4px;
}

.ospekbaru-showcase-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ff923c;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.ospekbaru-org-pills {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.org-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
}

.org-pill img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.ospekbaru-showcase-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0;
  max-width: 320px;
}

/* Tag Pill */
.section-tag-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: rgba(8, 47, 142, 0.08);
  color: #082f8e;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
  border: 1px solid rgba(8, 47, 142, 0.18);
}

/* Status */

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

.form-status:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.form-status.status-success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  display: block;
}

.form-status.status-error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: block;
}

/* ==============================================================
   VALIDATION ERROR HIGHLIGHT (RED OUTLINE)
   ============================================================== */
.field-error,
input.neomorphic-input.field-error,
textarea.neomorphic-input.field-error,
select.neomorphic-select.field-error {
  border: 1.5px solid #ef4444 !important;
  box-shadow: 0 0 0 3.5px rgba(239, 68, 68, 0.18), inset 0 2px 4px rgba(0, 0, 0, 0.04) !important;
  background-color: #fffbfb !important;
  outline: none !important;
  animation: fieldShake 0.35s ease-in-out;
}

@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* Radio group outline if Tingkat not chosen */
.tingkat-radio-group.field-error {
  padding: 4px;
  border-radius: 9999px;
  border: 1.5px solid #ef4444 !important;
  box-shadow: 0 0 0 3.5px rgba(239, 68, 68, 0.18) !important;
  background-color: #fffbfb;
  animation: fieldShake 0.35s ease-in-out;
}

.tingkat-radio-group.field-error .tingkat-radio-label {
  border-color: #fca5a5;
}

/* Dual grid container outline if Lembaga not chosen */
.org-dual-grid.field-error {
  padding: 6px;
  border-radius: 20px;
  border: 1.5px solid #ef4444 !important;
  box-shadow: 0 0 0 3.5px rgba(239, 68, 68, 0.18) !important;
  background-color: #fffbfb;
  animation: fieldShake 0.35s ease-in-out;
}
/* ==============================================================
   DUAL ORGANISASI (OSIS & MPK) DROPDOWN STYLES
   ============================================================== */
.org-section-container {
  margin-bottom: 24px;
}

.org-section-header {
  margin-bottom: 12px;
}

.org-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.org-section-desc {
  font-size: 0.82rem;
  color: #64748b;
  display: block;
  line-height: 1.4;
}

.org-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 580px) {
  .org-dual-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.org-choice-col {
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px 18px;
  border: 2px solid #e2e8f0;
  box-shadow: 4px 4px 10px rgba(163, 177, 198, 0.25),
              -4px -4px 10px rgba(255, 255, 255, 0.9);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.org-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
  transition: opacity 0.2s ease;
}

.org-col-header:hover {
  opacity: 0.9;
}

.org-brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.org-brand-wrap img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}

.org-title-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.5px;
}

.org-status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.3px;
  display: none;
  background: #e2e8f0;
  color: #64748b;
  transition: all 0.2s ease;
}

/* Selected state */
.org-choice-col.is-selected {
  border-color: #2872FA;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(40, 114, 250, 0.12),
              2px 2px 8px rgba(163, 177, 198, 0.2);
}

.org-choice-col.is-selected .org-title-text {
  color: #2872FA;
}

.org-choice-col.is-selected .org-status-badge {
  display: inline-block;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

/* Locked state (opposite side) */
.org-choice-col.is-locked {
  background: #f1f5f9;
  border-color: #cbd5e1;
  opacity: 0.75;
  cursor: pointer;
}

.org-choice-col.is-locked .org-title-text {
  color: #64748b;
}

.org-choice-col.is-locked .org-status-badge {
  background: #e2e8f0;
  color: #475569;
}

.org-choice-col.is-locked .org-dropdown-content {
  display: none;
}

.org-choice-col.is-locked select {
  pointer-events: none;
}

.org-locked-notice {
  display: none;
  width: 100%;
  margin-top: 2px;
}

.org-choice-col.is-locked .org-locked-notice {
  display: block;
}

.btn-switch-org {
  width: 100%;
  padding: 14px 20px;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  color: #2872FA;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 2px 2px 6px rgba(163, 177, 198, 0.2),
              -2px -2px 6px #ffffff;
}

.btn-switch-org svg {
  stroke: #2872FA;
  transition: transform 0.35s ease;
}

.btn-switch-org:hover {
  background: #ffffff;
  color: #1a56db;
  border-color: #2872FA;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(40, 114, 250, 0.18),
              2px 2px 8px rgba(163, 177, 198, 0.2);
}

.btn-switch-org:hover svg {
  stroke: #1a56db;
  transform: rotate(180deg);
}

/* ==============================================================
   MULTI-STEP FORM (OSPEK BARU 2-STEP WIZARD)
   ============================================================== */

/* Step Indicator */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 18px 0 6px;
}

.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid #e2e8f0;
  flex-shrink: 0;
}

.step-dot.active {
  background: #082f8e;
  color: white;
  border-color: #082f8e;
  box-shadow: 0 4px 12px rgba(8, 47, 142, 0.35);
  transform: scale(1.08);
}

.step-dot.done {
  background: #059669;
  color: white;
  border-color: #059669;
}

.step-line {
  height: 3px;
  width: 64px;
  background: #e2e8f0;
  border-radius: 2px;
  transition: background 0.5s ease;
}

.step-line.done {
  background: #059669;
}

.step-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  margin-bottom: 16px;
}

.step-labels span {
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.step-labels span.active-label {
  color: #082f8e;
}

/* Step panels */
.form-step {
  animation: stepSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes stepSlideIn {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}

.form-step.slide-back-anim {
  animation: stepSlideBack 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes stepSlideBack {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Next button */
.btn-next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

/* Step 2 action row */
.step2-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.step2-actions .btn-neomorphic {
  flex: 1;
}

/* Back button */
.btn-back {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 2px 2px 6px rgba(163, 177, 198, 0.2),
              -2px -2px 6px #ffffff !important;
  flex: 0 0 auto !important;
  width: auto !important;
  padding: 12px 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.btn-back:hover {
  background: #e2e8f0 !important;
  color: #334155 !important;
  transform: translateY(-1px) !important;
}

/* Prestasi dynamic entries */
.prestasi-entry {
  margin-bottom: 10px;
  animation: stepSlideIn 0.25s ease;
}

.prestasi-grid {
  display: grid;
  grid-template-columns: 2fr 1.4fr 0.8fr 36px;
  gap: 8px;
  align-items: center;
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .prestasi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .prestasi-grid .prestasi-nama-input {
    grid-column: 1 / -1;
  }
  .btn-remove-entry {
    grid-column: 2;
    justify-self: end;
  }
}

.btn-remove-entry {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #ef4444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
}

.btn-remove-entry:hover {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

.btn-add-entry {
  width: 100%;
  padding: 10px 16px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
  color: #082f8e;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 4px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-add-entry:hover {
  background: rgba(8, 47, 142, 0.04);
  border-color: #082f8e;
  border-style: solid;
}

.btn-add-entry:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  color: #64748b;
  border-color: #e2e8f0;
}

.btn-add-entry:disabled:hover {
  background: #f8fafc;
  border-style: dashed;
  border-color: #e2e8f0;
}

/* Nilai input — restrict width on large screens */
input[type="number"].neomorphic-input {
  -moz-appearance: textfield;
}
input[type="number"].neomorphic-input::-webkit-inner-spin-button,
input[type="number"].neomorphic-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}



/* Form Closed Notice Card */
.form-closed-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(8, 47, 142, 0.07), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.9);
  max-width: 580px;
  margin: 20px auto 40px;
  animation: fadeInClosed 0.4s ease-out;
}

@keyframes fadeInClosed {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-closed-card .closed-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 16px rgba(220, 38, 38, 0.12);
}

.form-closed-card .closed-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.form-closed-card .closed-desc {
  font-size: 0.98rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.form-closed-card .closed-badge {
  display: inline-block;
  padding: 6px 18px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
}



