:root{
  --dice-bg: #2f2f2f;
  --dice-panel: #3a3a3a;
  --dice-field: #0f0f10;
  --dice-border: rgba(255,255,255,.08);
  --dice-text: rgba(255,255,255,.92);
  --dice-muted: rgba(255,255,255,.72);
}

body.dice-modal-open{overflow:hidden;}

.dice-jobs-filters{display:flex;gap:10px;align-items:center;margin:10px 0;}
.dice-jobs-filters input,.dice-jobs-filters select{padding:8px;max-width:320px;width:100%;}
.dice-jobs-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;}
.dice-job-card{border:1px solid #e5e5e5;border-radius:10px;padding:14px;background:#fff;}
.dice-job-title{margin:0 0 8px;}
.dice-job-meta{display:flex;flex-wrap:wrap;gap:8px;font-size:13px;opacity:.85;margin-bottom:10px;}
.dice-job-excerpt{margin-bottom:12px;}
.dice-apply-btn{padding:10px 14px;border:0;border-radius:8px;cursor:pointer;}

/* Modal (screenshot-like) - Must be above everything */
.dice-apply-modal{position:fixed !important;z-index:2147483647 !important;inset:0 !important;display:none;top:0 !important;left:0 !important;right:0 !important;bottom:0 !important;width:100% !important;height:100% !important;}
.dice-apply-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
  z-index:1;
  opacity:0;
  transition:opacity 0.3s ease-out;
}
.dice-apply-modal.dice-modal-active .dice-apply-modal__backdrop{
  opacity:1;
}
.dice-apply-modal__panel{
  z-index:2;
  position:relative;
  width:min(760px, calc(100vw - 28px));
  margin:14px auto;
  background:var(--dice-panel);
  color:var(--dice-text);
  border-radius:8px;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
  max-height:calc(100vh - 28px);
  overflow:auto;
  padding:60px 40px 80px 40px;
  transform:translateY(30px) scale(0.95);
  opacity:0;
  transition:transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease-out;
}
.dice-apply-modal.dice-modal-active .dice-apply-modal__panel{
  transform:translateY(0) scale(1);
  opacity:1;
}
@media (max-width: 640px){
  .dice-apply-modal__panel{
    padding:30px 20px 40px 20px;
    transform:translateY(20px) scale(0.97) !important;
  }
  .dice-apply-modal.dice-modal-active .dice-apply-modal__panel{
    transform:translateY(0) scale(1) !important;
  }
}
.dice-apply-close{
  position:absolute; right:14px; top:12px;
  width:34px; height:34px;
  display:grid; place-items:center;
  font-size:20px;
  border-radius:50%;
  border:1px solid var(--dice-border);
  background:rgba(0,0,0,.12);
  color:var(--dice-text);
  cursor:pointer;
}
.dice-apply-header{margin-bottom:14px;}
.dice-apply-title{margin:0 0 4px;font-size:22px;line-height:1.2;}
.dice-apply-subtitle{margin:0;color:var(--dice-muted);font-size:13px;}
.dice-apply-job-title{font-weight:600;color:var(--dice-text);}

.dice-apply-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
@media (max-width: 640px){
  .dice-apply-grid-2{grid-template-columns:1fr;}
}

