/* ==========================================================================
   Digital Journalist Recruitment Form Styles
   Matching exact UI specification
   ========================================================================== */

/* Main Card Container */
.bdk-recruitment-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  max-width: 540px;
  margin: 0 auto;
  font-family: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1e293b;
  display: flex;
  flex-direction: column;
}

/* Modal Specific Inner adjustments */
.bdk-recruitment-card.is-modal-inner {
  max-height: 92vh;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
}

/* Red Gradient Header Bar */
.bdk-recruitment-header {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 50%, #580c0c 100%);
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 4px 12px rgba(153, 27, 27, 0.25);
  z-index: 2;
}

.bdk-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.bdk-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.bdk-header-text {
  flex: 1;
}

.bdk-form-title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  letter-spacing: -0.2px;
}

.bdk-form-subtitle {
  margin: 3px 0 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
}

.bdk-modal-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition: all 0.2s ease;
  margin-left: 10px;
}

.bdk-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* Scrollable Form Body */
.bdk-form-scrollable-body {
  padding: 18px 20px 24px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

.bdk-form-scrollable-body::-webkit-scrollbar {
  width: 6px;
}

.bdk-form-scrollable-body::-webkit-scrollbar-track {
  background: #f8fafc;
}

.bdk-form-scrollable-body::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 10px;
}

/* Shield Notice Box */
.bdk-shield-notice-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.bdk-notice-shield-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bdk-notice-text {
  font-size: 0.82rem;
  color: #991b1b;
  font-weight: 500;
  line-height: 1.4;
}

/* Form Groups & Inputs */
.bdk-form-group {
  margin-bottom: 14px;
}

.bdk-field-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 5px;
}

.required-star {
  color: #dc2626;
  font-weight: 700;
  margin-left: 2px;
}

.bdk-form-input,
.bdk-form-select,
.bdk-form-textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  color: #1e293b;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.bdk-form-input,
.bdk-form-select {
  height: 42px;
  padding: 0 12px;
}

.bdk-form-textarea {
  padding: 8px 12px;
  resize: vertical;
  min-height: 70px;
  line-height: 1.5;
}

.bdk-form-input:focus,
.bdk-form-select:focus,
.bdk-form-textarea:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.bdk-form-input::placeholder,
.bdk-form-textarea::placeholder {
  color: #94a3b8;
  font-size: 0.84rem;
}

/* Custom Select Styling */
.bdk-select-wrap {
  position: relative;
}

.bdk-select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #64748b;
  pointer-events: none;
}

.bdk-form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 32px;
  cursor: pointer;
}

/* Upload Groups */
.bdk-upload-group-box {
  background: #fafafa;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  transition: border-color 0.2s, background-color 0.2s;
}

.bdk-upload-group-box:hover {
  border-color: #dc2626;
  background: #fff;
}

.bdk-upload-label-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.bdk-upload-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.bdk-file-upload-wrapper {
  position: relative;
}

.bdk-file-hidden-input {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.bdk-custom-file-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 38px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.bdk-custom-file-button:hover {
  border-color: #dc2626;
  color: #dc2626;
  background: #fef2f2;
}

.bdk-file-selected-name {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #059669;
  font-weight: 600;
  word-break: break-all;
}

.bdk-photo-preview-wrap {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bdk-photo-preview-wrap img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  border: 2px solid #dc2626;
}

.bdk-photo-preview-wrap span {
  font-size: 0.78rem;
  color: #059669;
  font-weight: 600;
}

/* Submit Button */
.bdk-form-submit-wrap {
  margin-top: 18px;
}

.bdk-submit-btn {
  width: 100%;
  height: 46px;
  background: #dc2626;
  color: #ffffff;
  border: none;
  border-radius: 23px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
  transition: all 0.2s ease;
}

.bdk-submit-btn:hover {
  background: #b91c1c;
  box-shadow: 0 6px 18px rgba(185, 28, 28, 0.45);
  transform: translateY(-1px);
}

.bdk-submit-btn:active {
  transform: translateY(0);
}

.bdk-submit-btn:disabled {
  background: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.bdk-btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: bdkSpin 0.7s linear infinite;
  display: inline-block;
}

@keyframes bdkSpin {
  to { transform: rotate(360deg); }
}

/* Success / Error Messages */
.bdk-form-response-msg {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.bdk-form-response-msg.is-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.bdk-form-response-msg.is-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Modal Overlay Container */
.bdk-recruitment-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.bdk-recruitment-modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.bdk-recruitment-modal-container {
  width: 100%;
  max-width: 520px;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bdk-recruitment-modal-overlay.is-active .bdk-recruitment-modal-container {
  transform: scale(1) translateY(0);
}

/* Auth Card Body (Reporter Account / Login / Register) */
.auth-card-body {
  padding: 2rem;
}

/* Tablet & Mobile Responsiveness */
@media (max-width: 768px) {
  .auth-card-body {
    padding: 1.25rem 1rem !important;
  }
}

@media (max-width: 600px) {
  .auth-main-card {
    border-radius: 12px;
    margin: 0 -4px;
  }
  .auth-tab-btn {
    padding: 0.75rem 0.4rem !important;
    font-size: 0.88rem !important;
  }
  .auth-card-body {
    padding: 0.75rem 0.25rem !important;
  }
  .bdk-recruitment-card {
    border-radius: 10px;
    box-shadow: none;
    border: none;
  }
  .bdk-recruitment-header {
    padding: 12px 12px;
    border-radius: 10px 10px 0 0;
  }
  .bdk-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
  .bdk-header-icon svg {
    width: 18px;
    height: 18px;
  }
  .bdk-form-title {
    font-size: 0.98rem;
  }
  .bdk-form-subtitle {
    font-size: 0.7rem;
  }
  .bdk-form-scrollable-body {
    padding: 12px 6px 16px;
  }
  .bdk-shield-notice-box {
    padding: 8px 10px;
    gap: 8px;
    margin-bottom: 12px;
    border-radius: 8px;
  }
  .bdk-notice-shield-icon svg {
    width: 17px;
    height: 17px;
  }
  .bdk-notice-text {
    font-size: 0.77rem;
  }
  .bdk-form-group {
    margin-bottom: 11px;
  }
  .bdk-field-label {
    font-size: 0.82rem;
    margin-bottom: 4px;
  }
  .bdk-form-input,
  .bdk-form-select {
    height: 38px;
    font-size: 0.84rem;
    padding: 0 10px;
    border-radius: 6px;
  }
  .bdk-form-textarea {
    font-size: 0.84rem;
    padding: 6px 10px;
    border-radius: 6px;
  }
  .bdk-upload-group-box {
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 8px;
  }
  .bdk-upload-title {
    font-size: 0.82rem;
  }
  .bdk-custom-file-button {
    height: 35px;
    font-size: 0.8rem;
  }
  .bdk-submit-btn {
    height: 42px;
    font-size: 0.9rem;
    border-radius: 21px;
  }
}
