/* Wrapper Utama untuk Isolasi Style */
.recruitment-candidate-wrapper {
  font-family: 'Araboto', Arial, sans-serif;
  max-width: 900px;
  margin: 10px auto;
}

/* === FORM STYLING MODERN === */
.recruitment-candidate-wrapper form {
  padding: 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* === LABEL === */
.recruitment-candidate-wrapper label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
  font-size: 13px;
}

.recruitment-candidate-wrapper label.required::after {
  content: " *";
  color: #d93025;
  font-weight: bold;
}

/* === INPUT, SELECT, TEXTAREA === */
.recruitment-candidate-wrapper input[type="text"],
.recruitment-candidate-wrapper input[type="email"],
.recruitment-candidate-wrapper input[type="number"],
.recruitment-candidate-wrapper input[type="tel"],
.recruitment-candidate-wrapper select,
.recruitment-candidate-wrapper textarea {
  width: 100%;
  padding: 7px 14px;
  height: auto !important;
  line-height: normal !important;
  border: 1.8px solid #ccc;
  border-radius: 10px;
  box-sizing: border-box !important;
  font-size: 13px;
  font-weight: 400;
  background: #f6f8ff;
  transition: all 0.25s ease;
  margin-bottom: 0;
}

.recruitment-candidate-wrapper input:focus,
.recruitment-candidate-wrapper select:focus,
.recruitment-candidate-wrapper textarea:focus {
  border-color: #0073e6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,115,230,0.12);
  outline: none;
}

/* === ERROR STATE === */
.recruitment-candidate-wrapper .error {
  border-left: 4px solid #d93025 !important;
  border-color: #d93025 !important;
  background: #ffecec !important;
}

/* === CHECKBOX === */
.recruitment-candidate-wrapper input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.1);
  accent-color: #0073e6;
}

.recruitment-candidate-wrapper textarea {
  min-height: 80px;
  resize: vertical;
}

/* === LAYOUTING === */
.recruitment-candidate-wrapper .form-columns {
  display: flex;
  gap: 40px;
}

.recruitment-candidate-wrapper .left-column,
.recruitment-candidate-wrapper .right-column {
  flex: 1;
}

.recruitment-candidate-wrapper .form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.recruitment-candidate-wrapper .form-group {
  flex: 1;
  min-width: 180px;
  margin-bottom: 10px;
}

/* Responsif Mobile */
@media (max-width: 900px) {
  .recruitment-candidate-wrapper .form-columns {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .recruitment-candidate-wrapper .form-row .form-group {
    flex: 1 1 100%;
  }
}

/* === ERROR MESSAGE TEXT === */
.recruitment-candidate-wrapper .error-message {
  display: none;
  background: #fde8e8;
  border-radius: 6px;
  color: #d93025;
  font-size: 13px;
  margin-top: 6px;
  padding: 5px 10px;
  opacity: 0;
  transition: all 0.3s ease;
}

.recruitment-candidate-wrapper .error-message.show {
  display: block;
  opacity: 1;
}

/* === BUTTON === */
.recruitment-candidate-wrapper button[type="submit"] {
  display: block;
  margin-top: 30px;
  width: 100%;
  background: #0073e6;
  color: white;
  font-weight: 700;
  font-size: 13px;
  border: none;
  padding: 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.recruitment-candidate-wrapper button[type="submit"]:hover {
  background: #005bb5;
  transform: translateY(-2px);
}

/* === POPUP === */
.recruitment-candidate-wrapper .popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  padding: 30px 40px;
  text-align: center;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  display: none;
}

.recruitment-candidate-wrapper .popup.show {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.recruitment-candidate-wrapper .popup h3 {
  color: #0073e6;
  font-weight: 700;
  margin-bottom: 10px;
}

.recruitment-candidate-wrapper .popup button {
  margin-top: 15px;
  background: #0073e6;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 22px;
  cursor: pointer;
}

/* === SPINNER === */
.recruitment-candidate-wrapper #loadingOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none; /* Default hidden */
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: white;
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.recruitment-candidate-wrapper #loadingOverlay.active {
  display: flex;
  opacity: 1;
}

.recruitment-candidate-wrapper .pdf-spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #00bcd4;
  border-radius: 50%;
  width: 60px; height: 60px;
  margin: 0 auto 15px auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}