.dice-apply-form-group{display:flex;flex-direction:column;gap:6px;margin:0 0 14px;}
.dice-apply-form-group--full{margin-bottom:14px;}
.dice-apply-label{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--dice-muted);}
.dice-apply-input,.dice-apply-textarea,.dice-apply-file{
  width:100%;
  background:var(--dice-field);
  color:var(--dice-text);
  border:1px solid var(--dice-border);
  border-radius:8px;
  padding:12px 12px;
  outline:none;
}
.dice-apply-textarea{resize:vertical; min-height:90px;}
.dice-apply-input[readonly]{opacity:.9;}
.dice-apply-help{display:block;color:var(--dice-muted);font-size:12px;margin-top:6px;}
.dice-apply-form-actions{margin-top:4px;}
.dice-apply-submit{
  width:100%;
  padding:12px 14px;
  border-radius:8px;
  border:1px solid var(--dice-border);
  background:rgba(255,255,255,.08);
  color:var(--dice-text);
  cursor:pointer;
}
.dice-apply-status{margin-top:10px;font-size:28px;font-weight:bold;color:#fd5706;}
.dice-apply-status--error{font-size:14px !important;color:#fd5706 !important;}

/* Custom Scrollbar Styling for Modal Panel - Dark, Rounded, Minimal */
.dice-apply-modal__panel::-webkit-scrollbar{
  width:8px !important;
}
.dice-apply-modal__panel::-webkit-scrollbar-track{
  background:rgba(0,0,0,0.1) !important;
  border-radius:4px !important;
  margin:4px 0 !important;
}
.dice-apply-modal__panel::-webkit-scrollbar-thumb{
  background:#424242 !important;
  border-radius:10px !important;
  min-height:40px !important;
  transition:background 0.2s ease !important;
}
.dice-apply-modal__panel::-webkit-scrollbar-thumb:hover{
  background:#525252 !important;
}
.dice-apply-modal__panel::-webkit-scrollbar-thumb:active{
  background:#5a5a5a !important;
}
/* Firefox scrollbar */
.dice-apply-modal__panel{
  scrollbar-width:thin !important;
  scrollbar-color:#424242 rgba(0,0,0,0.1) !important;
}

/* Candidate Form Styles (CF7 Classes) */
.dice-form{
  width:100%;
  max-width:100%;
}
.dice-row{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-bottom:14px;
}
.dice-2col{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
@media (max-width: 640px){
  .dice-2col{
    grid-template-columns:1fr;
  }
}
.dice-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:14px;
  width:100%;
}
.dice-label{
  font-size:11px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#666;
  font-weight:500;
  margin-bottom:4px;
}
.dice-input{
  width:100%;
  background:#f5f5f5;
  color:#333;
  border:1px solid #e0e0e0;
  border-radius:8px;
  padding:12px;
  outline:none;
  font-size:14px;
  transition:border-color 0.2s ease;
}
.dice-input:focus{
  border-color:#fd5706;
}
.dice-input::placeholder{
  color:#999;
}

/* Candidate Form Chips Styling - Unique class names to avoid conflicts */
.dice-candidate-chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:4px;
}
.dice-candidate-chips-control{
  position:absolute;
  opacity:0;
  width:0;
  height:0;
}
.dice-candidate-chips-control + label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 16px;
  background:#f5f5f5;
  color:#666;
  border-radius:20px;
  cursor:pointer;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:0.05em;
  font-weight:500;
  transition:all 0.2s ease;
  border:1px solid #e0e0e0;
  user-select:none;
  position:relative;
  box-shadow:none;
}
.dice-candidate-chips-control + label::before{
  content:'';
  display:none;
  width:14px;
  height:14px;
  background:transparent;
  border:2px solid transparent;
}
.dice-candidate-chips-control + label:hover{
  background:#e8e8e8;
}
.dice-candidate-chips-control:checked + label{
  background:#000;
  color:#fff;
  border-color:#000;
  font-weight:bold;
  box-shadow:0 2px 4px rgba(0,0,0,0.2);
}
.dice-candidate-chips-control:checked + label::before{
  content:'✓';
  display:inline-block;
  color:#fff;
  font-size:14px;
  font-weight:bold;
  line-height:1;
  width:auto;
  height:auto;
  background:transparent;
  border:none;
}
.dice-candidate-chips-control:focus + label{
  outline:none;
}

/* Textarea */
.dice-textarea{
  width:100%;
  background:#f5f5f5;
  color:#333;
  border:1px solid #e0e0e0;
  border-radius:8px;
  padding:12px;
  outline:none;
  font-size:14px;
  font-family:inherit;
  resize:vertical;
  min-height:100px;
  transition:border-color 0.2s ease;
}
.dice-textarea:focus{
  border-color:#fd5706;
}
.dice-textarea::placeholder{
  color:#999;
}

/* File Upload */
.dice-file-upload{
  position:relative;
  width:100%;
}
.dice-file-input{
  position:absolute;
  opacity:0;
  width:0;
  height:0;
}
.dice-file-label{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  background:#fff;
  border:1px solid #e0e0e0;
  border-radius:8px;
  cursor:pointer;
  transition:all 0.2s ease;
  min-height:56px;
}
.dice-file-label:hover{
  border-color:#d0d0d0;
}
.dice-file-icon-wrapper{
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  background:#fff;
  border:1px solid #ced4da;
  border-radius:6px;
  flex-shrink:0;
}
.dice-file-icon{
  font-size:20px;
  color:#495057;
  line-height:1;
}
.dice-file-text{
  font-size:14px;
  color:#6c757d;
  flex:1;
}
.dice-file-name{
  display:block;
  margin-top:8px;
  font-size:12px;
  color:#666;
  font-style:italic;
  padding-left:52px;
}

/* Submit Button */
.dice-submit{
  margin-top:20px;
}
.dice-btn{
  width:100%;
  padding:14px 24px;
  background:#000;
  color:#fff;
  border:none;
  border-radius:8px;
  font-size:14px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.05em;
  cursor:pointer;
  transition:all 0.2s ease;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.dice-btn:hover{
  background:#333;
}
.dice-btn-icon{
  font-size:16px;
}
.dice-hidden-submit{
  display:none;
}
